CVE-2025-47917: arm mbed_tls Use After Free
Vulnerability summary
CVE-2025-47917 is a critical (CVSS 9.8) Use After Free vulnerability in arm mbed_tls. EPSS estimates a 2.27% chance of exploitation in the next 30 days, higher than 82.8% of scored vulnerabilities. 1 public exploit is recorded.
Advisory lineage
Upstream 0 · Downstream 3 · Related 2Timeline
- 20-07-2025PublishedVulnerability first disclosed.
- 03-11-2025Last modifiedVulnerability information updated.
Description
Mbed TLS before 3.6.4 allows a use-after-free in certain situations of applications that are developed in accordance with the documentation. The function mbedtls_x509_string_to_names() takes a head argument that is documented as an output argument. The documentation does not suggest that the function will free that pointer; however, the function does call mbedtls_asn1_free_named_data_list() on that argument, which performs a deep free(). As a result, application code that uses this function (relying only on documented behavior) is likely to still hold pointers to the memory blocks that were freed, resulting in a high risk of use-after-free or double-free. In particular, the two sample programs x509/cert_write and x509/cert_req are affected (use-after-free if the san string contains more than one DN).
CVSS metrics
5 scores · 5 sources · 1 version- CVE.orgCNA8.9HighCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:H/A:HDiffers
- OSV · AlpineEcosystem advisory · calculated9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- OSV · UbuntuEcosystem advisory · calculated9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- OSV · DebianEcosystem advisory · calculated9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS trend
Probability
2.27%
Chance of exploitation in the next 30 days
Percentile
83%
Versus all other CVEs
30-day change
+0.13 pp
From 2.15% on 19-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
1 foundMbed TLS 3.6.4 - Use-After-Free
Maturity: poc
Weaknesses
CWE · root causeAffected systems
Alpine1 product
- mbedtls< 3.6.4-r0
Arm1 product
- mbed_tls< 3.6.4
Debian1 product
- mbedtlsAll versions (No fix recorded) | < 3.6.4-1 | < 2.16.9-0.1+deb11u3
Mbed1 product
- mbedtls< 3.6.4
Ubuntu1 product
- mbedtlsAll versions (No fix recorded) | < 2.8.0-1ubuntu0.1~esm1 | < 2.16.4-1ubuntu2+esm1 | < 2.28.0-1ubuntu0.1~esm1 | < 2.28.8-1ubuntu0.1~esm1
5 vendors · 5 products