CVE-2021-21410
JSON

8.2high

Out-of-bounds read in the 6LoWPAN implementation

Severity
8.2high CVSS:3.1 by GitHub_M
Exploit likelihood
1.23% (higher than 69% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M

Description

Contiki-NG is an open-source, cross-platform operating system for Next-Generation IoT devices. An out-of-bounds read can be triggered by 6LoWPAN packets sent to devices running Contiki-NG 4.6 and prior. The IPv6 header decompression function (<code>uncompress_hdr_iphc</code>) does not perform proper boundary checks when reading from the packet buffer. Hence, it is possible to construct a compressed 6LoWPAN packet that will read more bytes than what is available from the packet buffer. As of time of publication, there is not a release with a patch available. Users can apply the patch for this vulnerability out-of-band as a workaround.

Affected

Product or packageVersionsReported by
contiki-ng contiki-ng<= 4.6, up to 4.6CVE List, NVD

All scores

GitHub_M8.2high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:L
NVD9.1critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
NVD6.4medium CVSS:2.0AV:N/AC:L/Au:N/C:P/I:N/A:P

Classification

What each source says

CVE List

Contiki-NG is an open-source, cross-platform operating system for Next-Generation IoT devices. An out-of-bounds read can be triggered by 6LoWPAN packets sent to devices running Contiki-NG 4.6 and prior. The IPv6 header decompression function (<code>uncompress_hdr_iphc</code>) does not perform proper boundary checks when reading from the packet buffer. Hence, it is possible to construct a compressed 6LoWPAN packet that will read more bytes than what is available from the packet buffer. As of time of publication, there is not a release with a patch available. Users can apply the patch for this vulnerability out-of-band as a workaround.

NVD (es)

Contiki-NG es un sistema operativo de código abierto y multiplataforma para dispositivos IoT de próxima generación. Una lectura fuera de límites puede ser desencadenada por los paquetes 6LoWPAN enviados a dispositivos que ejecutan Contiki-NG versiones 4.6 y anteriores. La función de descompresión de encabezados IPv6 ((code)uncompress_hdr_iphc(/code)) no lleva a cabo comprobaciones de límites apropiadas al leer del búfer del paquete. Por lo tanto, es posible construir un paquete 6LoWPAN comprimido que leerá más bytes de los que están disponibles en el búfer del paquete. En el momento de la publicación, no se presenta una versión con un parche disponible. Los usuarios pueden aplicar el parche para esta vulnerabilidad fuera de límite como solución alternativa

References

Sources

SourceRecordLicence
CVE ListCVE-2021-21410 changed 2024-08-03CVE Terms of Use
NVDCVE-2021-21410 changed 2026-06-17Public domain