Skip to content

Unverified DIO prefix info lengths in RPL-Classic

High
joakimeriksson published GHSA-9rm9-3phh-p4wm Aug 4, 2022

Package

No package listed

Affected versions

< 4.7

Patched versions

None

Description

Impact

In the RPL-Classic routing protocol implementation in the Contiki-NG operating system, an incoming DODAG Information Option (DIO) control message can contain a prefix information option with a length parameter. The value of the length parameter is not validated, however, and it is possible to cause a buffer overflow when copying the prefix in the set_ip_from_prefix function.

This vulnerability affects anyone running a Contiki-NG version prior to 4.7 that can receive RPL DIO messages from external parties.

Patches

To obtain a patched version, users should upgrade to Contiki-NG 4.7 or later.

Workarounds

The problem has been patched in PR #1589, which inserts a validation check that discards DIOs with too large length values in the prefix info option.

For more information

If you have any questions or comments about this advisory:

Severity

High

CVE ID

CVE-2022-35927

Weaknesses