CVE-2026-10645
Last modified
CVE-2026-10645 is a medium-severity vulnerability rated 5.5/10 on the CVSS scale. The Zephyr ext2 filesystem driver (subsys/fs/ext2) trusted the on-disk directory entry fields de_rec_len and de_name_len when walking a directory block. ext2_fetch_direntry() guarded only with de_name_len > EXT2_MAX_FILE_NAME, but de_name_len is a uint8_t and EXT2_MAX_FILE_NAME is 255, so the check is always false; the function then memcpy'd up to 255 name bytes and the lookup/readdir paths advanced traversal by an unvalidated de_rec_len. EPSS estimates a 0.21% chance of exploitation in the next 30 days.
Description
The Zephyr ext2 filesystem driver (subsys/fs/ext2) trusted the on-disk directory entry fields de_rec_len and de_name_len when walking a directory block. ext2_fetch_direntry() guarded only with de_name_len > EXT2_MAX_FILE_NAME, but de_name_len is a uint8_t and EXT2_MAX_FILE_NAME is 255, so the check is always false; the function then memcpy'd up to 255 name bytes and the lookup/readdir paths advanced traversal by an unvalidated de_rec_len. Each directory block is read into a block_size-sized slab buffer, and block_off can be driven near the block end by preceding entries' rec_len, so the 8-byte header read and the subsequent name memcpy can read up to ~263 bytes past the end of the block buffer into adjacent heap/slab memory. On the readdir path those bytes are returned to the caller in fs_dirent.name, leaking adjacent kernel heap memory; a de_rec_len of 0 also causes a zero-progress infinite loop (denial of service), and the unlink path's memmove(de, next, next_reclen) over unvalidated records is an additional OOB read/write source. The defect is reached by any path-based operation (open, stat, unlink, rename, mkdir) or directory listing on a mounted ext2 volume, so a crafted or corrupted ext2 image on attacker-supplied storage (SD card, USB mass storage, or otherwise mounted image) triggers it. Affected: Zephyr ext2 from its introduction in v3.5.0 through v4.4.0. The fix validates rec_len and name_len in the parser and rejects entries whose header does not fit the remaining block or whose rec_len crosses the block boundary in every traversal caller.
Metrics
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Zephyrproject | Zephyr | <= 4.4.1 |
References
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2026-10645?
How severe is CVE-2026-10645?
How do I fix CVE-2026-10645?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-1064A vulnerability was found in bastillion-io Bastillion up to …4.7
- CVE-2026-10640Zephyr's IPv6 Neighbor Discovery send paths (net_ipv6_send_n…7.1
- CVE-2026-10641Zephyr's Bluetooth Classic Hands-Free Profile (HFP) Hands-Fr…7.1
- CVE-2026-10642The Zephyr PL011 UART driver (drivers/serial/uart_pl011.c) c…4.6
- CVE-2026-10643Zephyr's IP socket recvmsg() implementation (subsys/net/lib/…7.8
- CVE-2026-10644The Microchip SERCOM-G1 UART driver (drivers/serial/uart_mch…3.1
- CVE-2026-10646Zephyr's BSD-sockets getaddrinfo() implementation (subsys/ne…7.4
- CVE-2026-10647The USB CDC-NCM device class (subsys/usb/device_next/class/u…5.3
- CVE-2026-10648mcumgr_serial_process_frag() in subsys/mgmt/mcumgr/transport…5.5
- CVE-2026-10649A flaw was found in Pacemaker. An unauthenticated remote att…8.6
- CVE-2026-1065The Form Maker by 10Web plugin for WordPress is vulnerable t…7.2
- CVE-2026-10650A flaw has been found in warmcat libwebsockets up to 4.5.8. …5.5
Are you affected by CVE-2026-10645?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
