CVE-2021-21257
CVE-2021-21257 — Out-of-bounds write in RPL-Classic and RPL-Lite
Contiki-NG is an open-source, cross-platform operating system for internet of things devices. The RPL-Classic and RPL-Lite implementations in the Contiki-NG operating system versions prior to 4.6 do not validate the address pointer in the RPL source routing header This makes it possible for an attacker to cause out-of-bounds writes with packets injected into the network stack. Specifically, the problem lies in the rpl_ext_header_srh_update function in the two rpl-ext-header.c modules for RPL-Classic and RPL-Lite respectively. The addr_ptr variable is calculated using an unvalidated CMPR field value from the source routing header. An out-of-bounds write can be triggered on line 151 in os/net/routing/rpl-lite/rpl-ext-header.c and line 261 in os/net/routing/rpl-classic/rpl-ext-header.c, which contain the following memcpy call with addr_ptr as destination. The problem has been patched in…
Published Updated Sources: cvelistV5, GitHub_M
Triage
Is it exploited, how likely is exploitation, what does it touch, and how severe do the scoring sources call it.
Exploitation
Unreported
no source claims exploitation
EPSS
1%
chance of exploitation in 30 days
CVSS base
8.2
HIGH
Affected scope
The catalog records vendors and products as separate lists, not pairs, so which product belongs to which vendor is not something this page can say.
Vendors (1)
Products (1)
Every base score collected
Sources score independently and disagree; each row says who scored it and under which version.
| Score | Version | Severity | Expl. | Impact | Source |
|---|---|---|---|---|---|
| 8.2 | CVSS 3.1 | HIGH | n/a | n/a | cvelistV5 |
Weakness & attack patterns
- CWE-787
Detection
Read off the CVSS vector and the weakness class. Starting points, not rules we have tested.
- Search application, proxy, and WAF logs for requests touching /net/routing/rpl-lite/rpl-ext-header.c, /net/routing/rpl-classic/rpl-ext-header.c.
References
2 on the record
- github.com/contiki-ng/contiki-ng/security/advisories/GHSA-mvc7-9p4q-c5cm
x_refsource_CONFIRM
- github.com/contiki-ng/contiki-ng/pull/1431
x_refsource_MISC
Related CVEs
Same product first, then the same weakness or threat actor.
- CVE-2025-43300 Apple iOS, iPadOS, and macOS Out-of-Bounds Write VulnerabilityCVSS 10.0 · CISA KEV
- CVE-2025-24201 Apple Multiple Products WebKit Out-of-Bounds Write VulnerabilityCVSS 10.0 · CISA KEV
- CVE-2021-35211 SolarWinds Serv-U Remote Code Execution VulnerabilityCVSS 10.0 · CISA KEV
- CVE-2020-14871 Oracle Solaris and Zettabyte File System (ZFS) Unspecified VulnerabilityCVSS 10.0 · CISA KEV
- CVE-2026-111497 Out-of-Bounds Write in Google Brotli DecoderCVSS 9.8 · CISA KEV
- CVE-2026-0300 PAN-OS: Unauthenticated user initiated Buffer Overflow Vulnerability in User-ID™ Authentication PortalCVSS 9.8 · CISA KEV
Elsewhere on this site
- Contiki Ngevery CVE for this vendor
- CWE-787other pages naming this weakness
Not in any source we poll
Listed rather than left blank: an empty field and an unmeasured one look identical on screen, and only one is a reason to look elsewhere.
- No confirmed IOCs, IP addresses, domains, file hashes, or malware artifacts supplied.
- No organization-specific asset inventory, compensating-control status, or patch deployment evidence supplied.
- No exploit packet captures, log samples, or incident case IDs supplied.