THE LINUX FOUNDATION PROJECTS
Latest Case Study: How Google Uses eBPF to Tailor CPU Scheduling and Optimize Workload Performance

Download the report in PDF format

The Linux kernel’s eBPF subsystem has completed a comprehensive, independent security assessment, resulting in the identification of 25 findings, of which 24 have been closed and fixed upstream. The audit was performed by STAR Labs SG PTE. LTD. for the eBPF Foundation. Independent security audits of this depth are a critical tool for verifying the safety invariants and execution integrity of the eBPF ecosystem within the Linux kernel.

eBPF is deeply integrated into the Linux kernel. The execution subsystem relies on the eBPF verifier to enforce strict safety invariants before bytecode is translated into native instructions by Just-In-Time (JIT) compilers. The assessment confirmed that the verifier functions as the primary security boundary for the entire subsystem.

Scope, Attack Surface, and Methodology

The security assessment evaluated the Linux kernel against code baseline version v7.0-rc5 (Git Commit c369299895a591d96745d6492d4888259b004a9e). The review was conducted over ten weeks and covered the x86-64, arm64, and riscv64 JIT compilers, the core verifier logic (kernel/bpf/verifier.c), and the unprivileged BPF attack surface.

The methodology included manual code review of instruction translation paths, validation of register allocation and stack usage, cross-checking of verifier assumptions, and validation of isolation between privileged and unprivileged execution contexts.

JIT Compilers and Unprivileged BPF Integrity

A central outcome of the review is the validation of the execution backends. The audit confirmed that the x86-64, arm64, and riscv64 JIT implementations are mechanically structured and rely securely on verifier guarantees for program safety. No standalone security vulnerabilities were identified in any of the JIT compiler backends.

Similarly, the unprivileged BPF attack surface—including capability-gated bpf() system calls, seccomp BPF, and classic BPF (cBPF)—was found to be well-constrained with clearly defined security boundaries. No standalone security vulnerabilities were discovered in these user-facing interfaces.

Findings Breakdown and Transparent Disclosure

Sustained cross-analysis between the JIT compilation pipeline and the eBPF verifier identified 25 total findings, primarily rooted in verifier logic where state tracking diverged from runtime execution.

  • High Risk: 16 findings were identified, including 5 verifier bypass vulnerabilities, a race condition leading to out-of-bounds writes (O-HIGH-01), and out-of-bounds access in cgroup local storage (O-HIGH-2). All 16 high-risk findings have been closed and fixed upstream.
  • Medium Risk: 5 findings were identified, including a kernel memory leak (V-MED-07), a kernel pointer leak (V-MED-08), and a Use-After-Free (O-MED-3). Four are fixed upstream. One finding (V-MED-08) remains open as a tracking finding for an exploitation technique, though its prerequisite register invariant bug has already been resolved upstream.
  • Low Risk: 4 findings were identified, including a denial-of-service affecting verifier behavior (V-LOW-09) and an arm64 hardware BTI incompatibility (J-LOW-01). All 4 low-risk findings are closed and fixed upstream.

 

No critical-risk or informational findings were identified.

Attribution and Governance

This engagement brought together the STAR Labs SG PTE. LTD. research team and the eBPF Foundation. The audit was authored and researched by Muhammad Ramdhan Alifa, Billy Jheng Bing Jhong, Bruce Chen Yu-Jen, Zafir Taufik, Shi Weiming, Đỗ Mạnh Dũng, Damian Ong, and Jacob Soo.

Frequently Asked Questions

Which kernel baseline was audited?

The audit assessed Linux kernel version v7.0-rc5 (Commit c369299895a591d96745d6492d4888259b004a9e).

 

Are there any critical unpatched vulnerabilities?

No critical-risk findings were identified during the assessment. Of the 25 total findings, 24 have been fixed upstream, and the remaining open finding relies on a prerequisite bug that is already patched.

 

Where can I find the full technical details?

The full findings, root cause analyses, and proof-of-concept steps are publicly detailed in the “Linux eBPF Security Assessment For eBPF Foundation” report.