EPF: Evil Packet Filter
Di Jin, Vaggelis Atlidakis, Vasileios P. Kemerlis
Abstract
The OS kernel is at the forefront of a system's security. Therefore, its own security is crucial for the correctness and integrity of user applications. With a plethora of bugs continuously discovered in OS kernel code, defenses and mitigations are essential for practical kernel security. One important defense strategy is to isolate user-controlled memory from kernel-accessible memory, in order to mitigate attacks like ret2usr and ret2dir. We present EPF (Evil Packet Filter): a new method for bypassing various (both deployed and proposed) kernel isolation techniques by abusing the BPF infrastructure of the Linux kernel: i.e., by leveraging BPF code, provided by unprivileged users/programs, as attack payloads. We demonstrate two different EPF instances, namely BPF-Reuse and BPF-ROP, which utilize malicious BPF payloads to mount privilege escalation attacks in both 32-and 64-bit x86 platforms. We also present the design, implementation, and evaluation of a set of defenses to enforce the isolation between BPF instructions and benign kernel data, and the integrity of BPF program execution, effectively providing protection against EPF-based attacks. Our implemented defenses show minimal overhead (< 3%) in BPF-heavy tasks.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
12 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Prefetch Side-Channel Attacks: Bypassing SMAP and Kernel ASLR cites Breaking Kernel Address Space Layout Randomization with Intel TSX
- Breaking Kernel Address Space Layout Randomization with Intel TSX cites Prefetch Side-Channel Attacks: Bypassing SMAP and Kernel ASLR
- FUZE: Towards Facilitating Exploit Generation for Kernel Use-After-Free Vulnerabilities cites Prefetch Side-Channel Attacks: Bypassing SMAP and Kernel ASLR
- FUZE: Towards Facilitating Exploit Generation for Kernel Use-After-Free Vulnerabilities cites Breaking Kernel Address Space Layout Randomization with Intel TSX
- HIVE: A Hardware-assisted Isolated Execution Environment for eBPF on AArch64 cites Spectre Attacks: Exploiting Speculative Execution
- HIVE: A Hardware-assisted Isolated Execution Environment for eBPF on AArch64 cites MOAT: Towards Safe BPF Kernel Extension
- MOAT: Towards Safe BPF Kernel Extension cites Specification and verification in the field: Applying formal methods to BPF just-in-time compilers in the Linux kernel
- Revealing the Unstable Foundations of eBPF-Based Kernel Extensions cites MOAT: Towards Safe BPF Kernel Extension
- Revealing the Unstable Foundations of eBPF-Based Kernel Extensions cites Specification and verification in the field: Applying formal methods to BPF just-in-time compilers in the Linux kernel
- Revealing the Unstable Foundations of eBPF-Based Kernel Extensions cites BeeBox: Hardening BPF against Transient Execution Attacks
- PeTAL: Ensuring Access Control Integrity against Data-only Attacks on Linux cites Spectre Attacks: Exploiting Speculative Execution
- Specification and verification in the field: Applying formal methods to BPF just-in-time compilers in the Linux kernel cites Spectre Attacks: Exploiting Speculative Execution
- BeeBox: Hardening BPF against Transient Execution Attacks cites Spectre Attacks: Exploiting Speculative Execution
- BeeBox: Hardening BPF against Transient Execution Attacks cites Specification and verification in the field: Applying formal methods to BPF just-in-time compilers in the Linux kernel
Cited by top-tier papers12
- MOAT: Towards Safe BPF Kernel ExtensionHongyi Lu, Shuai Wang, Yechang Wu, Wanning He et al.USENIX Security 2024 · 18 citations
- BeeBox: Hardening BPF against Transient Execution AttacksDi Jin, Alexander J. Gaidis, Vasileios P. KemerlisUSENIX Security 2024 · 10 citations
- HIVE: A Hardware-assisted Isolated Execution Environment for eBPF on AArch64Peihua Zhang, Chenggang Wu, Xiangyu Meng, Yinqian Zhang et al.USENIX Security 2024 · 8 citations
- PeTAL: Ensuring Access Control Integrity against Data-only Attacks on LinuxJuhee Kim, Jinbum Park, Yoochan Lee, Chengyu Song et al.CCS 2024 · 6 citations
- Revealing the Unstable Foundations of eBPF-Based Kernel ExtensionsShawn Wanxiang Zhong, Jing Liu, Andrea C. Arpaci-Dusseau, Remzi H. Arpaci-DusseauEuroSys 2025 · 4 citations
Builds on10
- Spectre Attacks: Exploiting Speculative ExecutionPaul Kocher, Jann Horn, Anders Fogh, Daniel Genkin et al.S&P 2019 · 2,435 citations
- Prefetch Side-Channel Attacks: Bypassing SMAP and Kernel ASLRDaniel Gruss, Clémentine Maurice, Anders Fogh, Moritz Lipp et al.CCS 2016 · 278 citations
- Breaking Kernel Address Space Layout Randomization with Intel TSXYeongjin Jang, Sangho Lee, Taesoo KimCCS 2016 · 174 citations
- FUZE: Towards Facilitating Exploit Generation for Kernel Use-After-Free VulnerabilitiesWei Wu, Yueqi Chen, Jun Xu, Xinyu Xing et al.USENIX Security 2018 · 124 citations
- Specification and verification in the field: Applying formal methods to BPF just-in-time compilers in the Linux kernelLuke Nelson, Jacob Van Geffen, Emina Torlak, Xi WangOSDI 2020 · 72 citations
Related papers
- SoK: Challenges and Paths Toward Memory Safety for eBPFKaiming Huang, Mathias Payer, Zhiyun Qian, Jack Sampson et al.S&P 2025
- RetSpill: Igniting User-Controlled Data to Burn Away Linux Kernel ProtectionsKyle Zeng, Zhenpeng Lin, Kangjie Lu, Xinyu Xing et al.CCS 2023 · 9 citations
- Enforcing Kernel Security Invariants with Data Flow IntegrityChengyu Song, Byoungyoung Lee, Kangjie Lu, William Harris et al.NDSS 2016 · 141 citations
- Training Solo: On the Limitations of Domain Isolation Against Spectre-v2 AttacksSander Wiebing, Cristiano GiuffridaS&P 2025
- Validating the eBPF Verifier via State EmbeddingHao Sun, Zhendong SuOSDI 2024 · 18 citations
