CVE-2025-71472
littlefs 2.8.0 through 2.11.3 contains a divide-by-zero …
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.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- github.com/littlefs-project/littlefs
- github.com/littlefs-project/littlefs/blob/v2.11.3/lfs.c#L4640-L4645
- github.com/littlefs-project/littlefs/issues/1122
- github.com/littlefs-project/littlefs/pull/1226
- github.com/sigdevel/pocs/tree/main/res/littlefs/2
- www.vulncheck.com/advisories/littlefs-2.8.0-through-2.11.3-divide-by-zero-in-lfs-mount
- nvd.nist.gov/vuln/detail/CVE-2025-71472
- cve.org/CVERecord?id=CVE-2025-71472
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.