Integer Underflow Affecting contiki-ng/contiki-ng package, versions [,4.0)


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.14% (50th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UNMANAGED-CONTIKINGCONTIKING-6137930
  • published22 Dec 2023
  • disclosed24 Mar 2021
  • creditUnknown

Introduced: 24 Mar 2021

CVE-2021-28362  (opens in a new tab)
CWE-191  (opens in a new tab)

How to fix?

Upgrade contiki-ng/contiki-ng to version 4.0 or higher.

Overview

Affected versions of this package are vulnerable to Integer Underflow. An issue was discovered in Contiki through 3.0. When sending an ICMPv6 error message because of invalid extension header options in an incoming IPv6 packet, there is an attempt to remove the RPL extension headers. Because the packet length and the extension header length are unchecked (with respect to the available data) at this stage, and these variables are susceptible to integer underflow, it is possible to construct an invalid extension header that will cause memory corruption issues and lead to a Denial-of-Service condition. This is related to rpl-ext-header.c.

References

CVSS Scores

version 3.1