Summary
CVE-2026-82391 is an out-of-bounds write vulnerability (CWE-787) in the HTTP/2 server’s static-filesystem handler in Zephyr RTOS. An unauthenticated remote attacker can trigger memory corruption with an HTTP/2 GET request. The vulnerability has a CVSS v3.1 base score of 9.1 (Critical).
Technical details
- Root cause:
handle_http2_static_fs_resource()passes the connection’s live receive-buffer length counter as the file-size output parameter. The counter is overwritten with the file’s actual size on disk and is never restored. - Trigger conditions: The device registers static filesystem resources with file system support enabled (
CONFIG_FILE_SYSTEM=yandCONFIG_HTTP_SERVER_VERSION_2=y). The attacker requests a file larger than the default 256-byte receive buffer. The advisory states HTTP/2 is enabled by default. - Attack vector: The attack runs over the network with an unauthenticated HTTP/2 GET request. It requires no TLS and no credentials.
- Mechanism: The corrupted counter causes a
memmoveof file-size bytes into the 256-byte buffer. Later socket receive size calculations then underflow, which lets attacker-controlled data be written to memory outside the buffer. - Impact: Remote memory corruption in the server’s single address space. The vendor describes this as "at minimum a crash or hang of the device, and plausibly control-data overwrite leading to code execution."
Affected software
- Zephyr RTOS 4.0.0 through 4.3.1 (inclusive)
- Zephyr RTOS 4.4.0 through 4.4.x
Severity
- CVSS v3.1 base score: 9.1 (Critical)
- Vector:
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H
Mitigation and recommended actions
- Immediate: Upgrade to Zephyr 4.3.2 or 4.5.0 (or later), which contain the fix.
- Workarounds: The vendor documents none. Until patched, restrict network access to the device’s HTTP server to trusted hosts only. Where possible, avoid registering static filesystem resources on HTTP/2 services exposed to untrusted networks.

