CVE-2026-107838: CWE-252: Unchecked Return Value in RIOT-OS RIOT
Description
CVE-2026-107838 is a high-severity vulnerability in the RIOT-OS microcontroller operating system affecting versions from 2023.07 through 2026.07. It involves unchecked return values in the nanocoap_fileserver component, where failure to handle a response initialization error can lead to assertion failures and termination of the affected service or device task. This occurs when a remote client sends a CoAP request with a large extended token while nanocoap_token_ext is enabled. No fixed release is currently available.
CVSS v3.1
Score 7.5high
Affected software
RIOT-OS
RIOT
pkg:github/riot-os/RIOTRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
RIOT-OS versions 2023.07 through 2026.07 contain a vulnerability in the nanocoap_fileserver module (sys/net/application_layer/nanocoap/fileserver.c) where callers ignore the failure returned by _resp_init() when coap_build_reply() cannot fit a response header into the response buffer. A remote attacker can exploit this by sending a CoAP request with a sufficiently large extended token, causing response initialization to fail but allowing _get_file() or _get_directory() to continue operating with stale response state. This leads to an assertion failure in _calc_szx2() when pdu->payload_len exceeds the reserved size, resulting in termination of the affected service or device task. No patch or fixed release is currently available as of the latest review.
Potential Impact
The vulnerability can cause denial of service by terminating the affected service or device task due to assertion failure. It does not impact confidentiality or integrity but results in availability disruption. The CVSS 3.1 base score is 7.5 (high), reflecting network attack vector, low attack complexity, no privileges required, no user interaction, and impact limited to availability.
Mitigation Recommendations
No official fix or patch is currently available for this vulnerability. Users should monitor the vendor's advisories for updates and consider implementing network-level protections to limit exposure to malicious CoAP requests with large extended tokens. Avoid enabling nanocoap_token_ext if possible until a fix is released. Patch status is not yet confirmed — check the vendor advisory for current remediation guidance.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-10-08T22:34:49.290Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 6ac92c962cdf04f656752967
Added to database: 10/09/2026, 18:04:06 UTC
Last enriched: 10/09/2026, 18:18:28 UTC
Last updated: 10/09/2026, 18:57:31 UTC
Views: 15
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.