Minoris: Practical Out-of-Emulator Kernel Module Fuzzing
- 1 October 2025
- journal article
- Published by Institute of Electrical and Electronics Engineers (IEEE) in IEEE Transactions on Dependable and Secure Computing
- Vol. 23 (1) , 1360-1372
Abstract
Vulnerabilities in the Linux kernel can be exploited to perform privilege escalation and take over the whole system. Fuzzing has been leveraged to detect Linux kernel vulnerabilities during the last decade. However, existing kernel fuzzing techniques highly use QEMU/KVM as the underlying infrastructure, thus suffering from unnecessary costs due to user-kernel context switch and kernel-emulator context switch. This degrades the fuzzing performance. In this paper, we propose a kernel module fuzzing framework named Minoris. It moves the kernel module under testing (KMUT) out of both real kernel and emulator, thus eliminating unnecessary context switches. However, implementing such a system requires solving the dependency challenges. We solve these challenges by automatically linking kernel module with LKL, and performing initialization functions on-demand to prepare the required status. Besides, a hardware-emulation library is proposed to provide underlying hardware support. Our system not only improves the fuzzing speed but also can easily integrate mature fuzzing techniques, such as user-space memory sanitizer. We evaluate Minoris on five different KMUTs. Compared with the state-of-the-art solution, Minoris achieves an average execution speedup from ×3.31 to ×7.38. It improves the fuzzing throughput (×102.58), explores more code coverage ($89.51\%$ more branches), and detects 6 new bugs.Keywords
Funding Information
- National Key R&D Program of China (2022YFE0113200)
- National Natural Science Foundation of China (U21A20464)
This publication has 18 references indexed in Scilit:
- Detecting Vulnerability on IoT Device Firmware: A SurveyIEEE/CAA Journal of Automatica Sinica, 2022
- Ex-vivo dynamic analysis framework for Android device drivers2020
- Krace: Data Race Fuzzing for Kernel File Systems2020
- SLAKE2019
- Fuzzing File Systems via Two-Dimensional Input Space Exploration2019
- Razzer: Finding Kernel Race Bugs through Fuzzing2019
- DIFUZE2017
- Symbolic Execution of Virtual Devices2013
- S2E2011
- ThreadSanitizer2009