CVE-2026-6685
CVE-2026-6685 is a medium-severity vulnerability in Elm-chan Fatfs with a CVSS 3.x base score of 6.1. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-191.
Key facts
- Severity: Medium (CVSS 3.x base score 6.1)
- EPSS exploit prediction: 0% (11th percentile)
- Actively exploited: Not listed in CISA KEV
- Weakness: CWE-191
- Affected product: Elm-chan Fatfs
- Published:
- Last modified:
Description
FatFs R0.16 and earlier exhibits a stale dirty-cache skip via unsigned-subtraction wrap in f_read() / f_write() (fp->sect - sect < cc) during interleaved read/write on fragmented filesystems. This maps to CWE-191 (Integer Underflow). Estimated CVSS v3.1 vector: CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H (6.1, Medium). The estimated CISA SSVC vectors are Exploitation: PoC, Technical Impact: Total.
Frequently asked questions
- What is CVE-2026-6685?
- FatFs R0.16 and earlier exhibits a stale dirty-cache skip via unsigned-subtraction wrap in f_read() / f_write() (fp->sect - sect < cc) during interleaved read/write on fragmented filesystems. This maps to CWE-191 (Integer Underflow). Estimated CVSS v3.1 vector: CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H (6.1, Medium). The estimated CISA SSVC vectors are Exploitation: PoC, Technical Impact: Total.
- How severe is CVE-2026-6685?
- CVE-2026-6685 has a CVSS 3.x base score of 6.1, rated medium severity. It is exploitable over physical access with low attack complexity, requires no privileges and no user interaction. Impact on confidentiality is none, integrity high, and availability high.
- Is CVE-2026-6685 being actively exploited?
- It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 0% (11th percentile), an estimate of the probability of exploitation in the next 30 days.
- What products are affected by CVE-2026-6685?
- CVE-2026-6685 affects Elm-chan Fatfs. See the affected-products list for the exact vulnerable versions.
- How do I fix CVE-2026-6685?
- Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround.
- When was CVE-2026-6685 published?
- CVE-2026-6685 was published on 2026-07-01 and last updated on 2026-07-02.
References
- https://elm-chan.org/fsw/ff/
- https://github.com/runZeroInc/vulns-2026-fatfs-chance
- https://www.runzero.com/advisories/fatfs-unsigned-sub-wrap-cve-2026-6685/
- https://www.runzero.com/blog/fatfs-bugs/
Affected products (1)
- cpe:2.3:a:elm-chan:fatfs:*:*:*:*:*:*:*:*
More vulnerabilities in Elm-chan Fatfs
- CVE-2026-6688 — High (CVSS 7.6): FatFs R0.16 and earlier contains a downstream-caller vulnerability pattern associated with FatFs long filename…
- CVE-2026-6687 — High (CVSS 7.6): FatFs R0.16 and earlier contains a stack overflow bug in f_getlabel() because exFAT label length (XDIR_NumLabel) is…
- CVE-2026-6682 — High (CVSS 7.6): In FatFS R0.16 and earlier contains a FAT32 integer overflow bug in mount_volume() where fasize *= fs->n_fats can wrap,…
- CVE-2026-6686 — Medium (CVSS 4.6): FatFs R0.16 and earlier contains an uninitialized cluster exposure when f_lseek() extends files beyond EOF without…
- CVE-2026-6684 — Medium (CVSS 4.6): FatFs prior to R0.16 that use GPT scanning with 'FF_LBA64 = 1' contains an issue where an unbounded loop count derived…
- CVE-2026-6683 — Medium (CVSS 4.6): FatFs R0.16 and earlier contains a divide-by-zero in exFAT sync logic bug when crafted metadata causes n_fatent - 2 to…
All CVEs affecting Elm-chan Fatfs →
Other CWE-191 (Integer Underflow) vulnerabilities
- CVE-2007-0063 — Critical (CVSS 10.0): Integer underflow in the DHCP server in EMC VMware Workstation before 5.5.5 Build 56455 and 6.x before 6.0.1 Build…
- CVE-2026-53176 — Critical (CVSS 9.8): In the Linux kernel, the following vulnerability has been resolved: IB/isert: Reject login PDUs shorter than…
- CVE-2026-37534 — Critical (CVSS 9.8): Integer underflow vulnerability in Open-SAE-J1939 thru commit b6caf884df46435e539b1ecbf92b6c29b345bdfe (2025-11-30) in…
- CVE-2025-52471 — Critical (CVSS 9.8): ESF-IDF is the Espressif Internet of Things (IOT) Development Framework. An integer underflow vulnerability has been…
- CVE-2025-29909 — Critical (CVSS 9.8): CryptoLib provides a software-only solution using the CCSDS Space Data Link Security Protocol - Extended Procedures…
- CVE-2024-47606 — Critical (CVSS 9.8): GStreamer is a library for constructing graphs of media-handling components. An integer underflow has been detected in…