littlefs through v2.11.3 type-confuses crafted v1 images (CVE-2026-129490)
LFS_MIGRATE builds, including littlefs-fuse v2.7, can stack-read out of bounds; only a proposed patch exists.
Type confusion in littlefs dir traversal with LFS_MIGRATE
littlefs through 2.11.3, when built with LFS_MIGRATE, has a type confusion bug in lfs_dir_traverse() that treats a stack lfs_diskoff struct as an lfs_attr array. A local attacker can supply a crafted littlefs v1 image whose metadata is read as LFS_FROM_USERATTRS during migration. That causes out-of-bounds stack reads and can crash the process. No confidentiality or integrity impact is described.
What to do: No fixed version is stated. Avoid migrating untrusted littlefs v1 images on builds compiled with LFS_MIGRATE.
| Product | Affected |
|---|---|
| littlefs | through 2.11.3 |
Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.
littlefs through 2.11.3, when built with LFS_MIGRATE, contains a type confusion vulnerability in lfs_dir_traverse() that treats a stack lfs_diskoff struct as an lfs_attr array. Attackers can supply a crafted littlefs v1 image whose metadata is read as LFS_FROM_USERATTRS during migration, causing out-of-bounds stack reads and process crashes.
LFS_MIGRATE builds, including littlefs-fuse v2.7, can stack-read out of bounds; only a proposed patch exists.
Today 1.4K readers · 1.8K views · 241 reads · all time 223K views