CVE-2021-32771 Buffer overflow in contiki-ng

High 8.1 Published Updated

An attacker can trigger a buffer overflow in Contiki-NG's RPL implementation by sending a malformed DAO packet, potentially leading to code execution or denial of service.

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-2021-32771?

CVE-2021-32771 is a high-severity memory corruption vulnerability in contiki-ng, published on 4 Aug 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Contiki-NG is an open-source, cross-platform operating system for IoT devices. In affected versions it is possible to cause a buffer overflow when copying an IPv6 address prefix in the RPL-Classic implementation in Contiki-NG. In order to trigger the vulnerability, the Contiki-NG system must have joined an RPL DODAG. After that, an attacker can send a DAO packet with a Target option that contains a prefix length larger than 128 bits. The problem was fixed after the release of Contiki-NG 4.7. Users unable to upgrade may apply the patch in Contiki-NG PR #1615.

Weakness: CWE-120

Which versions are affected by CVE-2021-32771?

It affects 1 product.

Products include Contiki-Ng Contiki-Ng.

How do I fix CVE-2021-32771?

No fix has been published for CVE-2021-32771 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-2021-32771 being exploited?

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

Sources

Is CVE-2021-32771 in your software?

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

Check your SBOMs for free