CVE-2023-37281 Out-of-bounds read during IPHC address decompression

Medium 5.3 Published Updated

An attacker can trigger an out-of-bounds read in Contiki-NG by sending a crafted IPv6 packet, potentially leaking memory or causing a crash.

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-37281?

CVE-2023-37281 is a medium-severity 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 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.

Weakness: CWE-125

Which versions are affected by CVE-2023-37281?

It affects 1 product.

Products include Contiki-Ng Contiki-Ng.

How do I fix CVE-2023-37281?

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

Is CVE-2023-37281 being exploited?

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

Sources

Also known as GHSA-2v4c-9p48-g9pr.

Is CVE-2023-37281 in your software?

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

Check your SBOMs for free