CVE-2026-107838

published 9 Oct 2026 · updated 13 Oct 2026

RIOT: nanocoap_fileserver ignores response initialization failure, leading to reachable assertion

7.5HighCVSS 7.5EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. No fixed version is recorded.

RIOT is an open-source microcontroller operating system designed for Internet of Things devices and other embedded systems. From version 2023.07 through version 2026.07, nanocoap_fileserver callers in sys/net/application_layer/nanocoap/fileserver.c ignore a failure returned by _resp_init() when coap_build_reply() cannot fit a response header into the response buffer. A remote client can send a CoAP request with a sufficiently large extended token when nanocoap_token_ext is enabled, causing response initialization to fail while _get_file() or _get_directory() continues with stale response state. The path then reaches _calc_szx2() and its pdu->payload_len > reserve assertion, terminating the affected service or device task. No fixed release is available as of this review.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
RIOT-OS>=2023.07 <=2026.07

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-107838 severity on Zeptric[![CVE-2026-107838](https://zeptric.io/badge/cve/CVE-2026-107838.svg)](https://zeptric.io/cve/CVE-2026-107838)