Skip to content

Out-of-bounds read when decompressing UDP header

Moderate
joakimeriksson published GHSA-vwr8-6mqv-x7f5 Aug 29, 2022

Package

No package listed

Affected versions

< 4.8

Patched versions

4.8

Description

Impact

The 6LoWPAN implementation in Contiki-NG may cast a UDP header structure at a certain offset in a packet buffer. The code does not check whether the packet buffer is large enough to fit a full UDP header structure from the offset where the casting is made. Hence, it is possible to cause an out-of-bounds read beyond the packet buffer.

The problem affects anyone running devices with Contiki-NG versions previous to 4.8, and which may receive 6LoWPAN packets from external parties.

Patches

The problem has been patched in Contiki-NG version 4.8.

Workarounds

To fix the issue without upgrading, users can apply the patch in the GitHub pull request #1646.

For more information

If you have any questions or comments about this advisory:

Severity

Moderate

CVE ID

CVE-2022-36052

Weaknesses