{"id":"CVE-2026-107838","aliases":["CVE-2026-107838"],"related":[],"kind":"vulnerability","state":"published","title":"RIOT: nanocoap_fileserver ignores response initialization failure, leading to reachable assertion","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"}],"published":"2026-10-09T17:55:34.670Z","modified":"2026-10-16T17:17:04.113Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"}],"cwes":["CWE-252","CWE-617"],"affected":[{"ranges":[{"version":">= 2023.07, <= 2026.07","status":"affected"}],"vendor":"RIOT-OS","product":"RIOT","source":"cvelist"}],"references":[{"url":"https://github.com/RIOT-OS/RIOT/security/advisories/GHSA-39j3-3v73-5mj2","tags":["x-refsource-confirm"],"sources":["cvelist","nvd"]},{"url":"https://github.com/RIOT-OS/RIOT/pull/22745","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://github.com/RIOT-OS/RIOT/commit/d3a47289c58d108575a19e623e4d3f647659e743","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2026-10-13T17:07:15.908Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-107838","url":"https://www.cve.org/CVERecord?id=CVE-2026-107838","licence":"CVE Terms of Use","modified":"2026-10-13T17:07:38.700Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-107838","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-107838","licence":"Public domain","modified":"2026-10-16T17:17:04.113Z"}],"updatedAt":"2026-11-25T22:59:43.350Z","epss":{"score":0.00339,"percentile":0.29304,"date":"2026-12-01T12:00:22.000Z"}}