Heap-based buffer overflow in ESP-IDF - CVE-2026-45542

 

Heap-based buffer overflow in ESP-IDF - CVE-2026-45542

Published: May 18, 2026


Vulnerability identifier: #VU131731
CSH Severity: Medium
CVSS v4: 7.1 [CVSS:4.0/AV:A/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2026-45542
CWE-ID: CWE-122
Exploitation vector: Adjecent network
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to cause a denial of service.

The vulnerability exists due to heap-based buffer overflow in handle_session_command0() in components/protocomm/src/security/security2.c when processing a client-supplied SRP6a username field during Security Scheme 2 session setup over Bluetooth Low Energy. A remote attacker can send an oversized protobuf username field to cause a denial of service.

The issue is reachable before any SRP6a credential check and affects only the NimBLE BLE transport with Security Scheme 2 enabled.


Affected software

ESP-IDF

How to mitigate CVE-2026-45542

Install security update from vendor's website.

ESP-IDF - update to 6.0.1

External References

Related Security Bulletins