Heap-based buffer overflow in ESP-IDF - CVE-2026-45542
Published: May 18, 2026
ESP-IDF
Detailed vulnerability description
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.