# CVE-2025-47917

- Priority: **Prioritise**
- Reason: Public exploit (exploit-database, 16-09-2025)
- Next step: Check applicability and the vendor advisory: no fix release is recorded here
- Status: published
- Published: 2025-07-20 · Modified: 2025-11-03
- Aliases: ALPINE-CVE-2025-47917, UBUNTU-CVE-2025-47917, DEBIAN-CVE-2025-47917, DLA-4274-2
- Record: https://cvemate.com/vulnerability/CVE-2025-47917 · JSON: https://cvemate.com/vulnerability/CVE-2025-47917/json

## Description

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

## Signals

- CVSS: 9.8 critical (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- EPSS: 2.423%, percentile 84.734%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (exploit-database)

## Affected

- alpine mbedtls (Alpine Linux): \< 3.6.4-r0
- alpine mbedtls3 (Alpine Linux): \< 3.6.4-r0
- arm mbed\_tls: \< 3.6.4
- debian mbedtls (Debian): \< 2.16.9-0.1+deb11u3 \| All versions (No fix recorded) \| \< 3.6.4-1
- ubuntu mbedtls (Ubuntu): All 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
- mbed mbedtls: \< 3.6.4

## References

- <https://mbed-tls.readthedocs.io/en/latest/tech-updates/security-advisories/>
- <https://github.com/Mbed-TLS/mbedtls-docs/blob/main/security-advisories/mbedtls-security-advisory-2025-06-7.md>
- <https://lists.debian.org/debian-lts-announce/2025/08/msg00025.html>
- <https://lists.debian.org/debian-lts-announce/2025/08/msg00013.html>
- <https://security.alpinelinux.org/vuln/CVE-2025-47917>
- <https://ubuntu.com/security/CVE-2025-47917>
- <https://www.cve.org/CVERecord?id=CVE-2025-47917>
- <https://ubuntu.com/security/notices/USN-8123-1>
- <https://security-tracker.debian.org/tracker/CVE-2025-47917>

---

Data as of 2026-12-05T05:56:44.635Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
