RusyFuzz: Unhandled Exception Guided Fuzzing for Rust OS Kernel
Open Access
- 12 April 2026
- conference paper
- Published by Association for Computing Machinery (ACM)
- p. 3348-3359
Abstract
Rust’s strong type system and ownership model eliminate many traditional memory safety issues in OS kernels. However, logic errors—such as unchecked indexing and failed unwrap operations—can still cause panic!s that crash the entire system. Existing kernel fuzzers, designed primarily for C-based kernels and reliant on KCOV, treat all crashes uniformly and fail to account for Rust-specific failure modes. We present RusyFuzz, the first fuzzing framework tailored to Rust OS kernels that explicitly targets panic-prone code paths using an unhandled-exception-guided strategy. RusyFuzz analyzes the compiler-inserted assertions within the Rust MIR, performs backward slicing to link these assertions to system call arguments, and uses constraint solving to synthesize inputs that trigger panics. In the absence of built-in coverage support, RusyFuzz employs a lightweight, log-based instrumentation method to enable coverage-guided fuzzing. We evaluate RusyFuzz on three emerging Rust-based kernels: Asterinas, Redox OS, and RuxOS. RusyFuzz discovers 70 previously unknown and developer-confirmed vulnerabilities. Compared to Trinity, it uncovers over twice as many bugs while improving line coverage by 14.4%. These results demonstrate that unhandled-exception-guided fuzzing is critical for uncovering logic bugs and enhancing the reliability of Rust OS kernels, providing the first systematic methodology for detecting such vulnerabilities.Keywords
Funding Information
- Ant Group Postdoctoral Programme (null)
- National Natural Science Foundation of China (62232016)
- Research Project of Institute of Software Chinese Academy of Sciences (ISCAS-ZD-202402)
This publication has 22 references indexed in Scilit:
- SyzGen++: Dependency Inference for Augmenting Kernel Driver Fuzzing2024
- A survey on large language model (LLM) security and privacy: The Good, The Bad, and The UglyHigh-Confidence Computing, 2024
- Software Testing With Large Language Models: Survey, Landscape, and VisionIEEE Transactions on Software Engineering, 2024
- VD-Guard: DMA Guided Fuzzing for Hypervisor Virtual Device2023
- Large Language Models for Software Engineering: Survey and Open Problems2023
- Creusot: A Foundry for the Deductive Verification of Rust Programs2022
- The Prusti Project: Formal Verification for Rust2022
- Coverage-Based Greybox Fuzzing as Markov ChainIEEE Transactions on Software Engineering, 2017
- Multiprogramming a 64kB Computer Safely and Efficiently2017
- Continuous Fuzzing with libFuzzer and AddressSanitizer2016