CVE-2026-107836: RIOT: nanoCoAP Block2 client slice handling underflows on inconsistent server-controlled block size

Published Oct 9, 2026
·
Updated

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 nanocoapsockgetslice() in sys/net/applicationlayer/nanocoap/sock.c accepts a Block2 response when blockcb() 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 2bufslice(). 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.

Affected Software

1 affected component
RIOT RIOT<=2026.07

Event History

Oct 9, 2026
CVE Published
via MITRE·05:49 PM
Data Sourced
via MITRE·05:49 PM
DescriptionWeakness
Data Sourced
via NVD·06:17 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which deployments are exposed?

RIOT 2026.07 and earlier are affected where the nanoCoAP client uses nanocoap_sock_get_slice() to retrieve Block2 responses from a CoAP server.

2

What does an attacker need to exploit this?

The attacker needs to control or act as the CoAP server responding to the client. They must return the expected Block2 block number while supplying a larger server-controlled block size that makes the derived offset exceed the requested slice offset.

3

Is a fixed RIOT release available?

No fixed release was available as of this review. The referenced advisory, pull request, and commit identify the upstream remediation work.

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