Out-of-bounds write in mbed TLS - CVE-2026-35336

 

Out-of-bounds write in mbed TLS - CVE-2026-35336

Published: November 24, 2026


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

Vulnerability details

The vulnerability allows a remote attacker to corrupt application memory and potentially execute arbitrary code.

The vulnerability exists due to an incorrect output size check in mbedtls_ecdh_calc_secret() when an application supplies a buffer too small to hold the shared secret. A remote attacker can trigger an out-of-bounds write during an affected ECDH key exchange to corrupt application memory, potentially leading to arbitrary code execution depending on the buffer location and memory layout.

The use of ECDH in TLS is unaffected because its output buffer is always large enough.


Affected software

mbed TLS
Fedora
mbedtls

How to mitigate CVE-2026-35336

Install security update from vendor's website.

mbed TLS - update to 3.6.7
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