Read the docs
TI-2025-30320 Aliases CVE-2025-47917GHSA-7xcg-xp2h-m42v

Use after free in mbedtls

Priority MEDIUM 48CWE-416Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
Low
Impact type
Code execution
Confidentiality · integrity · availability
High · High · High
Fix status
Fixed

Attack profile from CVSS 3.1 · NVD. Fix status from CNA. Impact type from CWE-416 and the CVSS impact.

Summary

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).

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.02443 84th percentileScored 2026-11-07
Fix Fixed mbedtls (Mbed): 3.6.4

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
No
Technical impact
Total

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
Mbedmbedtlsbefore 3.6.43.6.4Patch availableCNA
  • mbedtls VendorMbed Affected before 3.6.4 Fixed in 3.6.4 Patch available CNA

CPE configurations NVD · 1

CPEVersionsRoleVendor
cpe:2.3:a:arm:mbed_tls:*:*:*:*:*:*:*:*before 3.6.4VulnerableArm
  • cpe:2.3:a:arm:mbed_tls:*:*:*:*:*:*:*:* Versions before 3.6.4 Vulnerable ·Arm

Remediation

  • Fix · CNA mbedtls (Mbed) Fixed in 3.6.4

Fixed in the same release

Records fixed by the same vendor advisory or release, as the CNA lists them.

  • Release ·

    Mbed mbedtls 3.6.4

    3 records Highest priority Priority MEDIUM 1 MEDIUM, 2 LOW

    Other records, highest priority first

    • TI-2025-31103 NULL pointer dereference in mbedtlsPriority LOW 34
    • TI-2025-31198 In Mbed TLS 3.6.1 through 3.6.3 before 3.6.4, a timing discrepancy in block cipher…Priority LOW 19

Vendor assessments

Red Hat

Red Hat's page for this CVE →

Not affected: 1 product
  • Red Hat

Timeline

  1. 2026-10-02 Threatist record created from CVE-2025-47917
  2. 2026-10-03 Alias added: GHSA-7xcg-xp2h-m42v

References

  • TI-2025-32620 Mbed TLS before 3.6.4 has a race condition in AESNI detection if certain compiler… CVSS 3.1HIGH 7.8
  • TI-2019-12830 Buffer overflows were discovered in the CoAP library in Arm Mbed OS 5.14.0. CVSS 3.1CRITICAL 9.8
  • TI-2019-12829 An integer overflow was discovered in the CoAP library in Arm Mbed OS 5.14.0. CVSS 3.1CRITICAL 9.8
  • TI-2025-31103 NULL pointer dereference in mbedtls CVSS 3.1HIGH 7.5
  • TI-2025-31614 Out-of-bounds read in mbedtls CVSS 3.1MEDIUM 6.5
  • TI-2025-20584 Use of uninitialized resource in mbedtls CVSS 3.1MEDIUM 5.4
See all 10 →

Sources