CVE-2021-21281 Buffer overflow due to unvalidated TCP data offset
Remote attackers can trigger a buffer overflow in Contiki-NG via unvalidated TCP data offset, 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-21281?
CVE-2021-21281 is a high-severity memory corruption vulnerability in contiki-ng, published on 18 Jun 2021. 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 internet of things devices. A buffer overflow vulnerability exists in Contiki-NG versions prior to 4.6. After establishing a TCP socket using the tcp-socket library, it is possible for the remote end to send a packet with a data offset that is unvalidated. The problem has been patched in Contiki-NG 4.6. Users can apply the patch for this vulnerability out-of-band as a workaround.
Weakness: CWE-120
Which versions are affected by CVE-2021-21281?
It affects 1 product.
Products include Contiki-Ng Contiki-Ng.
How do I fix CVE-2021-21281?
No fix has been published for CVE-2021-21281 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-21281 being exploited?
There is no known exploitation of CVE-2021-21281 in the wild and no public exploit code.