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
Share

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

Lifecycle Timeline

1
Analysis Generated
Jul 01, 2026 - 14:50 vuln.today

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.

AnalysisAI

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.

Technical ContextAI

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.

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.

Share

EUVD-2026-40999 vulnerability details – vuln.today

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