Skip to main content

littlefs CVE-2026-129490

| EUVDEUVD-2026-126101 MEDIUM
Access of Resource Using Incompatible Type (Type Confusion) (CWE-843)
2026-11-15 VulnCheck GHSA-q985-5v39-r948
6.8
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

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

  1. Access
    Supply crafted littlefs v1 image
  2. Delivery
    Victim triggers LFS_MIGRATE migration
  3. Exploit
    lfs_dir_traverse reads it as LFS_FROM_USERATTRS
  4. Execution
    Type confusion: diskoff struct read as attr array
  5. Impact
    Out-of-bounds stack reads crash process

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Type safety enforcement
MITRE ATT&CK

1 technique across 1 tactic: Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires the application/firmware to be built with the LFS_MIGRATE option enabled AND to actually perform a littlefs v1-to-v2 migration (lfs_migrate) over an attacker-supplied v1 image; the crafted metadata must be processed as LFS_FROM_USERATTRS in lfs_dir_traverse(). Limiting factors are significant: the vector is local (AV:L), LFS_MIGRATE is a non-default compile-time option so builds without it are unaffected, a victim action is needed to initiate migration on untrusted data (UI:P), and impact is limited to an out-of-bounds stack read causing a crash - no confidentiality or integrity impact and no demonstrated code execution.

Impact

This is a moderate-severity local denial-of-service issue, not an emergency. The CVSS 4.0 vector (AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:H, score 6.8) tells a consistent story: a local attack vector, no privileges, but required (passive) user interaction, with impact confined to availability - no confidentiality or integrity loss. CWE-843 (type confusion) here manifests as out-of-bounds stack reads causing a process crash, not code execution, so the realistic worst case is a crash/DoS. Decision signals are muted: no CISA KEV entry, no EPSS score supplied, and VulnCheck is the reporting source. A public PoC reference exists (a crafted .img sample in a GitHub repo), but it is not verified as working exploit code. The vuln.today priority is 'this_month', consistent with 'patch on a normal cadence' rather than drop-everything. The key gating factor absent from the raw CVSS score is the build/configuration requirement (LFS_MIGRATE), which sharply narrows real exposure. No conflicting signals were observed; the main missing data points are EPSS probability and any independent confirmation that the PoC image reliably triggers the crash.

Exploit ScenarioDerived

An attacker crafts a malicious littlefs v1 filesystem image and gets it onto a device or application that was compiled with LFS_MIGRATE and performs a v1-to-v2 migration. When the code runs lfs_dir_traverse() during migration, the crafted metadata is interpreted as LFS_FROM_USERATTRS, confusing a stack lfs_diskoff struct for an lfs_attr array and causing out-of-bounds stack reads that crash the process. A public PoC image is referenced but is not verified as working exploit code.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.2% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Nov 15, 2026

Local denial of service in littlefs through 2.11.3 lets a crafted littlefs v1 image crash the process performing a v1-to-v2 migration, but only in firmware built with the non-default LFS_MIGRATE compile-time option. A type confusion in lfs_dir_traverse() causes metadata tagged LFS_FROM_USERATTRS to be interpreted as if a stack-resident lfs_diskoff struct were an lfs_attr array, producing out-of-bounds stack reads; the assessed impact is availability only (crash), with no confidentiality or integrity loss and no demonstrated code execution. Exploitation is local (AV:L) and requires the victim to initiate migration on attacker-supplied data (UI:P). The issue is not in CISA KEV and there is no confirmed active exploitation; a public PoC reference exists in the form of a crafted .img file, but it is not verified as working exploit code. Scored 6.8 under CVSS 4.0 and A:H under the assessed CVSS 3.1 vector, this is a moderate-severity, this-month priority item rather than an emergency.

RemediationAI

No vendor-released patch or fixed version is identified in the available data; track the upstream issue at https://github.com/littlefs-project/littlefs/issues/1213 and the VulnCheck advisory at https://www.vulncheck.com/advisories/littlefs-through-2.11.3-type-confusion-in-lfs-dir-traverse-via-lfs-migrate for a fix before adopting one. The most direct compensating control is to build without LFS_MIGRATE, which removes the vulnerable migration path from the binary entirely; the trade-off is that in-field v1-to-v2 migration is no longer possible, so any legacy v1 filesystems must be migrated offline with trusted tooling or reformatted, and the option can be re-enabled once a patched littlefs is available. Where migration capability must be retained, restrict lfs_migrate() strictly to images from trusted sources, treat images received over untrusted channels (OTA payloads, removable media, host-supplied images) as untrusted, and prefer validating or re-flashing known-good images rather than migrating them; the trade-off is operational friction and loss of the convenience of migrating arbitrary images. Enable crash logging and watchdog-based recovery on devices that do perform migration so that an out-of-bounds-read abort is contained and observable rather than silently rebooting. No public exploit code is verified as working, so these measures should be scheduled on the this-month priority indicated by the triage data rather than treated as an emergency.

Affected VersionsENISA

littlefs 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 a fail-safe, power-loss-resilient filesystem designed for embedded systems and microcontrollers, where metadata is stored in pairs of blocks and walked by routines such as lfs_dir_traverse(). The flaw is a CWE-843 type confusion: during a v1-to-v2 migration performed by lfs_migrate(), attacker-influenced metadata from a crafted littlefs v1 image is processed with the LFS_FROM_USERATTRS tag, and the code path in lfs_dir_traverse() then treats a stack lfs_diskoff structure (an offset/length pair) as though it were an lfs_attr array. The relevant logic sits around lines 1056-1063 of lfs.c in the v2.11.3 tree, referenced in the advisory. Because littlefs v1 images do not carry the v2 user-attribute structures that the traversal code expects, the migration path can be steered into this misinterpretation, after which reads follow values derived from the wrong struct layout and walk past the bounds of the stack buffer. The result is an out-of-bounds stack read that terminates the process; the trigger is exercised only when the build enables LFS_MIGRATE (a non-default, compile-time option) and the device actually runs a migration over an untrusted v1 image. The CPE cpe:2.3:a:littlefs-project:littlefs:*:*:*:*:*:*:*:* covers the upstream project; the description scopes affected releases as through 2.11.3.

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 processing of an attacker-supplied image with no privileges (AV:L/PR:N) but requiring a victim-initiated migration (UI:R); impact is crash-only, so A:H with C:N/I:N.

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 through 2.11.3, when built with LFS_MIGRATE, contains a type confusion vulnerability in lfs_dir_traverse() that treats a stack lfs_diskoff struct as an lfs_attr array. Attackers can supply a crafted littlefs v1 image whose metadata is read as LFS_FROM_USERATTRS during migration, causing out-of-bounds stack reads and process crashes.

Threat Intelligence Overview

EPSS Score
0.2%
Top 94% exploitable
Prevalence
Medium
popular embedded/IoT flash filesystem; vulnerable path needs LFS_MIGRATE build option
Exploit
POC
Public exploit code exists
Social Media
2
Sightings
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.2%
Patch available No
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

Memory corruption occurs when a program writes data beyond the boundaries of allocated memory regions or accesses memory in unintended ways, violating the integrity of the process's address space.

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