Skip to content

Buffer overflow in L2CAP due to misconfigured MTU

Moderate
nvt published GHSA-m737-4vx6-pfqp Mar 17, 2023

Package

ble-l2cap

Affected versions

<= 4.8

Patched versions

None

Description

Impact

An out-of-bounds write can occur in the BLE L2CAP module of the Contiki-NG operating system. The network stack of Contiki-NG uses a global buffer (packetbuf) for processing of packets, with the size of PACKETBUF_SIZE. In particular, when using the BLE L2CAP module with the default configuration, the PACKETBUF_SIZE value becomes larger then the actual size of the packetbuf. When large packets are processed by the L2CAP module, a buffer overflow can therefore occur when copying the packet data to the packetbuf.

Patches

The vulnerability has been patched in the "develop" branch of Contiki-NG, and will be included in release 4.9.

Workarounds

The problem can be fixed by applying the patch in Contiki-NG pull request #2398.

For more information

If you have any questions or comments about this advisory:

Open an issue in https://github.com/contiki-ng/contiki-ng
Email us at security@contiki-ng.org

Severity

Moderate

CVE ID

CVE-2023-28116

Weaknesses

Credits