Razzer: Finding Kernel Race Bugs through Fuzzing
Dae R. Jeong, Kyungtae Kim, Basavesh Shivakumar, Byoungyoung Lee, Insik Shin
Abstract
A data race in a kernel is an important class of bugs, critically impacting the reliability and security of the associated system. As a result of a race, the kernel may become unresponsive. Even worse, an attacker may launch a privilege escalation attack to acquire root privileges. In this paper, we propose Razzer, a tool to find race bugs in kernels. The core of Razzer is in guiding fuzz testing towards potential data race spots in the kernel. Razzer employs two techniques to find races efficiently: a static analysis and a deterministic thread interleaving technique. Using a static analysis, Razzer identifies over-approximated potential data race spots, guiding the fuzzer to search for data races in the kernel more efficiently. Using the deterministic thread interleaving technique implemented at the hypervisor, Razzer tames the non-deterministic behavior of the kernel such that it can deterministically trigger a race. We implemented a prototype of Razzer and ran the latest Linux kernel (from v4.16-rc3 to v4.18-rc3) using Razzer. As a result, Razzer discovered 30 new races in the kernel, with 16 subsequently confirmed and accordingly patched by kernel developers after they were reported.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
89 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- VUzzer: Application-aware Evolutionary Fuzzing cites Coverage-based Greybox Fuzzing as Markov Chain
- PeriScope: An Effective Probing and Fuzzing Framework for the Hardware-OS Boundary cites IMF: Inferred Model-based Fuzzer
- PeriScope: An Effective Probing and Fuzzing Framework for the Hardware-OS Boundary cites DIFUZE: Interface Aware Fuzzing for Kernel Drivers
- PeriScope: An Effective Probing and Fuzzing Framework for the Hardware-OS Boundary cites Coverage-based Greybox Fuzzing as Markov Chain
- Krace: Data Race Fuzzing for Kernel File Systems cites VUzzer: Application-aware Evolutionary Fuzzing
- Krace: Data Race Fuzzing for Kernel File Systems cites IMF: Inferred Model-based Fuzzer
- Krace: Data Race Fuzzing for Kernel File Systems cites DIFUZE: Interface Aware Fuzzing for Kernel Drivers
- Krace: Data Race Fuzzing for Kernel File Systems cites Coverage-based Greybox Fuzzing as Markov Chain
- SyzVegas: Beating Kernel Fuzzing Odds with Reinforcement Learning cites PeriScope: An Effective Probing and Fuzzing Framework for the Hardware-OS Boundary
- SyzVegas: Beating Kernel Fuzzing Odds with Reinforcement Learning cites DIFUZE: Interface Aware Fuzzing for Kernel Drivers
- SyzVegas: Beating Kernel Fuzzing Odds with Reinforcement Learning cites Coverage-based Greybox Fuzzing as Markov Chain
- SemFuzz: Semantics-based Automatic Generation of Proof-of-Concept Exploits cites Coverage-based Greybox Fuzzing as Markov Chain
- DifuzzRTL: Differential Fuzz Testing to Find CPU Bugs cites IMF: Inferred Model-based Fuzzer
- DifuzzRTL: Differential Fuzz Testing to Find CPU Bugs cites Coverage-based Greybox Fuzzing as Markov Chain
- IMF: Inferred Model-based Fuzzer cites VUzzer: Application-aware Evolutionary Fuzzing
- IMF: Inferred Model-based Fuzzer cites Coverage-based Greybox Fuzzing as Markov Chain
- DIFUZE: Interface Aware Fuzzing for Kernel Drivers cites VUzzer: Application-aware Evolutionary Fuzzing
Cited by top-tier papers89
- Krace: Data Race Fuzzing for Kernel File SystemsMeng Xu, Sanidhya Kashyap, Hanqing Zhao, Taesoo KimS&P 2020 · 131 citations
- DifuzzRTL: Differential Fuzz Testing to Find CPU BugsJaewon Hur, Suhwan Song, Dongup Kwon, Eunjin Baek et al.S&P 2021 · 126 citations
- PeriScope: An Effective Probing and Fuzzing Framework for the Hardware-OS BoundaryDokyung Song, Felicitas Hetzelt, Dipanjan Das, Chad Spensky et al.NDSS 2019 · 114 citations
- KEPLER: Facilitating Control-flow Hijacking Primitive Evaluation for Linux Kernel VulnerabilitiesWei Wu, Yueqi Chen, Xinyu Xing, Wei ZouUSENIX Security 2019 · 75 citations
- SyzVegas: Beating Kernel Fuzzing Odds with Reinforcement LearningDaimeng Wang, Zheng Zhang, Hang Zhang, Zhiyun Qian et al.USENIX Security 2021 · 75 citations
Builds on5
- Coverage-based Greybox Fuzzing as Markov ChainMarcel Böhme, Van-Thuan Pham, Abhik RoychoudhuryCCS 2016 · 1,026 citations
- VUzzer: Application-aware Evolutionary FuzzingSanjay Rawat, Vivek Jain, Ashish Kumar, Lucian Cojocar et al.NDSS 2017 · 700 citations
- DIFUZE: Interface Aware Fuzzing for Kernel DriversJake Corina, Aravind Machiry, Christopher Salls, Yan Shoshitaishvili et al.CCS 2017 · 195 citations
- SemFuzz: Semantics-based Automatic Generation of Proof-of-Concept ExploitsWei You, Peiyuan Zong, Kai Chen, XiaoFeng Wang et al.CCS 2017 · 148 citations
- IMF: Inferred Model-based FuzzerHyungSeok Han, Sang Kil ChaCCS 2017 · 139 citations
Related papers
- ExpRace: Exploiting Kernel Races through Raising InterruptsYoochan Lee, Changwoo Min, Byoungyoung LeeUSENIX Security 2021 · 40 citations
- Precise Detection of Kernel Data Races with Probabilistic Lockset AnalysisGabriel Ryan, Abhishek Shah, Dongdong She, Suman JanaS&P 2023
- LR-Miner: Static Race Detection in OS Kernels by Mining Locking RulesTuo Li, Jia-Ju Bai, Gui-Dong Han, Shi-Min HuUSENIX Security 2024 · 6 citations
- Context-Sensitive and Directional Concurrency Fuzzing for Data-Race DetectionZu-Ming Jiang, Jia-Ju Bai, Kangjie Lu, Shi-Min HuNDSS 2022
- DDRace: Finding Concurrency UAF Vulnerabilities in Linux Drivers with Directed FuzzingMing Yuan, Bodong Zhao, Penghui Li, Jiashuo Liang et al.USENIX Security 2023
