Skip to main content

FatFs EUVDEUVD-2026-40993

| CVE-2026-6683 MEDIUM
Divide By Zero (CWE-369)
2026-07-01 runZero GHSA-74cg-p8q3-4c3q
4.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 volume with n_fatent=2
  2. Delivery
    Deliver crafted media physically or via OTA pipeline
  3. Exploit
    Device mounts and initiates write/sync operation
  4. Execution
    Divide-by-zero triggered in sync logic
  5. Impact
    Filesystem crash causes device denial of service

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A10:2025 - Mishandling of Exceptional Conditions
ASVS 5.0
V16 - Security Logging and Error Handling Division safety checks
Exploitation Conditions

Exploitation requires the target system to be running FatFs R0.16 or earlier compiled with exFAT support enabled - FAT32/FAT16/FAT12-only builds are not affected by this code path. A crafted exFAT volume with n_fatent set to exactly 2 must be processed during a write or sync operation. In the standard case (matching the CVSS AV:P vector), physical access to insert a crafted storage medium (SD card, USB drive, or similar) is required; no credentials or prior authentication are needed for the media ingestion itself. In embedded deployments where exFAT images are accepted through a network-accessible OTA update pipeline or remote storage provisioning interface, the effective attack vector extends to network without additional privileges, significantly broadening exploitation reach. Impact is strictly limited to availability - there is no confidentiality or integrity impact from this vulnerability.

Impact

The CVSS 3.1 score of 4.6 Medium correctly reflects the Physical attack vector (AV:P), constraining the standard exploitation path to an attacker who can insert a crafted storage medium into the target device. No Confidentiality or Integrity impact is present (C:N/I:N); the only impact is high Availability loss (A:H) via crash or filesystem failure. The 'Information Disclosure' tag in the source intelligence conflicts directly with the CVSS C:N rating and the CWE-369 class - this appears to be a source-level tagging error and should not be treated as a confirmed confidentiality impact. The SSVC assessment notes a PoC exists (Exploitation: PoC, Technical Impact: Partial), elevating practical risk above a purely theoretical flaw. EPSS score data was not provided. No CISA KEV listing exists, confirming no widespread active exploitation at time of analysis. A critical nuance in the description is that network-delivered update media can extend the attack vector to network in OTA or network-accessible storage ingestion pipelines - in those deployments, the effective risk is substantially higher than the AV:P base score implies, potentially approaching a network-vector denial-of-service for any embedded product accepting externally supplied exFAT images over the wire.

Exploit ScenarioDerived

An attacker crafts an exFAT volume image with the n_fatent field set to exactly 2 in the volume metadata, causing the sync logic's n_fatent - 2 divisor to evaluate to zero. In the physical-vector case, the attacker inserts a USB drive or SD card containing this image into an affected embedded device; in deployments with network-accessible OTA update pipelines, the crafted image is delivered remotely. When the device performs a write or sync operation against the malformed volume, the divide-by-zero triggers a hard fault or crash, rendering the filesystem and potentially the entire device unavailable. A proof-of-concept exists per SSVC assessment and the runZero vulnerability repository.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.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

Divide-by-zero in FatFs R0.16 and earlier's exFAT sync logic crashes the filesystem when crafted volume metadata causes the expression n_fatent - 2 to evaluate to zero during write/sync operations, resulting in a hard fault or denial of service on the affected embedded device. The elm-chan FatFs library is widely bundled into microcontroller SDKs and IoT firmware, meaning the vulnerable code exists across a broad range of downstream products compiled with exFAT support. A proof-of-concept exists per SSVC assessment; no confirmed active exploitation (CISA KEV) has been recorded, and the physical attack vector limits mass exploitation, though network-accessible firmware update pipelines can extend effective reach.

RemediationAI

The primary fix is to upgrade to a patched FatFs release once published by ChaN; as of this analysis, no confirmed fixed release version is available from the referenced data - the upstream project page at https://elm-chan.org/fsw/ff/ must be monitored for a new release. For deployments that cannot immediately update, the most effective compensating control is to disable exFAT support at compile time (removing the vulnerable code path entirely), which trades exFAT compatibility for eliminating the flaw with no runtime overhead. Alternatively, a targeted local patch can add a guard check ensuring n_fatent > 2 before executing the sync division - this preserves exFAT support but requires maintaining an out-of-tree patch across future FatFs updates. For devices with physical media ingestion, restricting media acceptance to cryptographically verified, trusted sources (signed volume images) reduces the likelihood of a crafted volume reaching the device, though this is a defense-in-depth measure rather than a fix. In OTA or network-accessible update pipelines, input validation of volume metadata prior to mount should be enforced as an immediate compensating control. Consult the runZero advisory at https://www.runzero.com/advisories/fatfs-exfat-divide-by-zero-cve-2026-6683 for updated patch 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 (CPE: cpe:2.3:a:chan:fatfs:*:*:*:*:*:*:*:*) is a generic FAT/exFAT filesystem module authored by ChaN and published at elm-chan.org, designed for resource-constrained microcontrollers and embedded RTOS environments. The root cause is CWE-369 (Divide By Zero): the exFAT sync logic uses n_fatent - 2 as a divisor to iterate FAT entries during write/sync operations but performs no guard check to ensure the result is non-zero. An exFAT volume with metadata engineered so that n_fatent equals exactly 2 collapses this expression to zero, triggering a divide-by-zero fault. Because FatFs is a library embedded at compile time - not a standalone service - the vulnerable code surface is determined by whether the integrating firmware enabled exFAT support; FAT12/FAT16/FAT32-only builds do not include the affected code path.

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 4.6 MEDIUM
AV:P/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
vuln.today AI 4.6 MEDIUM

Physical media insertion required (AV:P); no credentials needed; crash-only impact yields A:H with C:N and I:N.

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

DescriptionCVE.org

FatFs R0.16 and earlier contains a divide-by-zero in exFAT sync logic bug when crafted metadata causes n_fatent - 2 to be zero during write/sync operations. This maps to CWE-369 (Divide By Zero). Estimated CVSS v3.1 vector: CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H (4.6, Medium). Network-delivered update media can make this remote in some pipelines. The estimated CISA SSVC vectors are Exploitation: PoC, Technical Impact: Partial.

Threat Intelligence Overview

EPSS Score
0.2%
Top 92% exploitable
Prevalence
Medium
widely embedded in IoT and microcontroller firmware globally
Data Quality
6 sources
Confidence: High

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 MEDIUM
CISA KEV No
Public POC No
EPSS 0.2%
Patch available No
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.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· derived
Defer
Exploitation
None
System Exposure· derived
Small
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

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

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

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