Skip to main content
CVE-2026-10645VulnerabilityPublished Updated

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

Affects zephyrSource GCVE Database

0
Authoritative record:CVE-2026-10645· Medium 4.9

Not known to be exploited · CVSS 4.9 Medium.

Data as of 26 Oct 2026, 14:05 UTC

CVSS 3.1 base score
4.9Medium
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.1% chance of exploitation in 30 days – higher than 4% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.1/AV:P/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:H

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 22 Jun 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.

What to do

Affected software

ProductAffectedFixed in
Ubuntu 26.10zephyrpkg:deb/ubuntu/zephyr?arch=source&distro=stonkingOther threatsAffected
  • =3.1.2-4
Fixed in–
Ubuntu 26.04 LTSzephyrpkg:deb/ubuntu/zephyr?arch=source&distro=resoluteOther threatsAffected
  • =3.1.2-1.1build1
  • =3.1.2-4
Fixed in–
Ubuntu 25.10zephyrpkg:deb/ubuntu/zephyr?arch=source&distro=questingOther threatsAffected
  • =3.1.2-1.1build1
Fixed in–
Ubuntu 24.04 LTSzephyrpkg:deb/ubuntu/zephyr?arch=source&distro=nobleOther threatsAffected
  • =3.1.2-1.1
  • =3.1.2-1.1build1
Fixed in–
Ubuntu 22.04 LTSzephyrpkg:deb/ubuntu/zephyr?arch=source&distro=jammyOther threatsAffected
  • =3.1.2-1build3
Fixed in–
Ubuntu 20.04 LTSzephyrpkg:deb/ubuntu/zephyr?arch=source&distro=focalOther threatsAffected
  • =3.1.2-1build3
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

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.

References

Community reviews

Loading reviews…