CVE-2026-107838
JSON

7.5high

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

Severity
7.5high CVSS:3.1 by GitHub_M
Exploit likelihood
0.34% (higher than 29% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M

Description

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

Product or packageVersionsReported by
RIOT-OS RIOT>= 2023.07, <= 2026.07CVE List

Classification

CWE-252CWE-617

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-107838 changed 2026-10-13CVE Terms of Use
NVDCVE-2026-107838 changed 2026-10-16Public domain