Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft FAT volume with 255-char LFN
-
DeliveryPhysically insert media into device
-
ExploitFatFs enumerates directory, returns long fname
-
ExecutionDownstream caller copies into short buffer
-
PersistBuffer overflow corrupts adjacent memory
-
ImpactCrash device or execute code
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Buffer copy size validation
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 | Requires the attacker to physically supply a crafted FAT/exFAT volume (e.g., malicious USB or SD card) containing a directory entry with a long filename up to 255 characters, the target to be built with FatFs long filename support enabled (FF_USE_LFN), and a downstream caller that copies FILINFO.fname into an undersized fixed buffer without a bounds check. Exploitation is limited by the Physical attack vector (AV:P) - remote/network exploitation is not possible - and by configuration: builds using only 8.3 short names or callers that copy fname with proper size checks are not affected, so this is not exploitable against arbitrary or default-safe FatFs integrations. |
| Impact | Signals are mixed and should not be overstated. The CVSS estimate is 7.6 High driven by total CIA impact and a scope change (S:C), but the attack vector is Physical (AV:P) - an attacker must supply crafted storage media - which sharply limits mass exploitation; EPSS/KEV are absent, consistent with no evidence of widespread automated attack. SSVC lists Exploitation: PoC and Technical Impact: Total, and runZero publishes a proof-of-concept repository, so working exploit code exists, but PoC availability is distinct from active exploitation and there is no in-the-wild confirmation. I independently question the S:C (scope changed) metric: a buffer copy overflow within a single application process typically stays within one security authority (S:U), so the vendor-estimated 7.6 may be modestly inflated - my own assessment yields ~6.8. Crucially, exposure is conditional: only builds with LFN enabled AND a caller that copies fno.fname unsafely are affected, so many deployments will not be vulnerable - verify your specific firmware's LFN config and copy patterns rather than treating all FatFs users as at risk. |
| Exploit ScenarioDerived | An attacker formats a USB stick or SD card as FAT with a directory entry whose long filename approaches 255 characters, then physically inserts it into a target embedded device that enumerates the media using FatFs with LFN enabled. When the device's application copies the returned fname into a short fixed buffer, the overflow corrupts adjacent memory, enabling denial of service or potential code execution; a proof-of-concept demonstrating the pattern is published by runZero. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 01, 2026
Buffer overflow in FatFs R0.16 and earlier arises when long filenames (up to 255 characters, enabled via FF_USE_LFN) returned in fno.fname are copied by downstream callers into short fixed-size buffers without bounds checks, corrupting memory in the embedded application. Reported by runZero, this is a downstream-caller (CWE-120) pattern affecting integrations of the popular ChaN FatFs embedded filesystem library rather than a defect in FatFs core parsing itself. Publicly available exploit code exists (SSVC Exploitation: PoC, runZero GitHub repo) with total technical impact, though the physical attack vector (AV:P) meaningfully constrains real-world reach; no CISA KEV listing.
RemediationAI
No vendor-released patched version was identified at time of analysis, so remediation centers on hardening the integration: audit every caller of f_readdir/f_stat/FILINFO.fname and replace unchecked copies with bounded operations (strncpy/snprintf/memcpy sized to the destination and validated against FF_LFN_BUF/FF_MAX_LFN), which is the definitive fix. As a compensating control, disable long filename support by building with FF_USE_LFN=0 so fname is capped at the 13-byte 8.3 form - the trade-off is loss of long-filename functionality, which may break applications that depend on it. Where LFN must stay enabled, restrict which storage media the device will mount (reject untrusted removable media) and constrain physical access to media slots, since exploitation requires a crafted volume; monitor the vendor page https://elm-chan.org/fsw/ff/ for an updated FatFs release and follow the runZero advisory https://www.runzero.com/advisories/fatfs-long-fn-of-downstream-cve-2026-6688/ for remediation guidance.
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 small, portable FAT/exFAT filesystem middleware written in C by ChaN (elm-chan.org), embedded into firmware for microcontrollers, IoT devices, and storage-handling appliances. When compiled with Long File Name support (FF_USE_LFN), directory enumeration via f_readdir/f_stat populates FILINFO.fname with names up to 255 characters, whereas legacy 8.3 short names fit in 13 bytes. The CPE cpe:2.3:a:chan:fatfs:*:*:*:*:*:*:*:* identifies the affected library, but the vulnerability is a CWE-120 (Buffer Copy without Checking Size of Input) pattern in downstream code that assumes short-name sizing and strcpy/memcpy's fno.fname into an undersized stack or static buffer, overflowing adjacent memory.
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:C/C:H/I:H/A:H
Physical media required (AV:P), no auth for parsing (PR:N); overflow stays within one process so S:U not S:C; memory corruption yields full C/I/A impact.
Primary rating from Vendor (runZero).
CVSS VectorVendor: runZero
DescriptionCVE.org
FatFs R0.16 and earlier contains a downstream-caller vulnerability pattern associated with FatFs long filename handling. With LFN enabled, fno.fname can be up to 255 characters; many callers copy it into short fixed buffers without bounds checks, causing overflow. This maps to CWE-120 (Buffer Copy without Checking Size of Input). Estimated CVSS v3.1 vector: CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H (7.6, High). The estimated CISA SSVC vectors are Exploitation: PoC, Technical Impact: Total.
Executive ViewAI
FatFs R0.16 and earlier contains a buffer overflow in long filename handling that affects downstream applications integrating the library, potentially enabling memory corruption in embedded systems. While publicly available exploit code exists, the requirement for physical device access substantially limits organizational risk exposure. Organizations deploying FatFs with long filename support in physically accessible environments should prioritize inventory and mitigation.
No vendor-released patch identified at time of analysis. Interim mitigations: (1) Disable FF_USE_LFN in FatFs R0.16 if long filename support is not required; (2) Implement strict buffer bounds checking in all code receiving fno.fname output; (3) Restrict physical access to embedded devices running affected FatFs versions; (4) Deploy application-level monitoring to detect abnormal memory access patterns.
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
A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.
Stack-based buffer overflow in FatFs R0.16 and earlier allows an attacker who can present crafted exFAT media to corrupt
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
Uninitialized cluster exposure in FatFs R0.16 and earlier allows recovery of residual disk data when f_lseek() extends a
EUVD-2026-41000
GHSA-8vm2-mjff-2gg2
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB