Use-after-free in mbed TLS - CVE-2025-47917

 

Use-after-free in mbed TLS - CVE-2025-47917

Published: July 7, 2025


Vulnerability identifier: #VU112441
CSH Severity: High
CVSS v4: 9.3 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2025-47917
CWE-ID: CWE-416
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to compromise vulnerable system.

The vulnerability exists due to a use-after-free error within the mbedtls_x509_string_to_names() function. A remote attacker can send specially crafted data to the application, trigger a use-after-free error and execute arbitrary code on the system.

Successful exploitation of the vulnerability may allow an attacker to compromise vulnerable system.


Affected software

mbed TLS
Ubuntu
Fedora
mbedtls (Ubuntu package)
dolphin-emu

How to mitigate CVE-2025-47917

Install updates from vendor's website.

mbed TLS - update to 3.6.4
mbedtls (Ubuntu package) - addressed in versions 2.8.0-1ubuntu0.1~esm1, 2.16.4-1ubuntu2+esm1, 2.28.0-1ubuntu0.1~esm1, 2.28.8-1ubuntu0.1~esm1
dolphin-emu - update to 2503a-4.fc42

External References

Related Security Bulletins