LDBF: Deep Exploration of eBPF Runtime via LLM-Driven Program Generation and Adaptive Context Orchestration
Yinhao Hu, Kaiyan Mei, Zeyu Sun, Quan Sun, Dongliang Mu, Yuan Li, Chao Zhang
Abstract
Extended Berkeley Packet Filter (eBPF) substantially enlarges the Linux kernel attack surface by executing user-supplied programs in kernel space. While prior efforts have intensively studied the static eBPF verifier, the dynamic eBPF runtime remains insufficiently tested. Fuzzing the eBPF runtime is challenging for two reasons: (i) generating diverse programs that satisfy the verifier's strict semantic and dependency constraints, and (ii) constructing compatible yet diverse execution contexts (e.g., attach points) so that the same verifier-accepted program can be executed under multiple contexts to trigger different runtime behaviors. Existing kernel fuzzers and eBPF-specific fuzzers struggle to achieve both of them. We present LDBF, a runtime-oriented fuzzing framework that decouples probabilistic eBPF program synthesis from deterministic context orchestration. First, LDBF leverages extracted BPF domain knowledge and an LLM-guided synthesis pipeline with a compiler–verifier feedback loop to produce diverse, verifier-accepted eBPF programs. Second, it introduces an adaptive orchestration mechanism that infers each seed program's required resources and deterministically synthesizes the corresponding runtime environment to maximize triggerability and runtime coverage. We evaluate LDBF on recent Linux kernels. Compared to state-of-the-art eBPF runtime fuzzers, LDBF increases eBPF component coverage by 27.3% on average (23.2%–30.4% over individual baselines) and discovers more than 30 new vulnerabilities.
Ask Lune
Know where this paper stands in minutes, not an afternoon.
Lune can read the top-tier papers that cite it and the ones closest to it, and tells you what it claims, what came after and where it falls short, each point cited to the paper it comes from. No skimming, no AI slop.
Related papers
- BRF: Fuzzing the eBPF RuntimeHsin-Wei Hung, Ardalan Amiri SaniFSE 2024 · 8 citations
- SoK: Challenges and Paths Toward Memory Safety for eBPFKaiming Huang, Mathias Payer, Zhiyun Qian, Jack Sampson et al.S&P 2025
- VEP: A Two-stage Verification Toolchain for Full eBPF ProgrammabilityXiwei Wu, Yueyang Feng, Tianyi Huang, Xiaoyang Lu et al.NSDI 2025 · 8 citations
- A Flow-Sensitive Refinement Type System for Verifying eBPF ProgramsAmeer Hamza, Lucas Zavalía, Arie Gurfinkel, Jorge A. Navas et al.OOPSLA 2025 · 1 citation
- Verifying the Verifier: eBPF Range Analysis VerificationHarishankar Vishwanathan, Matan Shachnai, Srinivas Narayana, Santosh NagarakatteCAV 2023 · 37 citations
