ID

VAR-202106-0918


CVE

CVE-2021-21257


TITLE

Contiki-NG  Out-of-bounds Vulnerability in Microsoft

Trust: 0.8

sources: JVNDB: JVNDB-2021-008307

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. Contiki-NG Is vulnerable to an out-of-bounds write.Denial of service (DoS) It may be put into a state. The rpl_ext_header_srh_update function in the rpl-ext-header.c in the RPL-Classic and RPL-Lite implementations of Contiki-NG versions prior to 4.6 has an out-of-bounds write vulnerability. The vulnerability stems from not verifying the address pointer in the RPL source routing header. No detailed vulnerability details are currently provided. Pillow is a Python-based image processing library. There is currently no information about this vulnerability, please feel free to follow CNNVD or manufacturer announcements. Attackers can use this vulnerability to cause out-of-range write operations by injecting data packets into the network stack

Trust: 3.24

sources: NVD: CVE-2021-21257 // JVNDB: JVNDB-2021-008307 // CNVD: CNVD-2021-44269 // CNNVD: CNNVD-202104-975 // CNNVD: CNNVD-202106-1424

IOT TAXONOMY

category:['IoT']sub_category: -

Trust: 0.6

sources: CNVD: CNVD-2021-44269

AFFECTED PRODUCTS

vendor:contiki ngmodel:contiki-ngscope:ltversion:4.6

Trust: 1.6

vendor:contiki ngmodel:contiki-ngscope:eqversion: -

Trust: 0.8

vendor:contiki ngmodel:contiki-ngscope:eqversion:4.6

Trust: 0.8

sources: CNVD: CNVD-2021-44269 // JVNDB: JVNDB-2021-008307 // NVD: CVE-2021-21257

CVSS

SEVERITY

CVSSV2

CVSSV3

nvd@nist.gov: CVE-2021-21257
value: HIGH

Trust: 1.0

security-advisories@github.com: CVE-2021-21257
value: HIGH

Trust: 1.0

NVD: CVE-2021-21257
value: HIGH

Trust: 0.8

CNVD: CNVD-2021-44269
value: HIGH

Trust: 0.6

CNNVD: CNNVD-202104-975
value: MEDIUM

Trust: 0.6

CNNVD: CNNVD-202106-1424
value: HIGH

Trust: 0.6

nvd@nist.gov: CVE-2021-21257
severity: MEDIUM
baseScore: 5.0
vectorString: AV:N/AC:L/AU:N/C:N/I:N/A:P
accessVector: NETWORK
accessComplexity: LOW
authentication: NONE
confidentialityImpact: NONE
integrityImpact: NONE
availabilityImpact: PARTIAL
exploitabilityScore: 10.0
impactScore: 2.9
acInsufInfo: NONE
obtainAllPrivilege: NONE
obtainUserPrivilege: NONE
obtainOtherPrivilege: NONE
userInteractionRequired: NONE
version: 2.0

Trust: 1.8

CNVD: CNVD-2021-44269
severity: HIGH
baseScore: 8.5
vectorString: AV:N/AC:L/AU:N/C:N/I:C/A:P
accessVector: NETWORK
accessComplexity: LOW
authentication: NONE
confidentialityImpact: NONE
integrityImpact: COMPLETE
availabilityImpact: PARTIAL
exploitabilityScore: 10.0
impactScore: 7.8
acInsufInfo: NONE
obtainAllPrivilege: NONE
obtainUserPrivilege: NONE
obtainOtherPrivilege: NONE
userInteractionRequired: NONE
version: 2.0

Trust: 0.6

nvd@nist.gov: CVE-2021-21257
baseSeverity: HIGH
baseScore: 7.5
vectorString: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
attackVector: NETWORK
attackComplexity: LOW
privilegesRequired: NONE
userInteraction: NONE
scope: UNCHANGED
confidentialityImpact: NONE
integrityImpact: NONE
availabilityImpact: HIGH
exploitabilityScore: 3.9
impactScore: 3.6
version: 3.1

Trust: 1.0

security-advisories@github.com: CVE-2021-21257
baseSeverity: HIGH
baseScore: 8.2
vectorString: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:L
attackVector: NETWORK
attackComplexity: LOW
privilegesRequired: NONE
userInteraction: NONE
scope: UNCHANGED
confidentialityImpact: NONE
integrityImpact: HIGH
availabilityImpact: LOW
exploitabilityScore: 3.9
impactScore: 4.2
version: 3.1

Trust: 1.0

