Skip to main content

FatFs CVE-2026-6686

| EUVDEUVD-2026-40998 MEDIUM
Use of Uninitialized Resource (CWE-908)
2026-07-01 runZero GHSA-h94p-vjqx-v7rr
4.6
CVSS 3.1 · Vendor: runZero
View

Attack ChainAIDerived

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

  1. Access
    Gain physical access to target device
  2. Delivery
    Remove or access FAT storage medium
  3. Exploit
    Trigger f_lseek() past current EOF
  4. Execution
    FatFs allocates unzeroed FAT clusters
  5. Persist
    Read extended file region from storage
  6. Impact
    Extract residual sector data

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Variable initialization
Exploitation Conditions

Exploitation requires physical access to the device or its removable storage medium, as confirmed by CVSS AV:P. The vulnerable code path is triggered specifically when an application calls f_lseek() to position a file pointer beyond the current end-of-file, causing FatFs to allocate new FAT clusters for the gap region without zeroing the underlying sectors. No authentication credential is required (PR:N per CVSS) and no victim user interaction is needed once physical access is obtained. Exploitation is limited by: (1) mandatory physical access to the storage hardware - network-only attackers cannot trigger or read the exposure; (2) the requirement that the target application actually calls f_lseek() in a gap-extending manner, which depends on application behavior or attacker-controlled input reaching the filesystem layer; and (3) the attacker must subsequently read the allocated-but-unwritten cluster region before it is overwritten by legitimate disk activity. Normal file writes that supply explicit data do not create the vulnerable condition - only the f_lseek()-based gap extension pattern is affected.

Impact

The CVSS v3.1 vector AV:P/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N scores 4.6 Medium, and the physical attack vector (AV:P) is the dominant risk limiter - an adversary must have direct physical access to the storage medium or device to both trigger and read the cluster exposure. The High confidentiality rating is justified because arbitrary residual disk data, potentially including cryptographic keys, configuration secrets, or deleted file contents, can be recovered without authentication (PR:N). SSVC rates Technical Impact as Partial and Exploitation as PoC, meaning a proof-of-concept exists (runZero GitHub repository) but no widespread active exploitation is confirmed; CISA KEV does not list this CVE. No EPSS score was provided in the input data, so exploitation probability cannot be quantified. Despite the medium composite score, embedded and IoT deployment contexts where physical device access is routine - field sensors, removable SD-card loggers, industrial controllers - elevate practical risk meaningfully, as the AV:P barrier is lower in those environments than in traditional enterprise settings.

Exploit ScenarioDerived

An attacker with physical access to a device running FatFs-based firmware - such as a field-deployed IoT sensor with a removable SD card - mounts the storage medium and triggers f_lseek() to seek a file handle past the current EOF, causing FatFs to allocate new FAT clusters without zeroing them. The attacker then reads the extended file region directly from the SD card using a standard FAT reader on a separate host, recovering residual sector content that may include previously deleted file fragments, cryptographic material, or sensitive configuration data. A proof-of-concept demonstrating this technique is publicly available in the runZero GitHub repository at https://github.com/runZeroInc/vulns-2026-fatfs-chance.

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 – Jul 01, 2026

Uninitialized cluster exposure in FatFs R0.16 and earlier allows recovery of residual disk data when f_lseek() extends a file beyond its current EOF without zeroing newly allocated FAT clusters. Any application or device reading the extended region receives raw, previously written sector content instead of zeroed bytes, leaking sensitive residual storage data such as deleted file fragments or cryptographic material. A proof-of-concept exploit exists per SSVC and runZero's GitHub repository; no active exploitation has been confirmed in CISA KEV.

RemediationAI

The primary fix is to upgrade to a version of FatFs released after R0.16 once the upstream maintainer elm-chan publishes a patched release; no confirmed fixed version number is available in the current input data, so the runZero advisory at https://www.runzero.com/advisories/fatfs-uninit-cluster-exposure-cve-2026-6686/ and the upstream distribution page at https://elm-chan.org/fsw/ff/ should be monitored for patch announcements. As an immediate compensating control, integrators can patch f_lseek() locally within their firmware to explicitly zero-fill all newly allocated cluster sectors before returning control to the caller - this eliminates the uninitialized data exposure at the cost of additional write I/O and slightly increased seek latency during sparse file extension. Alternatively, applications can be refactored to avoid f_lseek()-based gap creation entirely, instead writing explicit zero-padded data to extend files, though this changes application semantics. Physical access controls to devices using FatFs-managed storage further reduce exploitation opportunity given the AV:P attack vector requirement.

Affected VersionsENISA

FatFs 0 ≤R0.16

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

FatFs is a lightweight, open-source FAT filesystem library maintained by elm-chan (CPE: cpe:2.3:a:chan:fatfs:*:*:*:*:*:*:*:*) and widely embedded as source code directly into microcontroller firmware, IoT devices, data loggers, and bare-metal systems requiring FAT12, FAT16, or FAT32 support. The root cause is CWE-908 (Use of Uninitialized Resource): the f_lseek() function, when used to seek past the current end-of-file, causes FatFs to allocate new FAT cluster chain entries for the created gap region. However, the library does not issue zeroing write operations to those clusters before marking them as belonging to the file. Subsequent reads of the gap region by the application or any other accessor of the storage medium return the raw sector content left by previous disk operations - effectively a stale data disclosure channel inherited from deleted files or prior filesystem activity.

Know when Fatfs 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 (runZero) PRIMARY 4.6 MEDIUM
AV:P/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
vuln.today AI 4.6 MEDIUM

Physical access to storage is required to both trigger the f_lseek gap and read residual clusters; no authentication needed once access is obtained, with no integrity or availability impact.

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

Primary rating from Vendor (runZero).

CVSS VectorVendor: runZero

Attack Vector
Physical
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
None

DescriptionCVE.org

FatFs R0.16 and earlier contains an uninitialized cluster exposure when f_lseek() extends files beyond EOF without zero-filling newly allocated clusters. This maps to CWE-908 (Use of Uninitialized Resource). Estimated CVSS v3.1 vector: CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N (4.6, Medium). The estimated CISA SSVC vectors are Exploitation: PoC, Technical Impact: Partial.

Threat Intelligence Overview

EPSS Score
0.2%
Top 94% exploitable
Prevalence
Medium
widely embedded FAT filesystem library across IoT and microcontroller firmware
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GitHub VulDB

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 No
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
Poc
System Exposure· derived
Small
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

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

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

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