SyzDirect: Directed Greybox Fuzzing for Linux Kernel
Open Access
- 15 November 2023
- conference paper
- Published by Association for Computing Machinery (ACM)
- p. 1630-1644
Abstract
Bug reports and patch commits are dramatically increasing for OS kernels, incentivizing a critical need for kernel-level bug reproduction and patch testing. Directed greybox fuzzing (DGF), aiming to stress-test a specific part of code, is a promising approach for bug reproduction and patch testing. However, the existing DGF methods exclusively target user-space applications, presenting intrinsic limitations in handling OS kernels. In particular, these methods cannot pinpoint the appropriate system calls and the needed syscall parameter values to reach the target location,resulting in low efficiency and waste of resources. In this paper, we present SyzDirect, a DGF solution for the Linux kernel. With a novel, scalable static analysis of the Linux kernel, SyzDirect identifies valuable information such as correct system calls and conditions on their arguments to reach the target location. During fuzzing, SyzDirect utilizes the static analysis results to guide the generation and mutation of test cases, followed by leveraging distance-based feedback for seed prioritization and power scheduling. We evaluated SyzDirect on upstream Linux kernels for bug reproduction and patch testing. The results show that SyzDirect can reproduce 320% more bugs and reach 25.6% more target patches than generic kernel fuzzers. It also improves the speed of bug reproduction and patch reaching by a factor of 154.3 and 680.9, respectively.Keywords
Funding Information
- Shanghai Pilot Program for Basic Research-Fudan University (21TQ1400100 (21TQ012))
- National key research and development program (2021YFB3101200)
- National Natural Science Foundation of China (62172105, 62172104, 62102091, 62102093)
- Shanghai Rising-Star Program (21QA1400700)
- Ministry of Industry and Information Technology of the People?s Republic of China (TC220H079)
This publication has 17 references indexed in Scilit:
- HEALER2021
- Automated Bug Detection and Replay for COTS Linux Kernel Modules with Concolic Execution2020
- Precisely Characterizing Security Impact in a Flood of Patches via Symbolic Rule Comparison2020
- Where Does It Go?2019
- Hawkeye2018
- Directed Greybox Fuzzing2017
- SemFuzz2017
- Data-driven precondition inference with learned features2016
- Thresher2013
- Snugglebug2009