Skip to main content

littlefs EUVDEUVD-2025-211370

| CVE-2025-71472 MEDIUM
Divide By Zero (CWE-369)
2026-11-19 VulnCheck GHSA-ccj2-73x4-95vw
6.8
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Craft littlefs image with block_count 0
  2. Exploit
    Deliver image to target mount path
  3. Execution
    Victim mounts via lfs_mount_()
  4. Impact
    seed % 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

littlefs 2.8.0 ≤2.11.3

Affected Packages

euvd littlefs no fix

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

Vendor (VulnCheck) PRIMARY 6.8 MEDIUM
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
vuln.today AI 5.5 MEDIUM

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.

3.1 AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
4.0 AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Passive
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

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

EPSS Score
0.1%
Top 98% exploitable
Prevalence
Medium
popular embedded/IoT flash filesystem library, common but not universal
Exploit
POC
Public exploit code exists
Data Quality
5 sources
Confidence: Medium

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC Yes
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
Poc
System Exposure· derived
Small
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

54
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +34
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy