RIOT-OS RIOT
RIOT: Potential integer overflow in nanocoap Block2 handling leading to out-of-bounds memory access
RIOT is an open-source microcontroller operating system designed for Internet of Things devices and other embedded systems. Prior to 2026.07, nanocoap accepts oversized CoAP Block2 option values without enforcing the 20-bit maximum block number, allowing block offset multiplication to overflow on 32-bit targets. The affected master baseline is commit aeeae69e; the verified fix is later on master and remains unreleased. The oversized value passes from coap_get_blockopt() to coap_block_slicer_init(). A remote CoAP client can send a malformed Block2 option that produces an invalid slice range and can cause out-of-bounds memory access, denial of service, or memory corruption. This vulnerability is fixed in 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/commit/6b283ace3565d93…
- Patch github.com/RIOT-OS/RIOT/commit/ee1fa0ef9187449…
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.