Out-of-bounds write in ESP-IDF - CVE-2022-24893

 

Out-of-bounds write in ESP-IDF - CVE-2022-24893

Published: June 23, 2022 / Updated: May 13, 2026


Vulnerability identifier: #VU131329
CSH Severity: High
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U/U:Amber
CVE-ID: CVE-2022-24893
CWE-ID: CWE-787
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: Espressif Systems
Affected software:
ESP-IDF

Detailed vulnerability description

The vulnerability allows a remote attacker to execute arbitrary code.

The vulnerability exists due to out-of-bounds write in the ESP-BLE-MESH provisioning message handling logic when processing a crafted Transaction Start PDU during provisioning. A remote attacker can send a specially crafted provisioning PDU with an invalid SegN field to execute arbitrary code.

The issue occurs because the SegN field is not checked, which can cause firmware to handle a message larger than the available global buffer.


How to mitigate CVE-2022-24893

Install security update from vendor's website.

Sources