Description
FatFs R0.16 and earlier contains a downstream-caller vulnerability pattern associated with FatFs long filename handling. With LFN enabled, fno.fname can be up to 255 characters; many callers copy it into short fixed buffers without bounds checks, causing overflow. This maps to CWE-120 (Buffer Copy without Checking Size of Input). 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). 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

The vulnerability appears in FatFs R0.16 when LFN support is enabled. The LFN field can contain up to 255 characters, but many callers copy it into a fixed short buffer without performing bounds checks, producing a classic buffer overflow (CWE‑120). Overwriting adjacent memory can corrupt data, subvert program flow, and potentially allow an attacker to compromise the confidentiality, integrity, and availability of the system that uses the library.

Affected Systems

ChaN:FatFs is the vendor, and any embedded system, firmware, or downstream application that compiles FatFs R0.16 or earlier with LFN support is at risk and susceptible to exploitation.

Risk and Exploitability

The CVSS vector AV:P/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H yields a 7.6 score, indicating high severity. The EPSS score of <1% suggests a low probability of exploitation in the wild, and the vulnerability is not listed in the CISA KEV catalog. The attack vector is likely providing a maliciously long filename; exploitation requires control over file operations that use the vulnerable copy path, and a proof‑of‑concept has been demonstrated. The potential impact on confidentiality, integrity, and availability remains high if the overflow is triggered.

Generated by OpenCVE AI on July 21, 2026 at 14:29 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade to the latest FatFs release that contains bounds‑checked LFN copying
  • If an upgrade is not feasible, disable LFN support in the FatFs configuration to remove the vulnerable copy path
  • If neither upgrade nor disabling LFN is possible, modify the source code to add explicit size checks before copying LFN strings into fixed buffers

Generated by OpenCVE AI on July 21, 2026 at 14:29 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 15: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 FatFs R0.16 and earlier contains a downstream-caller vulnerability pattern associated with FatFs long filename handling. With LFN enabled, fno.fname can be up to 255 characters; many callers copy it into short fixed buffers without bounds checks, causing overflow. This maps to CWE-120 (Buffer Copy without Checking Size of Input). 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). The estimated CISA SSVC vectors are Exploitation: PoC, Technical Impact: Total.
Title FatFs Buffer Overflow via Unbounded LFN Filename Copy
Weaknesses CWE-120
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:06:59.026Z

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

Link: CVE-2026-6688

cve-icon Vulnrichment

Updated: 2026-07-01T15:06:47.991Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-21T14:30:08Z

Weaknesses
  • CWE-120

    Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')