CVE-2026-6685 PUBLISHED

FatFs Integer Underflow in Dirty-Sector Cache Flush

Assigner: runZero
Reserved: 20.04.2026 Published: 01.07.2026 Updated: 01.07.2026

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.

Metrics

CVSS Vector: CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H
CVSS Score: 6.1

Product Status

Vendor ChaN
Product FatFs
Versions Default: unaffected
  • affected from 0 to R0.16 (incl.)

Credits

  • HD Moore of runZero, Inc. finder
  • Tod Beardsley of runZero, Inc. coordinator

References

Problem Types

  • CWE-191 Integer underflow (wrap or wraparound) CWE