Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft littlefs image with block_count 0
-
ExploitDeliver image to target mount path
-
ExecutionVictim mounts via lfs_mount_()
-
Impactseed % block_count triggers SIGFPE crash (DoS)
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A10:2025 - Mishandling of Exceptional Conditions
ASVS 5.0
V16 - Security Logging and Error Handling Division safety checks
|
| Exploitation Conditions | Exploitation requires the target application to mount an attacker-controlled littlefs filesystem image using littlefs 2.8.0 through 2.11.3; the crafted image must either omit a superblock entry or record block_count as 0 so that lfs_mount_() computes lfs->seed % lfs->block_count with a zero divisor. The trigger is passive user/operator interaction (UI:P): a victim must initiate the mount of the malicious image, and the attack vector is local (AV:L), meaning the image must be delivered to a locally-mounted path rather than exploited directly over a network. Limiting factors: impact is confined to a process crash (SIGFPE/denial of service) with no code execution, data disclosure, or data modification; deployments that only ever mount trusted, locally-generated images are not realistically exposed. The condition that littlefs config historically allowed block_count 0 to mean 'read from superblock' is what makes a corrupted/absent superblock reach the divide. |
| Impact | This is a genuine but modest-severity denial-of-service issue, not an emergency. The provided CVSS 4.0 vector (AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:H) correctly frames it as a local-vector, availability-only flaw: no confidentiality or integrity impact, and exploitation requires a victim to passively mount an attacker-supplied filesystem image (UI:P). The CVSS 4.0 base score of 6.8 (Medium) aligns with the vuln.today 'this_month' priority rather than an immediate-action label. No EPSS score and no KEV listing were supplied; absence of KEV means there is no evidence of active exploitation, and the lack of EPSS data means widespread-exploitation probability cannot be quantified from this input. A PoC reference exists (sigdevel/pocs) but is not verified as working exploit code, so it should not be treated as confirmed weaponization. The practical risk is bounded by the attack model: this matters where an application mounts untrusted or externally-sourced littlefs images (e.g., firmware/OTA update flows, removable media, user-supplied images), and is low-consequence where images are always trusted and locally generated. Net: a real but contained reliability/DoS concern worth patching on a normal cycle, not a high-CVSS-but-illusory finding nor a drop-everything priority. |
| Exploit ScenarioDerived | An attacker crafts a malformed littlefs image that either lacks a superblock entry or records block_count as 0, then gets it onto a target that mounts untrusted images (such as an embedded device accepting a filesystem/firmware blob or removable media). When the victim process calls lfs_mount_(), the computation lfs->seed % lfs->block_count divides by zero, raising SIGFPE and crashing the process. A public PoC reference exists but is not verified as working exploit code; exploitation requires the victim to mount the attacker's image (UI:P), so it is not fully automatic. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 19, 2026
Divide-by-zero in littlefs 2.8.0 through 2.11.3 crash any process that mounts a crafted filesystem image, because lfs_mount_() computes lfs->seed % lfs->block_count with a zero divisor when the image omits a superblock entry or records block_count as 0, raising SIGFPE. The attack is local (AV:L) and requires the victim to initiate the mount of the malicious image (UI:R/unprivileged, no credentials needed), and the outcome is limited to a denial of service - no code execution, disclosure or modification. An upstream fix exists as pull request #1226 which rejects a zero block count with LFS_ERR_CORRUPT; a public PoC reference exists, it is not verified as working exploit code, and there is no confirmed active exploitation (not in CISA KEV).
RemediationAI
Apply the upstream fix in https://github.com/littlefs-project/littlefs/pull/1226, which adds a check in lfs_mount_() that returns LFS_ERR_CORRUPT when lfs->block_count is zero instead of evaluating lfs->seed % lfs->block_count; the patch is an upstream PR/commit and the exact tagged release that ships it is not independently confirmed in the available data, so verify the fix is present in the littlefs revision you vendor before relying on it. Until a rebuilt library is deployed, only mount images from trusted, locally generated sources, and where untrusted images must be handled, pre-validate the superblock (reject images with a missing superblock entry or block_count of 0) or perform the mount in a separate, restartable process so a SIGFPE only terminates that worker rather than the host application - the trade-off is added parsing/validation code or an extra supervisor process, and the vendor's guard is the only complete fix for the divide itself.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
littlefs is an embedded, power-loss-resilient filesystem library used in microcontroller and flash-based projects; mounting is performed by lfs_mount_() in lfs.c, which reads the superblock to learn geometry such as block_count. Historically the library's configuration allowed cfg.block_count to be 0, meaning "read the count from the superblock", and the mount path later uses lfs->block_count as a modulus (lfs->seed % lfs->block_count, lfs.c lines 4640-4645 in v2.11.3). A crafted or corrupted image that lacks a superblock entry, or that records block_count as 0, therefore leaves the divisor at zero and triggers a divide-by-zero (SIGFPE), classified as CWE-369. The upstream patch (PR #1226) adds an explicit guard that rejects a zero block count with LFS_ERR_CORRUPT before the modulus is evaluated. The CPE cpe:2.3:a:littlefs-project:littlefs:*:*:*:*:*:*:*:* covers the library itself, so exposure is inherited by every firmware/application that links littlefs 2.8.0 through 2.11.3 and mounts externally supplied images; the precise delivery path for a malicious image in any given deployment is not described in the available sources.
Know when Littlefs gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
Local vector because a crafted image must be mounted locally (AV:L); victim must perform the mount (UI:R); no auth needed (PR:N); only availability affected via process crash, so C:N/I:N/A:H.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
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.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
EUVD-2025-211370
GHSA-ccj2-73x4-95vw
NVD
CVE.org
EPSS
Exploit-DB