Unpatched Flaws Disclosed in Filesystem Bundled Into Millions of Embedded Devices

A cybersecurity firm has revealed seven security weaknesses in FatFs, a widely deployed filesystem library. FatFs is used by millions of embedded devices to read and write data on FAT and exFAT formatted storage media, such as USB drives and SD cards. The vulnerabilities were disclosed by the security firm runZero.
The flaws, if exploited, could allow an attacker to crash a device or potentially execute arbitrary code. This could lead to denial-of-service conditions or more severe compromise of the affected device. The widespread use of FatFs means that a large number of devices, from consumer electronics to industrial control systems, could be vulnerable.

FatFs is a popular choice for embedded systems due to its small footprint and efficiency, making it suitable for devices with limited resources. Its ability to handle FAT and exFAT file systems makes it a common component for devices that interact with removable storage.
The specific vulnerabilities have not yet been publicly detailed with CVE identifiers, but runZero has indicated that they impact the library's handling of file system operations. The potential for code execution is particularly concerning, as it could enable attackers to gain control over the compromised device.
While the exact number of affected devices is unknown, the pervasive nature of FatFs suggests a broad attack surface. Devices that incorporate this library and are connected to networks or exposed to untrusted storage media are at risk.

Details on the specific technical nature of the vulnerabilities and their exploitability are expected to be released by runZero. Users and manufacturers of embedded devices that utilize FatFs are advised to monitor for updates and security advisories related to the library.
In the absence of specific patches, general security best practices are recommended. This includes limiting exposure of vulnerable devices to untrusted networks and storage media. Regularly updating firmware and software components when patches become available is crucial for mitigating known security risks.
Manufacturers relying on FatFs should investigate their implementations and work with the FatFs maintainers or runZero to understand the scope of the impact and develop remediation strategies. The disclosure highlights the importance of supply chain security, particularly for foundational software components like filesystem libraries that are integrated into a vast array of products.





