CVE-2023-34100: Out-of-Bounds Read in contiki-ng
Contiki-NG is an open-source, cross-platform operating system for IoT devices. When reading the TCP MSS option value from an incoming packet, the Contiki-NG OS does not verify that certain buffer indices to read from are within the bounds of the IPv6 packet buffer, uipbuf. In particular, there is a 2-byte buffer read in the module os/net/ipv6/uip6.c. The buffer is indexed using 'UIPIPTCPHLEN + 2 + c' and 'UIPIPTCPHLEN + 3 + c', but the uipbuf buffer may not have enough data, resulting in a 2-byte read out of bounds. The problem has been patched in the "develop" branch of Contiki-NG, and is expected to be included in release 4.9. Users are advised to watch for the 4.9 release and to upgrade when it becomes available. There are no workarounds for this vulnerability aside from manually patching with the diff in commit cde4e9839.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
contiki-ngto a version that resolves this vulnerability.Fixed in 4.9Patch cde4e9839 - Upgrade
Upgrade
contiki-ng (develop branch)to a version that resolves this vulnerability.Patch cde4e9839
Event History
Frequently Asked Questions
What is CVE-2023-34100?
CVE-2023-34100 is a vulnerability in the Contiki-NG operating system for IoT devices that allows for a buffer overflow when reading the TCP MSS option value from an incoming packet.
How does CVE-2023-34100 affect Contiki-NG?
CVE-2023-34100 affects Contiki-NG versions up to and including 4.8, allowing for a potential exploit to execute arbitrary code on affected devices.
What is the severity of CVE-2023-34100?
CVE-2023-34100 has a severity rating of 6.5 (High).
How can I fix CVE-2023-34100?
To fix CVE-2023-34100, it is recommended to update to a patched version of Contiki-NG and implement proper input validation and bounds checking to prevent buffer overflow vulnerabilities.
Where can I find more information about CVE-2023-34100?
You can find more information about CVE-2023-34100 at the following references: [Reference 1](https://github.com/contiki-ng/contiki-ng/pull/2434/commits/cde4e98398a2f5b994972c8459342af3ba93b98e) and [Reference 2](https://github.com/contiki-ng/contiki-ng/security/advisories/GHSA-3v7c-jq9x-cmph).