{"id":"CVE-2026-107836","published":"2026-10-09T17:49:41Z","modified":"2026-10-09T18:00:37Z","title":"RIOT: nanoCoAP Block2 client slice handling underflows on inconsistent server-controlled block size","vendor":"RIOT-OS","product":"RIOT","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.1,"severity":"HIGH","version":"4.0","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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00511,"percentile":0.36793,"provenance":"source"},"cwes":[{"id":"CWE-125","name":"Out-of-bounds Read"},{"id":"CWE-191","name":"Integer Underflow (Wrap or Wraparound)"}],"references":[{"url":"https://github.com/RIOT-OS/RIOT/security/advisories/GHSA-x924-p5fq-26pc","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/RIOT-OS/RIOT/pull/22518","tags":["x_refsource_MISC"]},{"url":"https://github.com/RIOT-OS/RIOT/commit/49b894cbe091510093273b98d92c4a17167d6839","tags":["x_refsource_MISC"]}],"priority":{"score":12.3,"factors":[{"name":"EPSS percentile","points":7.36},{"name":"CVSS severity","points":4.97}]},"vendorSlug":"riot-os","affectedVersions":[{"vendor":"RIOT-OS","product":"RIOT","versions":["<= 2026.07"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-10-09T17:59:40.461358Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-95931","exploited":false,"provenance":"source"}}