CVE-2026-6682
Received
Received - Intake
Integer Overflow in FatFS Leading to Arbitrary Code Execution
Vulnerability report for CVE-2026-6682, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.
Publication date: 2026-07-01
Last updated on: 2026-07-01
Assigner: 44488dab-36db-4358-99f9-bc116477f914
Description
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.
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| elm-chan | fatfs | 0.16 |
| chan | fatfs | to 0.17 (exc) |
| espressif | iot_development_framework | * |
| stmicroelectronics | middleware_fatfs_mcu | * |
| ardupilot | ardupilot | * |
| riot_os | riot_os | * |
| arm_limited | mbed | * |
| micropython | micropython | * |
| chan | fatfs | 0.16 |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-190 | The product performs a calculation that can produce an integer overflow or wraparound when the logic assumes that the resulting value will always be larger than the original value. This occurs when an integer value is incremented to a value that is too large to store in the associated representation. When this occurs, the value may become a very small or negative number. |