Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1336 CNY

100%

CVE-2021-21257— Out-of-bounds write in RPL-Classic and RPL-Lite

Quick assessment

Affected
contiki-ng contiki-ng
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

Contiki-NG是一套用于下一代IoT(物联网)设备的开源跨平台操作系统。 Contiki-NG 存在缓冲区错误漏洞,该漏洞源于在4.6之前的操作系统版本中的RPL- classic和RPL- lite实现不验证RPL源路由报头中的地址指针。攻击者可利用该漏洞通过注入到网络堆栈中的数据包导致超出范围的写操作。

CVSS 8.2 · High EPSS 1.09% · P62
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2021-21257

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
Out-of-bounds write in RPL-Classic and RPL-Lite
Source: CVE Program / CVE List V5
Vulnerability Description
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 Contiki-NG 4.6. Users can apply a patch out-of-band as a workaround.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:L
Source: CVE Program / CVE List V5
Vulnerability Type
跨界内存写
Source: CVE Program / CVE List V5
Vulnerability Title
Contiki-NG 缓冲区错误漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
Contiki-NG是一套用于下一代IoT(物联网)设备的开源跨平台操作系统。 Contiki-NG 存在缓冲区错误漏洞,该漏洞源于在4.6之前的操作系统版本中的RPL- classic和RPL- lite实现不验证RPL源路由报头中的地址指针。攻击者可利用该漏洞通过注入到网络堆栈中的数据包导致超出范围的写操作。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
contiki-ng contiki-ng < 4.6 -

II. Public POCs for CVE-2021-21257

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2021-21257

登录查看更多情报信息。

Patches & Fixes for CVE-2021-21257 (1)

Vendor Advisories for CVE-2021-21257 (1)

Same Patch Batch · contiki-ng · 2021-06-18 · 6 CVEs total

CVE-2021-21280 8.6 HIGH Out-of-bounds write when processing 6LoWPAN extension headers
CVE-2021-21282 8.6 HIGH Buffer overflow in RPL source routing header processing
CVE-2021-21410 8.2 HIGH Out-of-bounds read in the 6LoWPAN implementation
CVE-2021-21279 7.5 HIGH Infinite loop in IPv6 neighbor solicitation processing
CVE-2021-21281 7.0 HIGH Buffer overflow due to unvalidated TCP data offset

IV. Related Vulnerabilities

V. Comments for CVE-2021-21257

No comments yet


Leave a comment