CVE-2026-6683: FatFs Divide-by-Zero Denial of Service in exFAT Sync Logic
FatFs R0.16 and earlier has a divide-by-zero defect in its exFAT sync code. When specially crafted filesystem metadata is processed during write or sync operations, internal calculations can attempt division by zero, crashing the file system handler. The vulnerability requires physical access or locally authenticated access in most scenarios, though network-delivered firmware or storage updates could theoretically enable remote exploitation in certain deployment contexts. The impact is denial of service—legitimate I/O operations will fail until the system is restarted or the corrupted metadata is removed.
Source data · NVD / CISA · public domain
- CVSS
- 3.1 · 4.6 MEDIUM · CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- Weaknesses (CWE)
- CWE-369
- Affected products
- 1 configuration(s)
- Published / Modified
- 2026-07-01 / 2026-07-02
NVD description (verbatim)
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.
5 reference(s) · View on NVD →
SEC.co analysis · AI-assisted, reviewed against source
Technical summary
The vulnerability stems from a divide-by-zero condition in FatFs's exFAT synchronization logic. During write or sync operations on a FAT volume, the code computes n_fatent (number of FAT entries) and subtracts 2 for reserved entries. If crafted metadata—such as a malformed exFAT boot sector or cluster allocation bitmap—forces n_fatent - 2 to equal zero, the subsequent division operation triggers an exception. This is classified under CWE-369 (Divide By Zero), a calculation error that bypasses normal arithmetic safety. The flaw affects all versions through R0.16 of the elm-chan FatFs library, which is widely embedded in embedded systems, IoT devices, automotive infotainment units, and industrial controllers that handle removable or networked storage.
Business impact
Affected systems lose the ability to perform I/O operations on exFAT volumes when malicious or malformed metadata is encountered. For devices in production (medical equipment, automotive, industrial automation, network storage appliances), this manifests as sudden service unavailability. Attackers with filesystem write access can craft a USB drive, SD card, or network-delivered firmware image containing poisoned metadata that crashes the handler when mounted. Organizations relying on FatFs for removable media support face operational disruption, data access delays, and potential cascading failures if the affected device is mission-critical. Supply-chain scenarios—where firmware updates or disk images transit through untrusted networks—amplify the risk.
Affected systems
The vulnerability affects elm-chan FatFs version R0.16 and all earlier releases. FatFs is embedded in a broad ecosystem: microcontroller firmware (STM32, ARM Cortex-M, RISC-V platforms), automotive infotainment systems, industrial IoT gateways, network-attached storage appliances, and any device that implements exFAT support via this library. Systems using only FAT12 or FAT32 without exFAT support are unaffected. Devices that do not process untrusted exFAT volumes—such as those with read-only mounting or air-gapped operation—face reduced risk. Exact impact scope depends on which embedded platforms and firmware versions ship FatFs; vendor advisory cross-references are essential for definitive affected product lists.
Exploitability
Exploitation requires either physical access to insert a malicious storage device, or local authentication to mount a crafted filesystem image. Network-based remote exploitation is theoretically possible in specialized pipelines where firmware updates or disk images are delivered over the network without cryptographic integrity verification. CISA SSVC data indicates proof-of-concept code exists (Exploitation: PoC), meaning researchers have demonstrated the divide-by-zero trigger. However, weaponization barriers remain: attackers must craft specific exFAT metadata that forces the vulnerable calculation path, and the target system must actively process the volume (not merely detect it). Automated scanning and public exploit tools are not yet prevalent, reducing immediate attack velocity for most deployed systems.
Remediation
Update FatFs to a release version that patches the divide-by-zero condition in exFAT sync logic. Verify the patch release against elm-chan's official repository or advisory—versions after R0.16 that address CWE-369 in exFAT handling are the target. For organizations unable to immediately patch embedded firmware, implement defense-in-depth: restrict mounting of exFAT volumes to trusted sources, validate filesystem metadata cryptographically before mounting, and enforce read-only mounting policies for removable media. Network-based deployment pipelines should apply code signing and integrity verification to all firmware images and disk images to prevent substitution of poisoned metadata.
Patch guidance
Coordinate with your embedded system suppliers and firmware maintainers to determine patched FatFs versions available for your platform. The elm-chan FatFs repository and related vendor advisories will specify the minimum patched version. For devices where firmware updates are infrequent or costly to deploy, prioritize patch testing in a pre-production environment to validate that exFAT functionality remains intact post-update. If patching is deferred, implement compensating controls: disable exFAT support if not essential, require manual administrator approval before mounting any removable storage, and monitor for filesystem I/O errors that might indicate metadata-based attacks.
Detection guidance
Monitor system logs for sudden crashes or I/O errors during exFAT mount or write operations, particularly when new or unfamiliar removable media is attached. Filesystem-level diagnostics (chkdsk, fsck utilities) may fail to complete on corrupted metadata. Intrusion detection systems can flag anomalous metadata patterns if they decode filesystem boot sectors and cluster allocation bitmaps. In embedded systems lacking rich logging, watchdog resets or unexpected reboots coinciding with storage device insertion suggest possible exploitation. For network-based firmware delivery, apply strict code signing verification and hash validation before applying updates to prevent substitution with poisoned images.
Why prioritize this
Although the CVSS score is moderate (4.6) and the attack surface is primarily local, the widespread embedding of FatFs in automotive, medical, and industrial IoT devices elevates real-world risk. Proof-of-concept code existence accelerates potential attack timelines. The denial-of-service impact on mission-critical embedded systems—especially in unattended or remote deployments—justifies rapid assessment and patch planning. Organizations with fleet deployments of exFAT-capable embedded devices should prioritize inventory mapping and patch rollout scheduling within 30–60 days.
Risk score, explained
CVSS v3.1 score of 4.6 (Medium) reflects high availability impact (A:H) offset by physical or local attack vector (AV:P). The vector CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H indicates low attack complexity and no privilege requirement, but physical presence or local authentication is mandatory. SSVC Exploitation: PoC signals active researcher demonstrations, raising concern for potential weaponization. The scope is limited to availability (no confidentiality or integrity breach), but for embedded systems in production environments, availability loss translates to significant operational and safety risk. Context matters: automotive and medical device deployments warrant higher organizational risk ratings despite the baseline CVSS score.
Frequently asked questions
Can this vulnerability be exploited remotely without physical access?
In typical scenarios, no—the primary attack vector is physical insertion of a malicious exFAT-formatted storage device, or local filesystem operations. However, the description notes that network-delivered firmware or storage updates could enable remote delivery of poisoned metadata in certain deployment pipelines, especially if updates lack cryptographic integrity verification. Organizations using USB firmware distribution or network-mounted storage should implement strict validation controls.
Does this affect all FAT implementations or only exFAT?
The vulnerability is specific to exFAT sync logic in FatFs. Devices using only FAT12 or FAT32 are unaffected. If your system processes only FAT32 volumes and has exFAT support disabled, the risk is eliminated.
What should I do if I cannot patch immediately?
Implement compensating controls: disable exFAT mounting if not essential, enforce read-only mount policies for removable media, restrict physical access to storage devices, and validate all firmware/disk images cryptographically before deployment. Monitor for sudden I/O failures or reboots during storage operations, which may indicate an attack attempt.
How do I know if FatFs is used in my devices?
Review your device firmware source code, bill of materials (BoM), and vendor documentation. FatFs is open-source and widely used but often embedded without explicit branding. Contact your vendor or system integrator for a definitive list of components. Firmware analysis tools can also identify FatFs signatures in binary images.
This analysis is provided for informational purposes and is based on publicly available source data as of the publication date. CVSS scores and SSVC vectors are estimates and may be subject to revision by official sources. Organizations must verify patch availability, affected product versions, and compatibility against their specific deployments through official vendor advisories. This document does not constitute legal, compliance, or operational risk advice. No guarantee is made regarding the completeness or accuracy of information regarding all affected products or deployment scenarios. Always consult official vendor security bulletins and perform thorough testing in non-production environments before applying patches to critical systems. Source: NVD (public-domain), retrieved 2026-08-10. Analysis generated by SEC.co (claude-haiku-4-5).
Related vulnerabilities
- CVE-2025-55642MEDIUMGPAC MP4Box Floating Point Exception Denial of Service
- CVE-2025-70100MEDIUMlwext4 Divide-by-Zero Denial of Service (MEDIUM)
- CVE-2026-14629MEDIUMRT-Thread Divide-by-Zero Denial of Service Vulnerability
- CVE-2026-36911MEDIUMMPC-BE Division-by-Zero DoS Vulnerability – CVSS 5.5 Medium
- CVE-2026-46161MEDIUMLinux Kernel RAID10 Divide-by-Zero Denial of Service
- CVE-2026-46184MEDIUMLinux ua101 USB Audio Driver Division-by-Zero Denial-of-Service
- CVE-2026-47152MEDIUMEmberZNet Level Control DoS Vulnerability
- CVE-2026-47153MEDIUMEmberZNet Level Control Divide-by-Zero DoS Vulnerability