GHSA-jwmv-47p2-hgq2: RIOT-OS vulnerable to Packet Type Confusion during IPHC send

Published Apr 24, 2023
·
Updated

RIOT-OS, an operating system that supports Internet of Things devices, contains a network stack with the ability to process 6LoWPAN frames. Prior to version 2022.10, an attacker can send a crafted frame to the device resulting in a type confusion between IPv6 extension headers and a UDP header. This occurs while encoding a 6LoWPAN IPHC header. The type confusion manifests in an out of bounds write in the packet buffer. The overflow can be used to corrupt other packets and the allocator metadata. Corrupting a pointer will easily lead to denial of service. While carefully manipulating the allocator metadata gives an attacker the possibility to write data to arbitrary locations and thus execute arbitrary code. Version 2022.10 fixes this issue. As a workaround, apply the patches manually.

Affected Software

1 affected component
RIOT RIOT-OS<2022.10

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade RIOT-OS to a version that resolves this vulnerability.

    Fixed in 2022.10

Event History

Apr 24, 2023
CVE Published
via OSV·03:27 PM
Data Sourced
via OSV·03:27 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which deployments are exposed?

RIOT-OS devices that process 6LoWPAN frames are exposed when running a version earlier than 2022.10. The issue is in the network stack's 6LoWPAN IPHC header encoding path.

2

What does an attacker need to exploit this issue?

An attacker needs to be able to send a crafted 6LoWPAN frame to the target device. No privileges or user interaction are required.

3

What can exploitation achieve?

The crafted frame causes an out-of-bounds write in the packet buffer, which can corrupt packets and allocator metadata. Pointer corruption can cause denial of service, while controlled allocator metadata corruption may allow arbitrary writes and code execution.

4

What should be done if upgrading is not immediately possible?

Apply the available patches manually. Version 2022.10 includes the fix.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203