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

Read the record on cve.org

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.

ProductVersions
littlefs littlefs-project2.8.0 through 2.11.3 Affected

Weaknesses

References

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.

© 2026 NVIDIA, the NVIDIA logo, and NVIDIA Inception are trademarks and/or registered trademarks of NVIDIA Corporation in the U.S. and other countries.