9.8

CVE-2025-47917: arm mbed_tls Use After Free

CVSS: 9.8v3.1CriticalModified
AliasesALPINE-CVE-2025-47917UBUNTU-CVE-2025-47917DEBIAN-CVE-2025-47917
Published 20-07-2025Last modified 03-11-2025

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.

Overall risk
70/100
0100
High · default modelHow is this calculated?
CVSS score
9.8/10
010
Critical · v3.1 (NVD)
EPSS score
2.27%
0%100%
Low · +0.13 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits1exploit-database

Advisory lineage

Upstream 0 · Downstream 3 · Related 2

Timeline

  1. 20-07-2025
    PublishedVulnerability first disclosed.
  2. 03-11-2025
    Last 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

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

19-09-202619-10-2026
EPSS score
2.27%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

1 found
  • exploit-databaselocalmultipleUnverified

    Mbed TLS 3.6.4 - Use-After-Free

    Maturity: poc

Weaknesses

CWE · root cause

Affected systems

Alpine1 product
  • mbedtls< 3.6.4-r0
Arm1 product
Debian1 product
  • mbedtlsAll versions (No fix recorded) | < 3.6.4-1 | < 2.16.9-0.1+deb11u3
Mbed1 product
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

References

9 links