Out-of-bounds write in mbed TLS - CVE-2026-35336
Published: November 24, 2026
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
Fedora
mbedtls
How to mitigate CVE-2026-35336
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