RIOT-OS RIOT
RIOT: DHCPv6 client _parse_reply() missing sub-option length check leads to size_t underflow and unbounded OOB heap read
RIOT is an open-source microcontroller operating system designed for Internet of Things devices and other embedded systems. Prior to 2026.07, _parse_reply() in sys/net/application_layer/dhcpv6/client.c omits minimum-length validation before passing IA_PD and IA_NA option bodies to sub-option parsers. A malicious or compromised DHCPv6 server can send a REPLY with an option length smaller than the required structure while MODULE_DHCPV6_CLIENT_IA_PD is enabled, causing _parse_ia_pd_option to read past the option body, size_t underflow, and unbounded out-of-bounds heap reads that can crash the device and may expose or corrupt memory. This issue is fixed in version 2026.07.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 2026.07
Fixed in 2026.07
Mitigation
Upgrade RIOT to 2026.07 or later.
References
- Vendor advisory github.com/RIOT-OS/RIOT/security/advisories/GH…
- Patch github.com/RIOT-OS/RIOT/pull/22322
- Patch github.com/RIOT-OS/RIOT/commit/c9830dc5f2a9bf9…
1 more
- Release notes github.com/RIOT-OS/RIOT/releases/tag/2026.07
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.