CVE-2026-107836
published high CVSS 4.0 · 7.1RIOT: nanoCoAP Block2 client slice handling underflows on inconsistent server-controlled block size
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| RIOT-OS | — | RIOT<= 2026.07 | Affected | Not stated | GitHub_M |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 7.1 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- 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
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| RIOT-OS | RIOT | <= 2026.07 (affected) | GitHub_M · cna |
Weaknesses
2- CWE-125 CWE-125: Out-of-bounds Read
- CWE-191 CWE-191: Integer Underflow (Wrap or Wraparound)
References
3Provider assertions
2GitHub_M · cna
RIOT: nanoCoAP Block2 client slice handling underflows on inconsistent server-controlled block size
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- b90cd347866062c22dfa4dc77370a3bc913f0e7eac84c941e0f5fc75f480b7a7
- Ingested
- 09 Oct 2026, 18:14:33 UTC
- Source record
- Official CVE record