Unlocking Low Frequency Syscalls in Kernel Fuzzing with Dependency-Based RAG
Proceedings of the ACM on Software Engineering · 22.06.2025 · 2 (ISSTA) · 848-870
DOI: 10.1145/3728913 ↗Kurz gefasst
Fachartikel in der Zeitschrift Proceedings of the ACM on Software Engineering, online erschienen am 22.06.2025. Verfasst von Zhiyu Zhang und 3 weiteren Autor:innen. Die Arbeit wurde bisher 10-mal zitiert (Crossref) und nennt 76 Literaturangaben. Der Volltext ist frei zugänglich (Open Access, CC BY-NC-SA 4.0).
Abstract (Originalsprache)
Most coverage-guided kernel fuzzers test operating system kernels based on syscall sequence synthesis. However, there are still syscalls rarely or not covered (called low frequency syscalls, LFS) in a period of fuzzing, meaning the relevant code branches remain unexplored. This is due to the complex dependencies of the LFS and mutation uncertainty, which makes it difficult for fuzzers to generate corresponding syscall sequences. Since many kernel fuzzers can dynamically learn syscall dependencies from the current corpus based on the choice table mechanism, providing comprehensive and high-quality seeds could help fuzzers cover LFS. However, constructing such seeds relies heavily on expert experience to resolve the syscall dependencies. In this paper, we propose SyzGPT, the first kernel fuzzing framework to automatically generate effective seeds for LFS via Large Language Model (LLM). We leverage a dependency-based retrieval-augmented generation (DRAG) method to unlock the potential of LLM and design a series of steps to improve the effectiveness of the generated seeds. First, SyzGPT automatically extracts syscall dependencies from the existing documentation via LLM. Second, SyzGPT retrieves programs from the fuzzing corpus based on the dependencies to construct adaptive context for LLM. Last, SyzGPT periodically generates and repairs seeds with feedback to enrich the fuzzing corpus for LFS. We propose a novel set of evaluation metrics for seed generation in kernel domain. Our evaluation shows that SyzGPT can generate seeds with a high valid rate of 87.84% and can be extended to offline and fine-tuned LLMs. Compared to seven state-of-the-art kernel fuzzers, SyzGPT improves code coverage by 17.73%, LFS coverage by 58.00%, and vulnerability detection by 323.22% on average. Besides, SyzGPT independently discovered 26 unknown kernel bugs (10 are LFS-related), with 11 confirmed.
Zitieren
APA
Zhang, Z., Li, L., Liang, R., & Chen, K. (2025). Unlocking Low Frequency Syscalls in Kernel Fuzzing with Dependency-Based RAG. Proceedings of the ACM on Software Engineering, 2(ISSTA), 848-870. https://doi.org/10.1145/3728913
Vancouver
Zhang Z, Li L, Liang R, Chen K. Unlocking Low Frequency Syscalls in Kernel Fuzzing with Dependency-Based RAG. Proceedings of the ACM on Software Engineering. 2025;2(ISSTA):848-870. doi:10.1145/3728913
BibTeX
@article{Zhang2025,
author = {Zhang, Zhiyu and Li, Longxing and Liang, Ruigang and Chen, Kai},
title = {Unlocking Low Frequency Syscalls in Kernel Fuzzing with Dependency-Based RAG},
journal = {Proceedings of the ACM on Software Engineering},
year = {2025},
volume = {2},
number = {ISSTA},
pages = {848--870},
doi = {10.1145/3728913}
}
EUVIMED