Description
FatFs R0.16 and earlier contains a stack overflow bug in f_getlabel() because exFAT label length (XDIR_NumLabel) is trusted without enforcing spec maximums. This maps to CWE-121 (Stack-based Buffer Overflow). 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

FatFs up to version 0.16 contains a stack buffer overflow in the f_getlabel() routine because the exFAT file system label length field (XDIR_NumLabel) is trusted without enforcing its maximum allowed size according to the exFAT specification. The flaw allows an attacker to supply a label longer than the stack buffer held by the routine, forcing an uncontrolled write that can corrupt adjacent stack data. If successfully exploited the overflow can lead to memory corruption, denial of service, or arbitrary code execution, which explains the CVSS v3.1 score of 7.6 classified as high severity.

Affected Systems

The affected library is ChaN FatFs, the lightweight file system library widely used in embedded firmware, operating systems, and other resources constrained systems. All releases version 0.16 and earlier are affected. Devices that compile FatFs without addressing the flaw, or that omit the fix in the subsequent versions, remain vulnerable.

Risk and Exploitability

The EPSS score of less than 1% indicates a low probability of current exploitation, and the vulnerability is not listed in the CISA KEV catalog. However, the CVSS score of 7.6 highlights a high potential impact. The flaw can be triggered by an attacker delivering a malicious exFAT volume that contains a label longer than the permitted size. When a device processes the label via the f_getlabel() routine, the unchecked length causes a stack overwrite that can corrupt adjacent memory, leading to denial of service, memory corruption, or potentially arbitrary code execution. A proof‑of‑concept is available, but no production exploit has been reported in the wild, so the risk remains theoretical at present.

Generated by OpenCVE AI on July 22, 2026 at 14:25 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade FatFs to a version newer than 0.16 that includes bounds checks on the exFAT label length.
  • If upgrading is not possible, modify the f_getlabel() implementation to enforce a maximum label length before processing the label.
  • If the library cannot be altered, disable exFAT support in the FatFs configuration or ensure that f_getlabel() is only called on trusted file systems.

Generated by OpenCVE AI on July 22, 2026 at 14:25 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 stack overflow bug in f_getlabel() because exFAT label length (XDIR_NumLabel) is trusted without enforcing spec maximums. This maps to CWE-121 (Stack-based Buffer Overflow). 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 Stack Buffer Overflow via Uncapped exFAT Label Length
Weaknesses CWE-121
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:24.705Z

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

Link: CVE-2026-6687

cve-icon Vulnrichment

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

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-22T14:30:17Z

Weaknesses
  • CWE-121

    Stack-based Buffer Overflow