Skip to main content

FatFs CVE-2026-6688

| EUVDEUVD-2026-41000 HIGH
Classic Buffer Overflow (CWE-120)
2026-07-01 runZero GHSA-8vm2-mjff-2gg2
7.6
CVSS 3.1 · Vendor: runZero
View

Attack ChainAIDerived

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

  1. Access
    Craft FAT volume with 255-char LFN
  2. Delivery
    Physically insert media into device
  3. Exploit
    FatFs enumerates directory, returns long fname
  4. Execution
    Downstream caller copies into short buffer
  5. Persist
    Buffer overflow corrupts adjacent memory
  6. Impact
    Crash 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.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

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

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

Vendor (runZero) PRIMARY 7.6 HIGH
AV:P/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
vuln.today AI 6.8 MEDIUM

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.

3.1 AV:P/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
4.0 AV:P/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/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
Changed
Confidentiality
High
Integrity
High
Availability
High

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

Why It Matters

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.

Business Impact: Medium
Compensating Controls

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

EPSS Score
0.2%
Top 91% exploitable
Prevalence
High
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 HIGH
CISA KEV No
Public POC No
EPSS 0.2%
Patch available No
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.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
Scheduled
Exploitation
Poc
System Exposure· derived
Small
Automatable
No
Human Impact
Medium
Technical Impact
Total

Priority Score

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

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.

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