High severity · published Oct 9, 2026
CVE-2026-107836
RIOT: nanoCoAP Block2 client slice handling underflows on inconsistent server-controlled block size
7.1
CVSS
0.3%
EPSS
No
On KEV
Description
RIOT is an open-source microcontroller operating system designed for Internet of Things devices and other embedded systems. In 2026.07 and earlier, the nanoCoAP client function nanocoap_sock_get_slice() in sys/net/application_layer/nanocoap/sock.c accepts a Block2 response when _block_cb() sees the expected block number without also verifying that the server-controlled szx and derived offset match the requested block geometry. A malicious CoAP server can return the expected block number with a larger block size, causing the derived offset to exceed the client slice offset and making ctx->offset - offset underflow in _2buf_slice(). The resulting buffer-relative calculation can read before the payload buffer and crash the client, causing denial of service and potentially exposing adjacent memory. No fixed release is available as of this review.
Exploitation
Is it being used?
Exploit prediction (EPSS)0.3% · higher than 22% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
RI
RIOT · RIOT-OS
<= 2026.07 · source: vendor
Affected product
RI
RIOT
RIOT-OS
More from RIOT
9.8
CVE-2026-49868
RIOT: DHCPv6 client _parse_reply() missing sub-option length check leads to size_t underflow and unbounded OOB heap read
9.8
CVE-2026-27703
RIOT has an Out-of-Bounds Write in nanoCoAP Handler
9.8
CVE-2026-22214
RIOT OS <= 2026.01-devel-317 Stack-Based Buffer Overflow in ethos Serial Frame Parser
9.8
CVE-2026-22213
RIOT OS <= 2026.01-devel-317 Stack-Based Buffer Overflow in tapslip6 Utility
9.8
CVE-2025-66647
RIOT OS has buffer overflow in gnrc_ipv6_ext_frag_reass