Buffer overflow in Contiki-Ng
CVE-2023-23609
Contiki-NG is an open-source, cross-platform operating system for Next-Generation IoT devices. Versions prior to and including 4.8 are vulnerable to an out-of-bounds write that can occur in the BLE-L2CAP module. The Bluetooth Low Energy - Logical Link Control and Adaptation Layer Protocol (BLE-L2CAP) module handles fragmentation of packets up the configured MTU size. When fragments are reassembled, they are stored in a packet buffer of a configurable size, but there is no check to verify that the packet buffer is large enough to hold the reassembled packet. In Contiki-NG's default configuration, it is possible that an out-of-bounds write of up to 1152 bytes occurs. The vulnerability has been patched in the "develop" branch of Contiki-NG, and will be included in release 4.9. The problem can be fixed by applying the patch in Contiki-NG pull request #2254 prior to the release of version 4.9.
Vulnerability class: Buffer Overflow
Published · last modified .
CVSS v3 metric
CVSS v3 base score 8.2 (High). Vector: CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:L.
EPSS exploit prediction
EPSS 0.004, 31.3th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Contiki-Ng — versions <= 4.8
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 1 other repository (DiRaltvein/memory-corruption-examples). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- https://github.com/contiki-ng/contiki-ng/security/advisories/GHSA-qr4q-6h3m-h3g7 (Patch, Third Party Advisory)
- https://github.com/contiki-ng/contiki-ng/pull/2254 (Patch, Third Party Advisory)