CVE-2026-50579: Use-after-free and double-free in Mbed TLS PKCS#7 context cleanup
CVE-2026-50579 is a memory-management vulnerability in Mbed TLS involving mbedtls_pkcs7_free() when PKCS#7 contexts are reused. Affected context lifecycles can result in use-after-free or double-free conditions, potentially causing memory corruption. The affected FreeBSD mbedtls4 package range includes versions before 4.2.0.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
The use-after-free or double-free condition can compromise process memory safety, potentially causing application crashes or exploitable memory corruption. The CVE-specific assessment assigns CVSS v3.0 severity 9.8 with high potential confidentiality, integrity, and availability impacts. Arbitrary code execution is a potential consequence of exploitable memory corruption, but a concrete exploitation technique is not established by the available information.
Remediation
Patch, then assume compromise.
For Echo environments, update the mbedtls library and related packages to version 3.6.7-2 or later. For FreeBSD, upgrade the mbedtls4 package to version 4.2.0 or later. These are distribution-specific fixed versions and should not be treated as interchangeable upstream version requirements.
Exploits
No public exploits tracked yet. Mallory keeps watching.
References
Frequently asked questions
- Is CVE-2026-50579 exploited in the wild?
- As of Nov 19, 2026, Mallory has no reports of CVE-2026-50579 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2026-50579?
- As of Nov 19, 2026, Mallory has found no public exploit for CVE-2026-50579.
- Is there a patch for CVE-2026-50579?
- For Echo environments, update the mbedtls library and related packages to version 3.6.7-2 or later. For FreeBSD, upgrade the mbedtls4 package to version 4.2.0 or later.
Recent activity
3 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.