CVE-2026-6685: CWE-191 Integer underflow (wrap or wraparound) in ChaN FatFs
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.
AI Analysis
Technical Summary
ChaN FatFs versions R0.16 and earlier contain an integer underflow vulnerability in the f_read() and f_write() functions. The issue arises from an unsigned subtraction wraparound condition (fp->sect - sect < cc) during interleaved read/write operations on fragmented filesystems, which leads to stale dirty-cache skipping. This vulnerability maps to CWE-191 (Integer Underflow). The CVSS 3.1 vector is AV:P/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H with a score of 6.1, indicating a medium severity vulnerability with partial impact on integrity and availability but no confidentiality impact. There is no vendor advisory or patch information available, and no known exploits in the wild have been reported.
Potential Impact
The vulnerability can cause integrity and availability impacts by skipping stale dirty-cache data during file read/write operations on fragmented filesystems. Confidentiality is not affected. The medium CVSS score reflects the potential for data corruption or loss but does not indicate remote exploitation without physical or local access (AV:P).
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, users should consider avoiding interleaved read/write operations on fragmented filesystems with affected versions or implement additional integrity checks at the application level.
CVE-2026-6685: CWE-191 Integer underflow (wrap or wraparound) in ChaN FatFs
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.
CVSS v3.1
Score 6.1medium
Affected software
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
ChaN FatFs versions R0.16 and earlier contain an integer underflow vulnerability in the f_read() and f_write() functions. The issue arises from an unsigned subtraction wraparound condition (fp->sect - sect < cc) during interleaved read/write operations on fragmented filesystems, which leads to stale dirty-cache skipping. This vulnerability maps to CWE-191 (Integer Underflow). The CVSS 3.1 vector is AV:P/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H with a score of 6.1, indicating a medium severity vulnerability with partial impact on integrity and availability but no confidentiality impact. There is no vendor advisory or patch information available, and no known exploits in the wild have been reported.
Potential Impact
The vulnerability can cause integrity and availability impacts by skipping stale dirty-cache data during file read/write operations on fragmented filesystems. Confidentiality is not affected. The medium CVSS score reflects the potential for data corruption or loss but does not indicate remote exploitation without physical or local access (AV:P).
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, users should consider avoiding interleaved read/write operations on fragmented filesystems with affected versions or implement additional integrity checks at the application level.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- runZero
- Date Reserved
- 2026-04-20T15:06:21.250Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a45260c27e9c79719982acd
Added to database: 07/01/2026, 14:37:00 UTC
Last enriched: 07/01/2026, 14:53:21 UTC
Last updated: 07/02/2026, 01:24:02 UTC
Views: 8
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.