Memory corruption via wrapped FAT size calculation
Published Jul 1, 2026 · Updated Jul 1, 2026
Integer overflow in FatFs R0.16 and earlier allows attackers to corrupt memory via a crafted FAT32 volume mounted by an embedded device. In mount_volume(), the 32-bit fasize multiplication by the FAT-copy count wraps, placing the data region inside attacker-controlled FAT space and allowing forged file sizes to drive oversized f_read calls. Exploitation requires control of mounted media or an unverified OTA image and a downstream caller that trusts the forged size; successful exploitation crashes the device or executes code.
Summary
What happened
Integer overflow in FatFs R0.16 and earlier allows attackers to corrupt memory via a crafted FAT32 volume mounted by an embedded device. In mount_volume(), the 32-bit fasize multiplication by the FAT-copy count wraps, placing the data region inside attacker-controlled FAT space and allowing forged file sizes to drive oversized f_read calls. Exploitation requires control of mounted media or an unverified OTA image and a downstream caller that trusts the forged size; successful exploitation crashes the device or executes code.
The record
- CVE
- CVE-2026-6682
- Published
- Jul 1, 2026
- Updated
- Jul 1, 2026
- Vendor
- ChaN
- Product
- FatFs
- Classifications
- CWE-190, T1200
- Attack vector
- physical
- Privileges
- unauthenticated
Timeline
How it unfolded
- Jul 1, 2026CVE publishedPublication date reported by the CVE source.
- Jul 1, 2026Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=0 <=R0.16
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Public exploit references
- runZero FatFs deterministic harness and RCE demofunctional · demonstrated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo