CVE-2023-37459 Out-of-bounds read when processing a received IPv6 packet

Medium 5.3 Published Updated

An attacker can cause an out-of-bounds read in Contiki-NG by sending a truncated TCP packet, potentially leading to crashes or data exposure.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2023-37459?

CVE-2023-37459 is a medium-severity memory corruption vulnerability in contiki-ng, published on 15 Sep 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Contiki-NG is an operating system for internet-of-things devices. In versions 4.9 and prior, when a packet is received, the Contiki-NG network stack attempts to start the periodic TCP timer if it is a TCP packet with the SYN flag set. But the implementation does not first verify that a full TCP header has been received. Specifically, the implementation attempts to access the flags field from the TCP buffer in the following conditional expression in the `check_for_tcp_syn` function. For this reason, an attacker can inject a truncated TCP packet, which will lead to an out-of-bound read from the packet buffer. As of time of publication, a patched version is not available. As a workaround, one can apply the changes in Contiki-NG pull request #2510 to patch the system.

Weakness: CWE-125

Which versions are affected by CVE-2023-37459?

It affects 1 product.

Products include Contiki-Ng Contiki-Ng.

How do I fix CVE-2023-37459?

No fix has been published for CVE-2023-37459 yet. Limit exposure of the affected software until one is available.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2023-37459 being exploited?

There is no known exploitation of CVE-2023-37459 in the wild and no public exploit code.

Sources

Also known as GHSA-6648-m23r-hq8c.

Is CVE-2023-37459 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free