Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft exFAT image with oversized label length
-
DeliveryInsert media into target device
-
ExploitDevice calls f_getlabel() on volume
-
ExecutionOverflow fixed stack buffer
-
PersistOverwrite saved return address
-
ImpactExecute 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
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
AV:P/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
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.
Primary rating from Vendor (runZero).
CVSS VectorVendor: runZero
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
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.
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
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.
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.
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
Uninitialized cluster exposure in FatFs R0.16 and earlier allows recovery of residual disk data when f_lseek() extends a
EUVD-2026-40999
GHSA-wghw-hg6m-7rh3
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB