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.
Published: 2026-07-01
Score: 7.6 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

Mounting a FAT32 volume in FatFs R0.16 or earlier triggers an integer overflow in the mount_volume() function where the calculation fasize *= fs->n_fats can wrap, corrupting file‑size metadata. The corrupted metadata permits unsafe read lengths in downstream filesystem calls, potentially allowing an attacker to read arbitrary memory or influence subsequent operations. Because the overflow influences lower‑level file handling, the flaw can enable remote code execution if higher‑level processes misuse the malicious values. This weakness is categorized as CWE‑190 (Integer Overflow or Wraparound). The high‑severity CVSS v3.1 score of 7.6 reflects the serious impact on confidentiality, integrity, and availability.

Affected Systems

Systems that incorporate ChaN’s FatFs library version 0.16 or earlier and mount FAT32 volumes are affected. The vulnerability is present whenever the library performs the mount_volume() operation on a FAT32 volume. No specific operating system or device type is mandated; the issue relates solely to the FatFs library and its handling of FAT32 file‑size calculations.

Risk and Exploitability

The CVSS v3.1 score of 7.6 indicates high severity, while the EPSS score of less than a very low probability of real‑world exploitation at present suggests the risk is moderate at this time. The flaw is not listed in CISA KEV. Remote delivery via OTA or firmware pipelines that use FatFs is possible, as is physical insertion of a malicious volume when the device accesses a removable medium. If the overflow is leveraged, an attacker could compromise confidentiality, integrity, and availability and might enable remote code execution, although this would likely require higher‑level process exploitation.

Generated by OpenCVE AI on August 1, 2026 at 23:31 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade FatFs to version 0.17 or later, which fixes the integer‑overflow logic.
  • Add defensive bounds checking or validation when calculating file‑size metadata before it is used by read and write functions.
  • Verify all firmware or OTA updates that incorporate FatFs, ensuring images are authenticated and not tampered with.

Generated by OpenCVE AI on August 1, 2026 at 23:31 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 06 Jul 2026 23:15:00 +0000

Type Values Removed Values Added
First Time appeared Chan
Chan fatfs
Vendors & Products Chan
Chan fatfs

Wed, 01 Jul 2026 16:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Wed, 01 Jul 2026 14:30:00 +0000

Type Values Removed Values Added
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.
Title FatFs Integer Overflow in FAT32 Volume Mount
Weaknesses CWE-190
References
Metrics cvssV3_1

{'score': 7.6, 'vector': 'CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H'}


cve-icon MITRE

Status: PUBLISHED

Assigner: runZero

Published:

Updated: 2026-07-01T15:24:05.860Z

Reserved: 2026-04-20T15:06:18.243Z

Link: CVE-2026-6682

cve-icon Vulnrichment

Updated: 2026-07-01T15:23:59.950Z

cve-icon NVD

Status : Analyzed

Published: 2026-07-01T15:17:12.313

Modified: 2026-07-02T14:37:48.377

Link: CVE-2026-6682

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-01T23:45:03Z

Weaknesses
  • CWE-190

    Integer Overflow or Wraparound