USBFuzz: A Framework for Fuzzing USB Drivers by Device Emulation
Hui Peng, Mathias Payer
摘要
The Universal Serial Bus (USB) connects external devices to a host. This interface exposes the OS kernels and device drivers to attacks by malicious devices. Unfortunately, kernels and drivers were developed under a security model that implicitly trusts connected devices. Drivers expect faulty hardware but not malicious attacks. Similarly, security testing drivers is challenging as input must cross the hardware/software barrier. Fuzzing, the most widely used bug finding technique, relies on providing random data to programs. However, fuzzing device drivers is challenging due to the difficulty in crossing the hardware/software barrier and providing random device data to the driver under test. We present USBFuzz, a portable, flexible, and modular framework for fuzz testing USB drivers. At its core, USB-Fuzz uses a software-emulated USB device to provide random device data to drivers (when they perform IO operations). As the emulated USB device works at the device level, porting it to other platforms is straight-forward. Using the USBFuzz framework, we apply (i) coverage-guided fuzzing to a broad range of USB drivers in the Linux kernel; (ii) dumb fuzzing in FreeBSD, MacOS, and Windows through cross-pollination seeded by the Linux inputs; and (iii) focused fuzzing of a USB webcam driver. USBFuzz discovered a total of 26 new bugs, including 16 memory bugs of high security impact in various Linux subsystems (USB core, USB sound, and network), 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), and one bug in the Linux USB host controller driver and another one in a USB camera driver. From the Linux bugs, we have fixed and upstreamed 11 bugs and received 10 CVEs.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 47 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- FuzzUSB: Hybrid Stateful Fuzzing of USB Gadget Stacks 引用了 PeriScope: An Effective Probing and Fuzzing Framework for the Hardware-OS Boundary
- FuzzUSB: Hybrid Stateful Fuzzing of USB Gadget Stacks 引用了 Razzer: Finding Kernel Race Bugs through Fuzzing
- FuzzUSB: Hybrid Stateful Fuzzing of USB Gadget Stacks 引用了 kAFL: Hardware-Assisted Feedback Fuzzing for OS Kernels
- FuzzUSB: Hybrid Stateful Fuzzing of USB Gadget Stacks 引用了 DIFUZE: Interface Aware Fuzzing for Kernel Drivers
- PeriScope: An Effective Probing and Fuzzing Framework for the Hardware-OS Boundary 引用了 Razzer: Finding Kernel Race Bugs through Fuzzing
- PeriScope: An Effective Probing and Fuzzing Framework for the Hardware-OS Boundary 引用了 kAFL: Hardware-Assisted Feedback Fuzzing for OS Kernels
- PeriScope: An Effective Probing and Fuzzing Framework for the Hardware-OS Boundary 引用了 DIFUZE: Interface Aware Fuzzing for Kernel Drivers
- Nyx-net: network fuzzing with incremental snapshots 引用了 Nyx: Greybox Hypervisor Fuzzing using Fast Snapshots and Affine Types
- Nyx-net: network fuzzing with incremental snapshots 引用了 kAFL: Hardware-Assisted Feedback Fuzzing for OS Kernels
- The Use of Likely Invariants as Feedback for Fuzzers 引用了 Nyx: Greybox Hypervisor Fuzzing using Fast Snapshots and Affine Types
- The Use of Likely Invariants as Feedback for Fuzzers 引用了 kAFL: Hardware-Assisted Feedback Fuzzing for OS Kernels
- Razzer: Finding Kernel Race Bugs through Fuzzing 引用了 DIFUZE: Interface Aware Fuzzing for Kernel Drivers
- Nyx: Greybox Hypervisor Fuzzing using Fast Snapshots and Affine Types 引用了 kAFL: Hardware-Assisted Feedback Fuzzing for OS Kernels
- Static Detection of Unsafe DMA Accesses in Device Drivers 引用了 PeriScope: An Effective Probing and Fuzzing Framework for the Hardware-OS Boundary
- Static Detection of Unsafe DMA Accesses in Device Drivers 引用了 DIFUZE: Interface Aware Fuzzing for Kernel Drivers
引用它的顶会 Paper47
- Nyx: Greybox Hypervisor Fuzzing using Fast Snapshots and Affine TypesSergej Schumilo, Cornelius Aschermann, Ali Abbasi, Simon Wörner 等USENIX Security 2021 · 102 次引用
- Nyx-net: network fuzzing with incremental snapshotsSergej Schumilo, Cornelius Aschermann, Andrea Jemmett, Ali Abbasi 等EuroSys 2022 · 76 次引用
- The Use of Likely Invariants as Feedback for FuzzersAndrea Fioraldi, Daniele Cono D'Elia, Davide BalzarottiUSENIX Security 2021 · 67 次引用
- FuzzUSB: Hybrid Stateful Fuzzing of USB Gadget StacksKyungtae Kim, Taegyu Kim, Ertza Warraich, Byoungyoung Lee 等S&P 2022 · 32 次引用
- Static Detection of Unsafe DMA Accesses in Device DriversJia-Ju Bai, Tuo Li, Kangjie Lu, Shi-Min HuUSENIX Security 2021 · 28 次引用
它引用的 Paper8
- kAFL: Hardware-Assisted Feedback Fuzzing for OS KernelsSergej Schumilo, Cornelius Aschermann, Robert Gawlik, Sebastian Schinzel 等USENIX Security 2017 · 324 次引用
- IoTFuzzer: Discovering Memory Corruptions in IoT Through App-based FuzzingJiongyi Chen, Wenrui Diao, Qingchuan Zhao, Chaoshun Zuo 等NDSS 2018 · 311 次引用
- Razzer: Finding Kernel Race Bugs through FuzzingDae R. Jeong, Kyungtae Kim, Basavesh Shivakumar, Byoungyoung Lee 等S&P 2019 · 202 次引用
- DIFUZE: Interface Aware Fuzzing for Kernel DriversJake Corina, Aravind Machiry, Christopher Salls, Yan Shoshitaishvili 等CCS 2017 · 195 次引用
- PeriScope: An Effective Probing and Fuzzing Framework for the Hardware-OS BoundaryDokyung Song, Felicitas Hetzelt, Dipanjan Das, Chad Spensky 等NDSS 2019 · 114 次引用
相关 Paper
- DevFuzz: Automatic Device Model-Guided Device Driver FuzzingYilun Wu, Tong Zhang, Changhee Jung, Dongyoon LeeS&P 2023
- Saturn: Host-Gadget Synergistic USB Driver FuzzingYiru Xu, Hao Sun, Jianzhong Liu, Yuheng Shen 等S&P 2024 · 13 次引用
- ReUSB: Replay-Guided USB Driver FuzzingJisoo Jang, Minsuk Kang, Dokyung SongUSENIX Security 2023
- DNAFuzz: Descriptor-Aware Fuzzing for USB DriversZhengshu Wang, Peng He, Fuchen Ma, Yuanliang Chen 等ASE 2025
- PrIntFuzz: fuzzing Linux drivers via automated virtual device simulationZheyu Ma, Bodong Zhao, Letu Ren, Zheming Li 等ISSTA 2022 · 23 次引用
