CVE-2023-37281

Contiki-NG is an operating system for internet-of-things devices. In versions 4.9 and prior, when processing the various IPv6 header fields during IPHC header decompression, Contiki-NG confirms the received packet buffer contains enough data as needed for that field. But no similar check is done before decompressing the IPv6 address. Therefore, up to 16 bytes can be read out of bounds on the line with the statement `memcpy(&ipaddr->u8[16 - postcount], iphc_ptr, postcount);`. The value of `postcount` depends on the address compression used in the received packet and can be controlled by the attacker. As a result, an attacker can inject a packet that causes an out-of-bound read. As of time of publication, a patched version is not available. As a workaround, one can apply the changes in Contiki-NG pull request #2509 to patch the system.
Configurations

Configuration 1 (hide)

cpe:2.3:o:contiki-ng:contiki-ng:*:*:*:*:*:*:*:*

History

19 Sep 2023, 15:14

Type Values Removed Values Added
References (MISC) https://github.com/contiki-ng/contiki-ng/security/advisories/GHSA-2v4c-9p48-g9pr - (MISC) https://github.com/contiki-ng/contiki-ng/security/advisories/GHSA-2v4c-9p48-g9pr - Vendor Advisory
References (MISC) https://github.com/contiki-ng/contiki-ng/pull/2509 - (MISC) https://github.com/contiki-ng/contiki-ng/pull/2509 - Issue Tracking, Patch
First Time Contiki-ng contiki-ng
Contiki-ng
CVSS v2 : unknown
v3 : unknown
v2 : unknown
v3 : 5.3
CPE cpe:2.3:o:contiki-ng:contiki-ng:*:*:*:*:*:*:*:*

17 Sep 2023, 12:01

Type Values Removed Values Added
New CVE

Information

Published : 2023-09-15 20:15

Updated : 2023-12-10 15:14


NVD link : CVE-2023-37281

Mitre link : CVE-2023-37281

CVE.ORG link : CVE-2023-37281


JSON object : View

Products Affected

contiki-ng

  • contiki-ng
CWE
CWE-125

Out-of-bounds Read