littlefs 2.8.0 through 2.11.3 Divide by Zero in lfs_mount_()
- State
- Published
- Severity
- 6.8 Medium
- Published
- Nov 19, 2026
- Updated
- Nov 24, 2026
- Reserved
- Nov 19, 2026
Description
littlefs 2.8.0 through 2.11.3 contains a divide-by-zero vulnerability in lfs_mount_() that allows attackers to crash processes mounting crafted filesystem images when block_count is 0. Attackers can supply an image lacking a superblock entry or recording block_count 0, causing lfs->seed % lfs->block_count to trigger SIGFPE and denial of service.
| Product | Versions |
|---|---|
| littlefs littlefs-project | 2.8.0 through 2.11.3 Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 4.0 | 6.8 Medium | VulnCheck | |
| 3.1 | 5.5 Medium | VulnCheck |
Weaknesses
- CWE-369 Divide By Zero
References
- https://github.com/littlefs-project/littlefs/issues/1122Issue Tracker
- https://github.com/littlefs-project/littlefs/pull/1226Issue TrackerPatch
- https://github.com/littlefs-project/littlefs/blob/v2.11.3/lfs.c#L4640-L4645Technical Details
- https://github.com/sigdevel/pocs/tree/main/res/littlefs/2Exploit
- https://github.com/littlefs-project/littlefsProduct Page
- VulnCheck Advisory: littlefs 2.8.0 through 2.11.3 Divide by Zero in lfs_mount_()Third-Party Advisory
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.