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. An attacker can this overflow, resulting in unsafe read lengths in later filesystem calls. The corrupted metadata can enable arbitrary memory reads or potentially lead to remote code execution if higher‑level processes misuse the value. This weakness is a classic example of CWE‑190 (Integer Overflow or Wraparound). Based on the description, potential remote code execution is inferred.

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, but the EPSS score of less than  a very low probability of real‑world exploitation at present. The vulnerability is not listed in CISA KEV. Remote delivery via OTA or firmware pipelines that use FatFs is possible. Based on the description, the likely attack vector involves delivering a crafted FAT32 image through such update mechanisms or physically inserting a malicious volume when the device accesses a removable medium. Successful exploitation could compromise confidentiality, integrity, and availability and might enable remote code execution (inferred).

Generated by OpenCVE AI on July 15, 2026 at 10:17 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade FatFs to version 0.17 or later, which removes the overflow logic.
  • Add defensive bounds checking when calculating file‑size metadata before it is used by reading or writing functions.
  • Ensure all firmware or OTA updates that involve and verified, preventing injection of malicious images.

Generated by OpenCVE AI on July 15, 2026 at 10:17 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

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-15T10:30:05Z

Weaknesses
  • CWE-190

    Integer Overflow or Wraparound