CVE-2026-107836 Details
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.
A buffer underflow vulnerability has been identified in the RIOT operating system's nanoCoAP client, specifically in versions through 2026.07. The issue arises in the function 'nanocoap_sock_get_slice()', which improperly handles Block2 responses from CoAP servers. When a server returns the expected block number but with a larger block size, the derived offset can exceed the client's slice offset. This discrepancy causes a subtraction underflow, leading to an out-of-bounds read before the payload buffer, crashing the client and creating a denial-of-service condition. Additionally, this vulnerability could potentially expose adjacent memory.
As of now, no fixed release is available. However, the vulnerability can be addressed by validating that the Block2 'szx' and derived offset from the server are consistent with the client's expectations before processing the response. Additionally, the '_2buf_slice()' function should be hardened against subtraction underflows.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Oct 9, 2026CISA-ADP
Assessed Oct 9, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/RIOT-OS/RIOT/commit/49b894cbe091510093273b98d92c4a17167d6839 | [email protected] | Source CodeVendor |
| https://github.com/RIOT-OS/RIOT/pull/22518 | [email protected] | Source CodeVendor |
| https://github.com/RIOT-OS/RIOT/security/advisories/GHSA-x924-p5fq-26pc | [email protected] | AdvisoryRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-125 | Out-of-bounds Read | [email protected] |
| CWE-191 | Integer Underflow (Wrap or Wraparound) | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| RIOT | <= master |
CPE
Remediation
| |
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 9, 2026 | New CVE Received | [email protected] |
| Oct 9, 2026 | CVE Modified | CISA-ADP |
Volerion