Skip to main content

FatFs EUVDEUVD-2026-40999

| CVE-2026-6687 HIGH
Stack-based Buffer Overflow (CWE-121)
2026-07-01 runZero GHSA-wghw-hg6m-7rh3
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 exFAT image with oversized label length
  2. Delivery
    Insert media into target device
  3. Exploit
    Device calls f_getlabel() on volume
  4. Execution
    Overflow fixed stack buffer
  5. Persist
    Overwrite saved return address
  6. Impact
    Execute attacker code or crash

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Stack buffer bounds checking
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 target to mount and read the volume label of an attacker-controlled exFAT filesystem image - the vulnerable path is f_getlabel() on an exFAT volume, so builds compiled without exFAT support (FF_FS_EXFAT disabled) are not affected. The attacker must have physical or supply-chain delivery of crafted media (AV:P) since there is no network trigger; no authentication or user interaction beyond the device auto-reading the label is required (PR:N/UI:N). Limiting factors: physical media access is the primary barrier, exFAT must be enabled and actually parsed, and successful code execution depends on the target's stack layout and any memory protections (MPU/stack canaries) present on the embedded platform.

Impact

The CVSS v3.1 vector (AV:P/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H, 7.6 High) hinges on physical attack vector - the attacker must supply crafted exFAT media to the target, which sharply limits mass exploitation compared to a network-facing bug, so despite the High score real-world urgency is moderate and situational. SSVC reinforces this: Exploitation is only 'PoC' (not active), while Technical Impact is 'Total,' meaning full compromise if reached. No EPSS score and no KEV listing were provided, consistent with a physical-access embedded issue that is high-impact but not broadly automatable. One caveat: the vendor-estimated vector marks Scope Changed (S:C), which is debatable for a filesystem library running in a single security context; the S:C assumption inflates the score and should be verified against the actual deployment (bare-metal firmware vs. OS-mediated mount).

Exploit ScenarioDerived

An attacker crafts an exFAT-formatted SD card or USB stick whose volume directory entry declares an oversized label length, then physically inserts it into a target device (kiosk, industrial controller, IoT appliance) that automatically reads the volume label via f_getlabel(). Parsing the malicious label overflows the stack buffer, corrupting the return address and enabling denial of service or arbitrary code execution on the embedded target. Proof-of-concept material is referenced in the runZero advisory and repository.

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

Stack-based buffer overflow in FatFs R0.16 and earlier allows an attacker who can present crafted exFAT media to corrupt the stack via f_getlabel(), because the exFAT volume-label length field (XDIR_NumLabel) is trusted without enforcing the specification maximum. FatFs is an embedded FAT/exFAT filesystem library used across microcontroller and IoT firmware, so any device that mounts and reads the label of attacker-supplied storage is exposed. Publicly available exploit code exists (runZero advisory and SSVC 'PoC'), but there is no public exploit identified in active use and it is not listed in CISA KEV.

RemediationAI

Upgrade FatFs to the fixed upstream release published after R0.16 from https://elm-chan.org/fsw/ff/ once available; the reference data does not name an exact patched version, so treat this as 'upstream fix available (advisory/commit); released patched version not independently confirmed' and pin to the specific corrected revision from the vendor page before rebuilding firmware. Where an immediate rebuild is not possible, add a bounds check in the exFAT label-parsing path to clamp XDIR_NumLabel to the 11-character exFAT maximum before copying, or disable exFAT support (FF_FS_EXFAT=0) if the deployment does not require exFAT - the trade-off being loss of exFAT volume compatibility. As a deployment-level control, prevent untrusted removable media from being mounted (physically restrict USB/SD access or gate auto-mount), accepting the operational cost of manual media handling. Follow the runZero advisory at https://www.runzero.com/advisories/fatfs-exfat-label-len-of-cve-2026-6687/ for updated fix 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, widely embedded filesystem middleware by ChaN (cpe:2.3:a:chan:fatfs) that implements FAT12/16/32 and exFAT for resource-constrained systems. The flaw is CWE-121 (stack-based buffer overflow): when handling an exFAT volume directory entry, f_getlabel() reads the XDIR_NumLabel field that encodes the label character count and copies that many UTF-16 units into a fixed-size stack buffer sized for the exFAT maximum of 11 label characters. Because the on-disk length is used directly instead of being clamped to the spec maximum, a manipulated exFAT filesystem image declaring an oversized label overruns the stack buffer, corrupting adjacent stack memory such as saved registers and return addresses.

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 delivery of crafted exFAT media (AV:P), no auth or interaction (PR:N/UI:N); library runs in one context so S:U, with full memory-corruption impact yielding C/I/A:H.

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 stack overflow bug in f_getlabel() because exFAT label length (XDIR_NumLabel) is trusted without enforcing spec maximums. This maps to CWE-121 (Stack-based Buffer Overflow). 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 embedded filesystem library versions R0.16 and earlier contain a stack buffer overflow in exFAT label parsing affecting widespread IoT and microcontroller deployments globally. Organizations cannot mitigate through vendor patching immediately, as no fix is currently available. Urgent interim controls are required to restrict media mounting and prevent potential compromise of embedded infrastructure.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: (1) Disable exFAT support in FatFs if not operationally required; (2) Restrict storage media mounting to pre-validated, trusted sources only; (3) Implement network segmentation to contain potential compromise of affected embedded devices; (4) Deploy runtime memory protection (stack canaries, address space layout randomization) where platform-supported; (5) Enable firmware integrity verification and audit logging for affected systems; (6) Monitor system logs for stack corruption indicators.

Threat Intelligence Overview

EPSS Score
0.2%
Top 89% exploitable
Prevalence
High
ChaN FatFs is a de facto standard filesystem library in embedded 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
High
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.

A stack-based buffer overflow occurs when a program writes more data to a buffer located on the stack than it was allocated to hold.

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