Use-after-free in mbed TLS - CVE-2026-50579

 

Use-after-free in mbed TLS - CVE-2026-50579

Published: November 24, 2026


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

Vulnerability details

The vulnerability allows a remote attacker to cause memory corruption and potentially a denial of service in applications that accept attacker-controlled PKCS7 data and reuse a freed PKCS7 context without reinitializing it.

The vulnerability exists due to a use-after-free in mbedtls_pkcs7_free() when cleaning up a reused PKCS7 context that still holds pointers to freed signer-list entries. A remote attacker can supply PKCS7 data to an affected application to cause memory corruption and potentially a denial of service.


Affected software

mbed TLS
Fedora
mbedtls

How to mitigate CVE-2026-50579

Install security update from vendor's website.

mbed TLS - addressed in versions 3.6.7, 4.1.1, 4.2.0
mbedtls - addressed in versions 3.6.7-1.el10_2, 3.6.7-1.el10_3, 3.6.7-1.fc43, 3.6.7-1.fc44

External References

Related Security Bulletins