NVD: CVE-2021-21257
baseSeverity: HIGH
baseScore: 7.5
vectorString: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
attackVector: NETWORK
attackComplexity: LOW
privilegesRequired: NONE
userInteraction: NONE
scope: UNCHANGED
confidentialityImpact: NONE
integrityImpact: NONE
availabilityImpact: HIGH
exploitabilityScore: NONE
impactScore: NONE
version: 3.0

Trust: 0.8

sources: CNVD: CNVD-2021-44269 // JVNDB: JVNDB-2021-008307 // CNNVD: CNNVD-202104-975 // CNNVD: CNNVD-202106-1424 // NVD: CVE-2021-21257 // NVD: CVE-2021-21257

PROBLEMTYPE DATA

problemtype:CWE-787

Trust: 1.0

problemtype:Out-of-bounds writing (CWE-787) [ Other ]

Trust: 0.8

sources: JVNDB: JVNDB-2021-008307 // NVD: CVE-2021-21257

THREAT TYPE

remote

Trust: 0.6

sources: CNNVD: CNNVD-202106-1424

TYPE

other

Trust: 0.6

sources: CNNVD: CNNVD-202104-975

PATCH

title:Validate the address pointer in the source routing header #1431 GitHuburl:https://github.com/contiki-ng/contiki-ng/pull/1431

Trust: 0.8

title:Patch for Contiki-NG out-of-bounds write vulnerability (CNVD-2021-44269)url:https://www.cnvd.org.cn/patchInfo/show/274506

Trust: 0.6

title:Contiki-NG Buffer error vulnerability fixurl:http://www.cnnvd.org.cn/web/xxk/bdxqById.tag?id=155316

Trust: 0.6

sources: CNVD: CNVD-2021-44269 // JVNDB: JVNDB-2021-008307 // CNNVD: CNNVD-202106-1424

EXTERNAL IDS

db:NVDid:CVE-2021-21257

Trust: 3.8

db:JVNDBid:JVNDB-2021-008307

Trust: 0.8

db:CNVDid:CNVD-2021-44269

Trust: 0.6

db:CS-HELPid:SB2021041363

Trust: 0.6

db:CNNVDid:CNNVD-202104-975

Trust: 0.6

db:CS-HELPid:SB2021062407

Trust: 0.6

db:CNNVDid:CNNVD-202106-1424

Trust: 0.6

sources: CNVD: CNVD-2021-44269 // JVNDB: JVNDB-2021-008307 // CNNVD: CNNVD-202104-975 // CNNVD: CNNVD-202106-1424 // NVD: CVE-2021-21257

REFERENCES

url:https://github.com/contiki-ng/contiki-ng/security/advisories/ghsa-mvc7-9p4q-c5cm

Trust: 1.6

url:https://github.com/contiki-ng/contiki-ng/pull/1431

Trust: 1.6

url:https://nvd.nist.gov/vuln/detail/cve-2021-21257

Trust: 1.4

url:https://www.cybersecurity-help.cz/vdb/sb2021041363

Trust: 0.6

url:https://www.cybersecurity-help.cz/vdb/sb2021062407

Trust: 0.6

sources: CNVD: CNVD-2021-44269 // JVNDB: JVNDB-2021-008307 // CNNVD: CNNVD-202104-975 // CNNVD: CNNVD-202106-1424 // NVD: CVE-2021-21257

SOURCES

db:CNVDid:CNVD-2021-44269
db:JVNDBid:JVNDB-2021-008307
db:CNNVDid:CNNVD-202104-975
db:CNNVDid:CNNVD-202106-1424
db:NVDid:CVE-2021-21257

LAST UPDATE DATE

2024-08-14T12:39:52.977000+00:00


SOURCES UPDATE DATE

db:CNVDid:CNVD-2021-44269date:2021-06-23T00:00:00
db:JVNDBid:JVNDB-2021-008307date:2022-03-11T08:51:00
db:CNNVDid:CNNVD-202104-975date:2021-04-14T00:00:00
db:CNNVDid:CNNVD-202106-1424date:2021-06-28T00:00:00
db:NVDid:CVE-2021-21257date:2021-06-24T19:35:00.607

SOURCES RELEASE DATE

db:CNVDid:CNVD-2021-44269date:2021-06-23T00:00:00
db:JVNDBid:JVNDB-2021-008307date:2022-03-11T00:00:00
db:CNNVDid:CNNVD-202104-975date:2021-04-13T00:00:00
db:CNNVDid:CNNVD-202106-1424date:2021-06-18T00:00:00
db:NVDid:CVE-2021-21257date:2021-06-18T21:15:07.583