Seven FatFs Flaws Expose Embedded Devices to Malicious Media and OTA Attacks
Vulnerability Disclosure · 9 sources · Updated 4mo ago · First seen Jul 1, 2026

runZero disclosed seven vulnerabilities in the widely reused FatFs filesystem library, a FAT/exFAT implementation embedded in firmware for devices such as cameras, drones, industrial controllers, crypto wallets, and RTOS-based products. The flaws affect FAT, exFAT, and GPT parsing and can be triggered by crafted USB drives, SD cards, partition tables, or mounted firmware/update images, leading to memory corruption, denial of service, information disclosure, silent data corruption, and possible code execution. The most serious issues include CVE-2026-6682, an integer overflow in mount_volume() that can corrupt file-size metadata and enable downstream exploitation, and CVE-2026-6687, a stack overflow in f_getlabel() tied to exFAT label handling.
The disclosure warned that the blast radius is large because FatFs is vendored into ecosystems including ESP-IDF, STM32Cube, Zephyr, MicroPython, ArduPilot, RT-Thread, Mbed, TizenRT, and SWUpdate, with exploitation often requiring physical access but also potentially reaching devices through OTA workflows that automatically mount malicious images. runZero said all released versions are affected, only CVE-2026-6684 is fixed upstream in FatFs R0.16, and no coordinated maintainer response was received despite outreach through JPCERT/CC. Researchers published proof-of-concept disk images, a test harness, and a QEMU-based exploit example, while warning that downstream vendors will need to identify and patch their own bundled copies and that remediation may take years for many products.


