Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2026-10645

MEDIUM 4.9EPSS 3%

Out-of-bounds read in Zephyr ext2 directory entry traversal from a crafted filesystem image

Mitigation

  • Upgrade zephyr to 4.6.0 or later.

Who should check

  • Anyone running zephyrproject zephyr >= 3.5.0, < 4.6.0

Vulnerability facts

Affected
zephyrproject zephyr >= 3.5.0, < 4.6.0
Fixed in
zephyrproject zephyr 4.6.0
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Not remotely exploitable (local or adjacent access needed)
CVSS
4.9 (v3.1, CNA)CVSS:3.1/AV:P/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
  • Attack vector: Physical
  • Attack complexity: Low
  • Privileges required: None
  • User interaction: Required
  • Scope: Unchanged
  • Confidentiality impact: Low
  • Integrity impact: None
  • Availability impact: High
EPSS
0.16% chance of exploitation in 30 days (percentile 3, 2026-11-26)
CWE
CWE-125
Published
Modified

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.

Affected and fixed versions

Package / productAffectedFixedSource
zephyrproject zephyr>= 3.5.0, < 4.6.0—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2026-10645. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-10645.md
Affected: zephyrproject zephyr >= 3.5.0, < 4.6.0
Fixed in: zephyrproject zephyr 4.6.0

Steps:
1. Search this machine and project for zephyrproject zephyr: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2026-10645 being exploited?

There is no confirmed exploitation: CVE-2026-10645 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.16% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2026-10645?

Medium: CVSS 4.9 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed). A user has to take an action, such as opening a link, for the attack to work.

Which versions are affected by CVE-2026-10645?

zephyrproject zephyr >= 3.5.0, < 4.6.0.

Is there a fix for CVE-2026-10645?

Yes. Fixed in zephyrproject zephyr 4.6.0. Upgrade zephyr to 4.6.0 or later.

How do I check if I'm affected by CVE-2026-10645?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors