Skip to main content

FatFS EUVDEUVD-2026-40992

| CVE-2026-6682 HIGH
Integer Overflow or Wraparound (CWE-190)
2026-07-01 runZero GHSA-c25x-vcg6-4ccx
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 malicious FAT32 volume
  2. Delivery
    Deliver via removable media or OTA image
  3. Exploit
    Device mounts via mount_volume()
  4. Execution
    Integer overflow wraps FAT-area size
  5. Persist
    Corrupted read lengths cause out-of-bounds access
  6. Impact
    Memory disclosure or device compromise

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Integer overflow checks
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 an attacker-crafted FAT32 volume through FatFS mount_volume() - specifically a filesystem image with manipulated BPB/FAT-count fields that force the FAT-area size multiplication to overflow. In the default case this means physical access to present malicious storage media (reflected by AV:P), and no authentication or user interaction beyond the device performing its normal mount operation (PR:N/UI:N). The exploitation surface widens when the device accepts filesystem or firmware images via an OTA/update pipeline, in which case a remote attacker who can inject or substitute an update image can trigger the same mount path without physical presence. Limiting factors: devices that do not auto-mount untrusted volumes, that validate BPB fields before mounting, or that verify signed update images are substantially harder to exploit; the flaw is only reachable via the FAT32 code path (not exFAT/FAT12/FAT16-only builds) and only in builds using FatFS R0.16 or earlier.

Impact

The provided CVSS 3.1 vector (AV:P/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H, 7.6) indicates a physical attack vector with low complexity, no privileges, no user interaction, a scope change, and total confidentiality/integrity/availability impact - consistent with the SSVC assessment of Exploitation: PoC and Technical Impact: Total. The dominant limiting factor is delivery: the base case requires presenting crafted storage media to the device (AV:P), which sharply reduces mass-exploitation potential, and this is reflected in the PoC-not-KEV status. However, the description explicitly widens the realistic vector by noting OTA/update pipelines can deliver a malicious FAT32 image remotely; where that applies, effective exposure is higher than AV:P alone implies - verify against the specific deployment. No EPSS score was provided, so probabilistic exploitation likelihood is unknown. Net: a genuine high-severity issue for embedded fleets that mount untrusted volumes or accept firmware/filesystem images over the network, but not an internet-wide, worm-class emergency for the default physical-access case.

Exploit ScenarioDerived

An attacker crafts a malicious FAT32 volume whose boot-sector fields force the fasize *= fs->n_fats computation to wrap, then gets a target embedded device to mount it - by inserting a prepared SD card/USB stick or, in a higher-exposure case, by supplying the crafted image through an OTA/firmware-update channel. When downstream code uses the corrupted, oversized file-size and read lengths, the attacker induces out-of-bounds reads/writes that can disclose memory or compromise the device. Proof-of-concept code is publicly available from runZero, lowering the effort to reproduce.

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

Integer overflow in ELM-Chan FatFS R0.16 and earlier lets a crafted FAT32 volume corrupt file-size metadata during mount_volume(), where fasize *= fs->n_fats wraps and produces attacker-controlled, oversized read lengths in downstream callers. The affected code is a widely embedded FAT filesystem library used across microcontrollers and IoT firmware, and while primarily triggered by mounting malicious media, the vendor notes remote delivery is feasible via OTA/update pipelines. Publicly available exploit code exists (runZero research and proof-of-concept repository); no public exploit identified as actively used and it is not listed in CISA KEV.

RemediationAI

Upgrade the FatFS module to a release later than R0.16 that contains the fixed mount_volume() bounds handling; consult the upstream project at https://elm-chan.org/fsw/ff/ for the corrected source and the runZero advisory (https://www.runzero.com/advisories/fatfs-fat32-int-of-mnt-cve-2026-6682/) for details - no exact fixed release version was provided in the input, so treat the patched version as 'per vendor/upstream advisory' rather than an assumed number and confirm the specific commit before shipping. Because FatFS is compiled into firmware, remediation means rebuilding and redeploying affected images rather than applying a runtime patch. Where an immediate rebuild is not possible, apply compensating controls: refuse to auto-mount untrusted removable media and require explicit operator action before mounting (trade-off: breaks plug-and-play workflows), add a pre-mount validation layer that sanity-checks FAT32 BPB fields (n_fats and FAT sector counts) against the reported volume size before calling mount_volume() (trade-off: engineering effort and possible rejection of unusual-but-valid volumes), and for OTA/update pipelines cryptographically sign and verify any filesystem/firmware image before it is mounted or parsed (trade-off: requires signing infrastructure but closes the remote-delivery path).

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 Chan's (elm-chan.org) generic FAT/exFAT filesystem module written in C for embedded and resource-constrained systems, referenced here by cpe:2.3:a:chan:fatfs. The root cause is CWE-190 (Integer Overflow or Wraparound): inside mount_volume(), the FAT area size computation fasize *= fs->n_fats multiplies a FAT sector count by the number of FATs without bounds checking, so a maliciously crafted FAT32 boot sector/BPB can make the product wrap around a fixed-width integer. The wrapped value then flows into file-size metadata and read-length calculations used by downstream callers (e.g. f_read paths), producing unsafe, oversized or miscomputed lengths. Because the library runs with full privilege inside firmware and parses untrusted on-disk structures before any validation, the miscalculated lengths can drive out-of-bounds memory access.

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

Base trigger is mounting attacker-supplied media (AV:P), needing no auth or interaction (PR:N/UI:N); parser overflow crosses into downstream callers (S:C) with memory-corruption impact (C/I/A:H).

3.1 AV:P/AC:L/PR:N/UI:N/S:C/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

In FatFS R0.16 and earlier contains a FAT32 integer overflow bug in mount_volume() where fasize *= fs->n_fats can wrap, leading to attacker-controlled file-size metadata and unsafe read lengths in downstream callers. This maps to CWE-190 (Integer Overflow or Wraparound). 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). Remote delivery is also possible in OTA/update pipelines. The estimated CISA SSVC vectors are Exploitation: PoC, Technical Impact: Total.

Executive ViewAI

Why It Matters

ELM-Chan FatFS R0.16 and earlier contains an integer overflow vulnerability affecting microcontrollers and IoT firmware globally. Publicly available exploit code exists, creating risk of file system corruption through malicious media or OTA firmware delivery mechanisms. Organizations using embedded systems with this library must immediately identify affected devices and implement interim controls, as no vendor patch is currently available.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: (1) Restrict mounting of untrusted or external media on devices running FatFS; (2) Disable or require authentication for all OTA/firmware update channels; (3) Implement network segmentation for microcontroller and IoT systems; (4) Deploy firmware signature verification and code signing enforcement; (5) Monitor device file system integrity for unexpected changes; (6) Maintain offline backups of critical system configurations.

Threat Intelligence Overview

EPSS Score
0.2%
Top 91% exploitable
Prevalence
High
extremely popular embedded/IoT FAT filesystem library, compiled into countless firmware images
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.

Integer overflow occurs when an arithmetic operation produces a result that exceeds the maximum value a given integer type can store.

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