New fuzzing tool finds 26 USB bugs in Linux, Windows, macOS, and FreeBSD | ZDNet

by

Eighteen of the 26 bugs impact Linux. Eleven have been patched already.

https://zdnet4.cbsistatic.com/hub/i/2020/05/27/49fd5737-1eab-48a4-b8b5-091340019d03/usb-drive.jpg
Image: Sara Kurfeß

Academics say they discovered 26 new vulnerabilities in the USB driver stack employed by operating systems such as Linux, macOs, Windows, and FreeBSD.

The research team, made up by Hui Peng from Purdue University and Mathias Payer from the Swiss Federal Institute of Technology Lausanne, said all the bugs were discovered with a new tool they created, named USBFuzz.

The tool is what security experts call a fuzzer. Fuzzers are applications that let security researchers send large quantities of invalid, unexpected, or random data as inputs to other programs.

Security researchers then analyze how the tested software behaves to discover new bugs, some of which may be exploited in a malicious way.

Academics developed a new portable USB fuzzer

To test USB drivers, Peng and Payer developed USBFuzz, a new fuzzer specifically designed to test the USB driver stack of modern-day operating systems.

"At its core, USBFuzz uses a software-emulated USB device to provide random device data to drivers (when they perform IO operations)," the researchers said.

"As the emulated USB device works at the device level, porting it to other platforms is straight-forward."

This allowed the research team to test USBFuzz not only on Linux, where most fuzzer programs work, but also other operating systems. Researchers said they tested USBFuzz on:

Research team finds 26 new bugs

Following their tests, the research team said that with the help of USBFuzz, they discovered a total of 26 new bugs.

Researchers found one bug in FreeBSD, three in MacOS (two resulting in an unplanned reboot and one freezing the system), and four in Windows 8 and Windows 10 (resulting in Blue Screens of Death).

However, the vast majority of bugs, and the most severe, were found in Linux -- 18 in total.

Sixteen were memory bugs of high-security impact in various Linux subsystems (USB core, USB sound, and net-work), one bug resided in the Linux USB host controller driver, and the last in a USB camera driver.

Peng and Payer said they reported these bugs to the Linux kernel team, along with proposed patches to reduce "the burden on the kernel developers when fixing the reported vulnerabilities."

Of the 18 Linux bugs, the research team said 11 received a patch since their initial reports last year. Ten of these 11 bugs also received a CVE, a unique code that's assigned to major security flaws.

https://zdnet1.cbsistatic.com/hub/i/2020/05/27/1ab453cb-f76e-461f-accf-2965becb34c5/usbfuzz-tests.png
Image: Peng et al.

Other patches are also expected in the near future for the seven remaining issues.

"The remaining bugs fall into two classes: those still under embargo/being disclosed and those that were concurrently found and reported by other researchers," researchers said.

USBFuzz to be open-sourced

Payer published yesterday a draft of the research team's white paper describing their work on USBFuzz. Peng and Payer plan to present their research at the Usenix Security Symposium virtual security conference, scheduled for August 2020.

Similar work has been carried out in the past. A Google security engineer used a Google-made fuzzer named syzkaller to discover 79 bugs impacting Linux kernel USB drivers in November 2017.

Peng and Payer said that USBFuzz is superior to previous tools like vUSBf, syzkaller, and usb-fuzzer because their tool grants testers more control over the test data and is also portable across operating systems, unlike all the above, which usually work only on *NIX systems.

USBFuzz is scheduled to be released on GitHub as an open source project following Peng and Payer's Usenix talk. The repo will be available here.

Copies of Peng and Payer's paper, titled "USBFuzz: A Framework for Fuzzing USB Drivers by Device Emulation," are available in PDF format here and here.