Papers › KernelGPT: Enhanced Kernel Fuzzing via Large Language Models

KernelGPT: Enhanced Kernel Fuzzing via Large Language Models

31 Dec 2023arXiv:2401.00563archive 2025-07-28

Chenyuan Yang, Zijie Zhao, Lingming Zhang

Bugs in operating system kernels can affect billions of devices and users all over the world. As a result, a large body of research has been focused on kernel fuzzing, i.e., automatically generating syscall (system call) sequences to detect potential kernel bugs or vulnerabilities. Kernel fuzzing aims to generate valid syscall sequences guided by syscall specifications that define both the syntax and semantics of syscalls. While there has been existing work trying to automate syscall specification generation, this remains largely manual work, and a large number of important syscalls are still uncovered. In this paper, we propose KernelGPT, the first approach to automatically synthesizing syscall specifications via Large Language Models (LLMs) for enhanced kernel fuzzing. Our key insight is that LLMs have seen massive kernel code, documentation, and use cases during pre-training, and thus can automatically distill the necessary information for making valid syscalls. More specifically, KernelGPT leverages an iterative approach to automatically infer the specifications, and further debug and repair them based on the validation feedback. Our results demonstrate that KernelGPT can generate more new and valid specifications and achieve higher coverage than state-of-the-art techniques. So far, by using newly generated specifications, KernelGPT has already detected 24 new unique bugs in Linux kernel, with 12 fixed and 11 assigned with CVE numbers. Moreover, a number of specifications generated by KernelGPT have already been merged into the kernel fuzzer Syzkaller, following the request from its development team.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2401.00563")

Code

Syntology Ran 9 of 17 code samples harvested from 1 repository linked to this paper; 8 have no recorded run. Of those that ran: 9 ran with no contract checked.

By repository: official repository: 17 samples from 1 repository, 9 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

ise-uiuc/kernelgpt officialmentioned in papermentioned on GitHubApache-2.0 report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

17 samples harvested; 9 ran; 0 honoured the contract we drafted; 8 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

9ran
8unverified

Licence: 0 of the 17 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from ise-uiuc/kernelgpt. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

extract_code_block ise-uiuc/kernelgpt/spec-gen/llm_utils.py official repository ran fingerprinted Apache-2.0 (permissive) · cafe4e687de900be · report
extract_ioctl_function_name ise-uiuc/kernelgpt/spec-gen/analyzer/process_output.py official repository ran fingerprinted Apache-2.0 (permissive) · 0d9c3fed9939c48f · report
find_name ise-uiuc/kernelgpt/spec-gen/find_utils.py official repository ran Apache-2.0 (permissive) · 90a14820ad038a07 · report
get_ops_type ise-uiuc/kernelgpt/spec-gen/gen_utils.py official repository ran Apache-2.0 (permissive) · b361d3edf79bea45 · report
get_path_name ise-uiuc/kernelgpt/spec-gen/gen_utils.py official repository ran Apache-2.0 (permissive) · 537535ef80a7376f · report
get_unique_name ise-uiuc/kernelgpt/spec-gen/gen_utils.py official repository ran fingerprinted Apache-2.0 (permissive) · 1765f746170fcd88 · report
is_primitive_type ise-uiuc/kernelgpt/spec-gen/output_spec.py official repository ran Apache-2.0 (permissive) · 24ef7eee66b71029 · report
load_data ise-uiuc/kernelgpt/spec-gen/find_utils.py official repository ran Apache-2.0 (permissive) · 781825a17023e586 · report
path_similarity ise-uiuc/kernelgpt/spec-gen/analyzer/process_output.py official repository ran fingerprinted Apache-2.0 (permissive) · d02df34683e889ea · report
create_shared_linux_with_config ise-uiuc/kernelgpt/spec-eval/run-specs.py official repository unverified Apache-2.0 (permissive) · 5b30bbd5da2cbcae · report
debug_output ise-uiuc/kernelgpt/spec-gen/analyzer/process_output.py official repository unverified Apache-2.0 (permissive) · 2636b92babc3ddd6 · report
find_type ise-uiuc/kernelgpt/spec-gen/find_utils.py official repository unverified Apache-2.0 (permissive) · b1230f5e4e37c060 · report
get_open_str ise-uiuc/kernelgpt/spec-gen/output_spec.py official repository unverified Apache-2.0 (permissive) · bf9453de6b993795 · report
get_shared_linux_with_config ise-uiuc/kernelgpt/spec-eval/run-specs.py official repository unverified Apache-2.0 (permissive) · 34ce1ce60b0c72c6 · report
prepare_linux ise-uiuc/kernelgpt/spec-eval/run-specs.py official repository unverified Apache-2.0 (permissive) · c3570dbd1142e799 · report
query_ollm ise-uiuc/kernelgpt/spec-gen/llm_utils.py official repository unverified Apache-2.0 (permissive) · 5506ea8f95924923 · report
run_eval ise-uiuc/kernelgpt/spec-gen/eval_spec.py official repository unverified Apache-2.0 (permissive) · 4b04b35a66f40278 · report

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections