Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessGain physical access to target device
-
DeliveryRemove or access FAT storage medium
-
ExploitTrigger f_lseek() past current EOF
-
ExecutionFatFs allocates unzeroed FAT clusters
-
PersistRead extended file region from storage
-
ImpactExtract 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
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
AV:P/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
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.
Primary rating from Vendor (runZero).
CVSS VectorVendor: runZero
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
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
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
Stack-based buffer overflow in FatFs R0.16 and earlier allows an attacker who can present crafted exFAT media to corrupt
Buffer overflow in FatFs R0.16 and earlier arises when long filenames (up to 255 characters, enabled via FF_USE_LFN) ret
Integer overflow in ELM-Chan FatFS R0.16 and earlier lets a crafted FAT32 volume corrupt file-size metadata during mount
Integer underflow in FatFs R0.16 and earlier corrupts filesystem integrity via a stale dirty-cache skip during interleav
Unbounded mount-time loop in FatFs prior to R0.16 allows physical attackers to cause a denial of service by presenting a
Divide-by-zero in FatFs R0.16 and earlier's exFAT sync logic crashes the filesystem when crafted volume metadata causes
EUVD-2026-40998
GHSA-h94p-vjqx-v7rr
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB