Intel

AIKIDO-2026-667539

Mbed-TLS.mbedtls is vulnerable to Buffer Overflow

Buffer OverflowCVE-2026-34875 Published 4 days ago

80

High Risk

This Affects:

c++Mbed-TLS.mbedtls
3.5.0 - 3.6.5
Fixed in 3.6.6
Are you affected? Scan for Free

TL;DR

When exporting a finite-field Diffie-Hellman public key, psa_export_public_key() does not verify that the caller-provided output buffer is large enough before writing the key. If the buffer is smaller than the public key, the function writes the entire key anyway and overflows the buffer. This memory corruption can lead to arbitrary code execution when an application exports an FFDH key into an undersized buffer. The fix checks the output buffer size before writing.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and your application exports FFDH public keys with psa_export_public_key() into a caller-provided buffer.

Background info

Mbed-TLS.mbedtls is vulnerable to Buffer Overflow in versions 3.5.0 - 3.6.5.

How to fix this

Upgrade the Mbed-TLS.mbedtls library to the patch version.