The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2025-47917

CVE-2025-47917: Arm Mbed TLS Use-After-Free Vulnerability

CVE-2025-47917 is a use-after-free vulnerability in Arm Mbed TLS affecting versions before 3.6.4. The flaw occurs in mbedtls_x509_string_to_names() function, risking memory corruption. This article covers technical details, affected versions, impact assessment, and mitigation strategies.

Published: March 11, 2026

CVE-2025-47917 Overview

CVE-2025-47917 is a critical use-after-free vulnerability in Mbed TLS before version 3.6.4. The vulnerability exists in the mbedtls_x509_string_to_names() function, which improperly frees memory that application code may still hold pointers to. This memory safety flaw creates conditions for use-after-free or double-free exploitation, potentially leading to remote code execution or system compromise.

The function takes a head argument documented as an output argument, but contrary to the documentation, it calls mbedtls_asn1_free_named_data_list() on that argument, performing a deep free of the memory. Applications developed according to the official documentation are therefore likely to retain dangling pointers to freed memory blocks, creating a high-risk exploitation scenario.

Critical Impact

Applications using the mbedtls_x509_string_to_names() function according to documented behavior are vulnerable to use-after-free conditions, which can lead to arbitrary code execution, memory corruption, or denial of service. The sample programs x509/cert_write and x509/cert_req are confirmed affected when processing SAN strings containing more than one DN.

Affected Products

  • Arm Mbed TLS versions before 3.6.4
  • Applications using mbedtls_x509_string_to_names() function
  • Sample programs x509/cert_write and x509/cert_req

Discovery Timeline

  • 2025-07-20 - CVE-2025-47917 published to NVD
  • 2025-11-03 - Last updated in NVD database

Technical Details for CVE-2025-47917

Vulnerability Analysis

This use-after-free vulnerability stems from a documentation-implementation mismatch in Mbed TLS's X.509 certificate handling functionality. The mbedtls_x509_string_to_names() function unexpectedly frees memory through an internal call to mbedtls_asn1_free_named_data_list(), which performs a deep free operation on the head argument.

Application developers following the official documentation would not expect this behavior, as the head parameter is documented purely as an output argument without any indication that existing memory will be freed. This creates a dangerous scenario where applications retain pointers to freed memory blocks.

The vulnerability is particularly impactful because it affects the trust boundary of TLS/SSL implementations. When processing Subject Alternative Name (SAN) strings containing multiple Distinguished Names (DNs), the affected sample programs demonstrate the use-after-free condition. This class of vulnerability can lead to arbitrary code execution, information disclosure, or denial of service depending on how the freed memory is subsequently used.

Root Cause

The root cause is a documentation-implementation discrepancy in the mbedtls_x509_string_to_names() function. While the function documentation describes the head parameter as an output argument, the implementation unexpectedly calls mbedtls_asn1_free_named_data_list() on this parameter, performing a deep free of any existing data structures. This undocumented behavior causes applications to unknowingly hold dangling pointers to freed memory, creating use-after-free or double-free conditions when that memory is subsequently accessed or freed again.

Attack Vector

The vulnerability is exploitable over the network without requiring authentication or user interaction. An attacker could exploit this vulnerability by:

  1. Crafting malicious X.509 certificate requests or SAN strings containing multiple DNs
  2. Triggering the vulnerable code path in applications that process these certificates
  3. Exploiting the resulting use-after-free condition to achieve code execution or cause denial of service

The vulnerability manifests when applications call mbedtls_x509_string_to_names() with a head argument that already points to allocated memory, or when the function is called multiple times with overlapping memory references. The deep free operation performed by mbedtls_asn1_free_named_data_list() releases memory that the calling application may subsequently access.

For technical details on the vulnerability mechanism, refer to the GitHub Mbed TLS Security Advisory.

Detection Methods for CVE-2025-47917

Indicators of Compromise

  • Unexpected application crashes or segmentation faults in processes using Mbed TLS
  • Memory corruption errors detected by heap analysis tools during certificate processing operations
  • Anomalous behavior in X.509 certificate parsing or generation workflows
  • Core dumps showing corruption in ASN.1 named data structures

Detection Strategies

  • Deploy memory sanitizers (AddressSanitizer, Valgrind) in development and testing environments to detect use-after-free conditions
  • Monitor application logs for crashes related to mbedtls_x509_string_to_names() or ASN.1 data handling functions
  • Implement runtime memory safety tools to detect double-free and use-after-free patterns in production systems
  • Audit application code for usage of mbedtls_x509_string_to_names() with pre-allocated head arguments

Monitoring Recommendations

  • Enable crash dump collection and analysis for applications using Mbed TLS for certificate operations
  • Monitor for anomalous certificate request patterns, particularly those with multiple Subject Alternative Names
  • Implement heap integrity checking in applications processing untrusted certificate data
  • Track Mbed TLS version deployments across infrastructure to identify vulnerable installations

How to Mitigate CVE-2025-47917

Immediate Actions Required

  • Upgrade Mbed TLS to version 3.6.4 or later immediately on all affected systems
  • Audit application code using mbedtls_x509_string_to_names() to ensure the head argument is properly initialized to NULL before calling the function
  • Review and update any code patterns that may retain pointers to memory passed to this function
  • Prioritize patching for internet-facing services that process X.509 certificates

Patch Information

The vulnerability is fixed in Mbed TLS version 3.6.4. Organizations should update to this version or later. Official security advisories and patch information are available through:

  • GitHub Mbed TLS Security Advisory
  • Mbed TLS Security Advisories Documentation

For Debian-based systems, security updates are documented in Debian LTS Advisory #2025-08-13 and Debian LTS Advisory #2025-08-25.

Workarounds

  • Ensure the head argument passed to mbedtls_x509_string_to_names() is always initialized to NULL before calling the function to prevent accessing freed memory
  • Avoid reusing the head pointer after calling mbedtls_x509_string_to_names() without proper reinitialization
  • Implement wrapper functions that enforce proper memory handling patterns around the vulnerable API
  • Consider temporarily disabling functionality that processes SAN strings with multiple DNs until patching is complete
bash
# Configuration example - Update Mbed TLS on Debian/Ubuntu systems
sudo apt update
sudo apt install --only-upgrade libmbedtls-dev libmbedtls14

# Verify installed version
apt-cache policy libmbedtls-dev

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeUse After Free

  • Vendor/TechArm Mbed Tls

  • SeverityCRITICAL

  • CVSS Score9.8

  • EPSS Probability3.31%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-416
  • Technical References
  • Debian LTS Advisory #2025-08-13

  • Debian LTS Advisory #2025-08-25
  • Vendor Resources
  • GitHub Mbed TLS Security Advisory

  • Mbed TLS Security Advisories Document
  • Related CVEs
  • CVE-2025-48965: Arm Mbed TLS Use-After-Free Vulnerability

  • CVE-2021-44732: Arm Mbed TLS Use-After-Free Vulnerability

  • CVE-2025-52497: Arm Mbed TLS Buffer Overflow Vulnerability

  • CVE-2025-52496: Arm Mbed TLS Race Condition Vulnerability
Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English