CVE-2026-6687: CWE-121 Stack-based buffer overflow in ChaN FatFs
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.
AI Analysis
Technical Summary
CVE-2026-6687 is a stack-based buffer overflow in the FatFs library (version R0.16 and earlier) within the f_getlabel() function. The flaw arises because the exFAT label length field (XDIR_NumLabel) is trusted without validating against the maximum allowed length defined by the specification. This unchecked input can overflow a stack buffer, leading to potential arbitrary code execution or system compromise. The vulnerability has a CVSS 3.1 score of 7.6 (High) with attack vector physical, low attack complexity, no privileges required, no user interaction, and complete impact on confidentiality, integrity, and availability. No official patch or remediation guidance is currently available, and no known exploits are reported in the wild.
Potential Impact
Successful exploitation of this vulnerability can result in total compromise of the affected system's confidentiality, integrity, and availability. Because it is a stack-based buffer overflow, it may allow an attacker with physical access to execute arbitrary code or cause a denial of service. The vulnerability affects the FatFs library when processing exFAT labels with maliciously crafted length values that exceed specification limits.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, avoid processing untrusted exFAT volumes with FatFs R0.16 or earlier. Monitor vendor channels for updates and apply patches promptly once released.
CVE-2026-6687: CWE-121 Stack-based buffer overflow in ChaN FatFs
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.
CVSS v3.1
Score 7.6high
Affected software
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-6687 is a stack-based buffer overflow in the FatFs library (version R0.16 and earlier) within the f_getlabel() function. The flaw arises because the exFAT label length field (XDIR_NumLabel) is trusted without validating against the maximum allowed length defined by the specification. This unchecked input can overflow a stack buffer, leading to potential arbitrary code execution or system compromise. The vulnerability has a CVSS 3.1 score of 7.6 (High) with attack vector physical, low attack complexity, no privileges required, no user interaction, and complete impact on confidentiality, integrity, and availability. No official patch or remediation guidance is currently available, and no known exploits are reported in the wild.
Potential Impact
Successful exploitation of this vulnerability can result in total compromise of the affected system's confidentiality, integrity, and availability. Because it is a stack-based buffer overflow, it may allow an attacker with physical access to execute arbitrary code or cause a denial of service. The vulnerability affects the FatFs library when processing exFAT labels with maliciously crafted length values that exceed specification limits.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, avoid processing untrusted exFAT volumes with FatFs R0.16 or earlier. Monitor vendor channels for updates and apply patches promptly once released.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- runZero
- Date Reserved
- 2026-04-20T15:06:23.356Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a45260c27e9c79719982ad9
Added to database: 07/01/2026, 14:37:00 UTC
Last enriched: 07/01/2026, 14:51:23 UTC
Last updated: 07/01/2026, 15:36:53 UTC
Views: 3
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.