Rufus 4.16: Nine Vulnerabilities Fixed and a Workaround for the NTFS Bug in AMI Firmware

The stable version of Rufus 4.16, the utility for creating bootable USB drives, has been released. It includes the changes that developer Pete Batard previously tested in the beta version. The main themes of this release are vulnerability fixes, a workaround for the NTFS driver bug in AMI firmware, and correct detection of the latest USB standards.

Rufus 4.16: Nine Vulnerabilities Fixed and a Workaround for the NTFS Bug in AMI Firmware

The new version fixes nine vulnerabilities with security advisories published on GitHub, five of them rated high severity. The most serious one was caused by Rufus, which runs with administrator privileges, launching the system utilities compact and dism without specifying a full path. The search was performed in a folder writable by a regular user, so a local attacker could replace the file and escalate their privileges. A heap buffer overflow during file downloads from the network has also been eliminated: the buffer size was taken from the server response header, and data was copied without bounds checking, even before the signature was verified. This issue affected versions 3.5 through 4.15.

In addition, Rufus no longer reuses previously downloaded Syslinux, GRUB and Grub4DOS bootloader files without verifying their hash or signature. Previously, a replaced file could end up on the drive and run at boot time. Parsing errors in the sbat_level.txt and md5sum.txt files have been fixed, along with an out-of-bounds read when parsing UEFI bootloaders. Three more vulnerabilities affected only the first beta of 4.16 and were resolved in Beta 2, including a dangerous write outside the USB drive via symbolic links in images with the Rock Ridge extension. The developer notes that exploiting any of these flaws requires an already compromised system, a malicious ISO image, traffic interception, or a compromise of a domain or GitHub.

Special attention has been given to the AMI NTFS driver bug. The driver is included in the UEFI firmware of ASUS, Gigabyte, MSI, Dell and Intel. When reading a file in parts, it could return data from clusters that belong to other files. As a result, MD5 checksum verification in the UEFI environment reported errors even though the files on the drive were intact. AMI was notified in early 2024, but no fix followed, so the workaround was built directly into Rufus. Runtime UEFI media validation now works on millions of computers with such firmware.

Device handling and Windows installation options have also been improved. USB 3.2 and newer drives are now identified correctly: 20 Gbps for USB 3.2, 40 Gbps for USB 4.0 and 80 Gbps for USB 4.1. The Quality of Life option in the Windows User Experience window now restores the classic Windows 10 style context menu, where all commands are shown at once, without the Show more options item. The duplicated time zone in non-English locales has been fixed, and dots are again allowed in local user names. Group policies, which caused problems, are no longer used to disable the prompt asking whether to format the drive.

Other fixes include taking updated CA 2023 files into account during UEFI media validation, preventing the silent Windows installation option from being applied when not all dependencies are met, and fixing a regression in Write as ESP mode, which used the entire drive instead of a 1 GB partition. Mounting and remounting of RAW image partitions has been improved. The built-in GRUB has been updated to version 2.16, the libcdio library to its latest version, and the official UEFI DBX addresses have been adjusted to match the changes made by Microsoft.

New programs