CVE-2026-107838
published high CVSS 3.1 · 7.5RIOT: nanocoap_fileserver ignores response initialization failure, leading to reachable assertion
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| RIOT-OS | — | RIOT>= 2023.07, <= 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. 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.
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
- 3.1
- Base score
- 7.5 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| RIOT-OS | RIOT | >= 2023.07, <= 2026.07 (affected) | GitHub_M · cna |
Weaknesses
2- CWE-252 CWE-252: Unchecked Return Value
- CWE-617 CWE-617: Reachable Assertion
References
3Provider assertions
2GitHub_M · cna
RIOT: nanocoap_fileserver ignores response initialization failure, leading to reachable assertion
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- c9f661afed58e2a528161ba20e36a02c5fc2c4655bdeb01f2cdb1a50e2d17aec
- Ingested
- 13 Oct 2026, 17:19:01 UTC
- Source record
- Official CVE record