{"id":"CVE-2026-107838","published":"2026-10-09T17:55:34Z","modified":"2026-10-13T17:07:38Z","title":"RIOT: nanocoap_fileserver ignores response initialization failure, leading to reachable assertion","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. 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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00609,"percentile":0.43325,"provenance":"source"},"cwes":[{"id":"CWE-252","name":"Unchecked Return Value"},{"id":"CWE-617","name":"Reachable Assertion"}],"references":[{"url":"https://github.com/RIOT-OS/RIOT/security/advisories/GHSA-39j3-3v73-5mj2","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/RIOT-OS/RIOT/pull/22745","tags":["x_refsource_MISC"]},{"url":"https://github.com/RIOT-OS/RIOT/commit/d3a47289c58d108575a19e623e4d3f647659e743","tags":["x_refsource_MISC"]}],"priority":{"score":13.9,"factors":[{"name":"EPSS percentile","points":8.67},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"riot-os","affectedVersions":[{"vendor":"RIOT-OS","product":"RIOT","versions":[">= 2023.07, <= 2026.07"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-10-13T17:07:15.908632Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-95933","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-riot-os-riot-cve-2026-107838","children":[{"from":"CVE-2026-107838","to":"CVE-2026-102692","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["sys/net/application_layer/nanocoap/fileserver.c"],"commits":["https://github.com/RIOT-OS/RIOT/commit/6b283ace3565d931b3edff7e115d4f79339253b8","https://github.com/RIOT-OS/RIOT/commit/ee1fa0ef91874494823d476392572aeefdbc6b74","https://github.com/RIOT-OS/RIOT/commit/d3a47289c58d108575a19e623e4d3f647659e743"],"basis":"shared function","functions":["_get_directory","_get_file"]}]}]}}