ID

VAR-202211-1224


CVE

CVE-2022-41873


TITLE

Contiki-NG Buffer error vulnerability

Trust: 0.6

sources: CNNVD: CNNVD-202211-2572

DESCRIPTION

Contiki-NG is an open-source, cross-platform operating system for Next-Generation IoT devices. Versions prior to 4.9 are vulnerable to an Out-of-bounds read. While processing the L2CAP protocol, the Bluetooth Low Energy stack of Contiki-NG needs to map an incoming channel ID to its metadata structure. While looking up the corresponding channel structure in get_channel_for_cid (in os/net/mac/ble/ble-l2cap.c), a bounds check is performed on the incoming channel ID, which is meant to ensure that the channel ID does not exceed the maximum number of supported channels.However, an integer truncation issue leads to only the lowest byte of the channel ID to be checked, which leads to an incomplete out-of-bounds check. A crafted channel ID leads to out-of-bounds memory to be read and written with attacker-controlled data. The vulnerability has been patched in the "develop" branch of Contiki-NG, and will be included in release 4.9. As a workaround, Users can apply the patch in Contiki-NG pull request 2081 on GitHub. Contiki-NG has a security vulnerability that stems from its BLE L2CAP module allowing an attacker to achieve an out-of-bounds read

Trust: 1.44

sources: NVD: CVE-2022-41873 // CNNVD: CNNVD-202211-2572

AFFECTED PRODUCTS

vendor:contiki ngmodel:contiki-ngscope:ltversion:4.9

Trust: 1.0

sources: NVD: CVE-2022-41873

CVSS

SEVERITY

CVSSV2

CVSSV3

nvd@nist.gov: CVE-2022-41873
value: MEDIUM

Trust: 1.0

security-advisories@github.com: CVE-2022-41873
value: MEDIUM

Trust: 1.0

CNNVD: CNNVD-202211-2572
value: MEDIUM

Trust: 0.6

nvd@nist.gov: CVE-2022-41873
baseSeverity: MEDIUM
baseScore: 5.4
vectorString: CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
attackVector: ADJACENT
attackComplexity: LOW
privilegesRequired: NONE
userInteraction: NONE
scope: UNCHANGED
confidentialityImpact: LOW
integrityImpact: LOW
availabilityImpact: NONE
exploitabilityScore: 2.8
impactScore: 2.5
version: 3.1

Trust: 1.0

security-advisories@github.com: CVE-2022-41873
baseSeverity: MEDIUM
baseScore: 4.2
vectorString: CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N
attackVector: ADJACENT
attackComplexity: HIGH
privilegesRequired: NONE
userInteraction: NONE
scope: UNCHANGED
confidentialityImpact: LOW
integrityImpact: LOW
availabilityImpact: NONE
exploitabilityScore: 1.6
impactScore: 2.5
version: 3.1

Trust: 1.0

sources: CNNVD: CNNVD-202211-2572 // NVD: CVE-2022-41873 // NVD: CVE-2022-41873

PROBLEMTYPE DATA

problemtype:CWE-125

Trust: 1.0

problemtype:CWE-787

Trust: 1.0

sources: NVD: CVE-2022-41873

THREAT TYPE

remote or local

Trust: 0.6

sources: CNNVD: CNNVD-202211-2572

TYPE

buffer error

Trust: 0.6

sources: CNNVD: CNNVD-202211-2572

PATCH

title:Contiki-NG Buffer error vulnerability fixurl:http://123.124.177.30/web/xxk/bdxqById.tag?id=214905

Trust: 0.6

sources: CNNVD: CNNVD-202211-2572

EXTERNAL IDS

db:NVDid:CVE-2022-41873

Trust: 1.6

db:CNNVDid:CNNVD-202211-2572

Trust: 0.6

sources: CNNVD: CNNVD-202211-2572 // NVD: CVE-2022-41873

REFERENCES

url:https://github.com/contiki-ng/contiki-ng/security/advisories/ghsa-m5cj-fw8m-ffgf

Trust: 1.6

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

Trust: 1.6

url:https://cxsecurity.com/cveshow/cve-2022-41873/

Trust: 0.6

sources: CNNVD: CNNVD-202211-2572 // NVD: CVE-2022-41873

SOURCES

db:CNNVDid:CNNVD-202211-2572
db:NVDid:CVE-2022-41873

LAST UPDATE DATE

2024-08-14T15:16:21.896000+00:00


SOURCES UPDATE DATE

db:CNNVDid:CNNVD-202211-2572date:2022-11-21T00:00:00
db:NVDid:CVE-2022-41873date:2022-11-18T14:05:22.993

SOURCES RELEASE DATE

db:CNNVDid:CNNVD-202211-2572date:2022-11-11T00:00:00
db:NVDid:CVE-2022-41873date:2022-11-11T04:15:11.973