{"schemaVersion":3,"id":"CVE-2025-47917","aliases":["ALPINE-CVE-2025-47917","UBUNTU-CVE-2025-47917","DEBIAN-CVE-2025-47917","DLA-4274-2"],"status":"published","duplicateOf":null,"title":null,"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).","dates":{"published":"2025-07-20T00:00:00.000Z","modified":"2025-11-03T20:04:39.638Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":9.8,"severity":"critical","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":8.9,"severity":"high","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Alpine","score":9.8,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":10,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":9.8,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":10,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":9.8,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":10,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":9.8,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.02275,"percentile":0.82832,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0.1299999999999999,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.02145},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.02061,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.02061,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.02061,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.02061,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.02061,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.02145,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.02145,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.02145,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.02145,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.02145,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.02145,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.02145,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.02145,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.02145,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.02145,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.02145,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.02145,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.02145,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.02145,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.02145,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.02145,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.02145,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.02145,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.02145,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.02145,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.02145,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.02275,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.02275,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.02275,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.02275,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.02275,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.02275,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.02275,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.02275,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.02275,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.02275,"percentile":0.82832}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.02145,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.02145,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.02145,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.02145,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.02145,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.02145,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.02145,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.02145,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.02145,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.02145,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.02145,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.02145,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.02145,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.02145,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.02145,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.02145,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.02145,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.02145,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.02145,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.02145,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.02145,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.02275,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.02275,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.02275,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.02275,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.02275,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.02275,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.02275,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.02275,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.02275,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.02275,"percentile":0.82832}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"52427","name":"Mbed TLS 3.6.4 - Use-After-Free","source":"exploit-database","url":"https://www.exploit-db.com/exploits/52427","maturity":"poc","reliabilityScore":0.5,"verified":false,"type":"local","platforms":["multiple"],"requiresAuth":null,"exploitdb":{"verified":false,"type":"local","platform":"multiple","file":"exploits/multiple/local/52427.c","codes":["CVE-2025-47917"]},"metasploit":null}],"exploitCount":1,"weaknesses":[{"id":"CWE-416","name":"Use After Free","description":"The product reuses or references memory after it has been freed. At some point afterward, the memory may be allocated again and saved in another pointer, while the original pointer references a location somewhere within the new allocation. Any operations using the original pointer are no longer valid because the memory \"belongs\" to the code that operates on the new pointer.","type":"weakness","status":"Stable","abstraction":"Variant","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/416.html"}],"affected":[{"vendor":"alpine","product":"mbedtls","name":"mbedtls","label":"mbedtls","ecosystem":"Alpine Linux","cpePart":null,"purl":"pkg:apk/alpine/mbedtls","purlType":"apk","versions":[{"text":"< 3.6.4-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 3.6.4-r0","eol":null,"hubHref":null},{"vendor":"arm","product":"mbed_tls","name":"mbed tls","label":"mbed_tls","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 3.6.4","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 3.6.4","eol":null,"hubHref":"/vendor/arm/mbed_tls"},{"vendor":"debian","product":"mbedtls","name":"mbedtls","label":"mbedtls","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/mbedtls","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null},{"text":"< 3.6.4-1","noFixRecorded":false,"fixedIn":null},{"text":"< 2.16.9-0.1+deb11u3","noFixRecorded":false,"fixedIn":null}],"versionsText":"All versions (No fix recorded) | < 3.6.4-1 | < 2.16.9-0.1+deb11u3","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"mbedtls","name":"mbedtls","label":"mbedtls","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/mbedtls","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null},{"text":"< 2.8.0-1ubuntu0.1~esm1","noFixRecorded":false,"fixedIn":null},{"text":"< 2.16.4-1ubuntu2+esm1","noFixRecorded":false,"fixedIn":null},{"text":"< 2.28.0-1ubuntu0.1~esm1","noFixRecorded":false,"fixedIn":null},{"text":"< 2.28.8-1ubuntu0.1~esm1","noFixRecorded":false,"fixedIn":null}],"versionsText":"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","eol":null,"hubHref":null},{"vendor":"mbed","product":"mbedtls","name":"mbedtls","label":"mbedtls","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 3.6.4","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 3.6.4","eol":null,"hubHref":"/vendor/mbed/mbedtls"}],"affectedCount":5,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://mbed-tls.readthedocs.io/en/latest/tech-updates/security-advisories/","label":"mbed-tls.readthedocs.io/en/latest/tech-updates/security-advisories/","hostname":"mbed-tls.readthedocs.io","tags":["Vendor Advisory"]},{"url":"https://github.com/Mbed-TLS/mbedtls-docs/blob/main/security-advisories/mbedtls-security-advisory-2025-06-7.md","label":"github.com/Mbed-TLS/…","hostname":"github.com","tags":["REPORT","Mitigation","Third Party Advisory"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/08/msg00025.html","label":"lists.debian.org/debian-lts-announce/2025/08/msg00025.html","hostname":"lists.debian.org","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2025/08/msg00013.html","label":"lists.debian.org/debian-lts-announce/2025/08/msg00013.html","hostname":"lists.debian.org","tags":[]},{"url":"https://security.alpinelinux.org/vuln/CVE-2025-47917","label":"security.alpinelinux.org/vuln/CVE-2025-47917","hostname":"security.alpinelinux.org","tags":["Advisory"]},{"url":"https://ubuntu.com/security/CVE-2025-47917","label":"ubuntu.com/security/CVE-2025-47917","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2025-47917","label":"www.cve.org/CVERecord?id=CVE-2025-47917","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://ubuntu.com/security/notices/USN-8123-1","label":"ubuntu.com/security/notices/USN-8123-1","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2025-47917","label":"security-tracker.debian.org/tracker/CVE-2025-47917","hostname":"security-tracker.debian.org","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":["DLA-4274-1","OPENSUSE-SU-2026:21144-1","USN-8123-1"],"duplicates":[],"related":["OPENSUSE-SU-2026:21144-1","USN-8123-1"]},"timeline":[{"kind":"published","date":"2025-07-20T00:00:00.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2025-11-03T20:04:39.638Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":70,"level":"high","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T06:27:10.637Z","stale":false,"partial":false}}