Skip to main content
Cornell University
We gratefully acknowledge support from the Simons Foundation, member institutions, and all contributors. Donate
arxiv logo > cs > arXiv:2405.00078

Help | Advanced Search

arXiv logo
Cornell University Logo

quick links

  • Login
  • Help Pages
  • About

Computer Science > Cryptography and Security

arXiv:2405.00078 (cs)
[Submitted on 30 Apr 2024 (v1), last revised 8 Jan 2025 (this version, v3)]

Title:VeriFence: Lightweight and Precise Spectre Defenses for Untrusted Linux Kernel Extensions

Authors:Luis Gerhorst, Henriette Herzog, Peter Wägemann, Maximilian Ott, Rüdiger Kapitza, Timo Hönig
View a PDF of the paper titled VeriFence: Lightweight and Precise Spectre Defenses for Untrusted Linux Kernel Extensions, by Luis Gerhorst and Henriette Herzog and Peter W\"agemann and Maximilian Ott and R\"udiger Kapitza and Timo H\"onig
View PDF HTML (experimental)
Abstract:High-performance IO demands low-overhead communication between user- and kernel space. This demand can no longer be fulfilled by traditional system calls. Linux's extended Berkeley Packet Filter (BPF) avoids user-/kernel transitions by just-in-time compiling user-provided bytecode and executing it in kernel mode with near-native speed. To still isolate BPF programs from the kernel, they are statically analyzed for memory- and type-safety, which imposes some restrictions but allows for good expressiveness and high performance. However, to mitigate the Spectre vulnerabilities disclosed in 2018, defenses which reject potentially-dangerous programs had to be deployed. We find that this affects 31% to 54% of programs in a dataset with 844 real-world BPF programs from popular open-source projects. To solve this, users are forced to disable the defenses to continue using the programs, which puts the entire system at risk.
To enable secure and expressive untrusted Linux kernel extensions, we propose VeriFence, an enhancement to the kernel's Spectre defenses that reduces the number of BPF application programs rejected from 54% to zero. We measure VeriFence's overhead for all mainstream performance-sensitive applications of BPF (i.e., event tracing, profiling, and packet processing) and find that it improves significantly upon the status-quo where affected BPF programs are either unusable or enable transient execution attacks on the kernel.
Comments: RAID'24
Subjects: Cryptography and Security (cs.CR); Operating Systems (cs.OS)
MSC classes: 68M25
ACM classes: D.4.6
Cite as: arXiv:2405.00078 [cs.CR]
  (or arXiv:2405.00078v3 [cs.CR] for this version)
  https://doi.org/10.48550/arXiv.2405.00078
arXiv-issued DOI via DataCite
Related DOI: https://doi.org/10.1145/3678890.3678907
DOI(s) linking to related resources

Submission history

From: Luis Gerhorst [view email]
[v1] Tue, 30 Apr 2024 12:34:23 UTC (390 KB)
[v2] Thu, 25 Jul 2024 08:21:42 UTC (296 KB)
[v3] Wed, 8 Jan 2025 17:43:32 UTC (4,269 KB)
Full-text links:

Access Paper:

    View a PDF of the paper titled VeriFence: Lightweight and Precise Spectre Defenses for Untrusted Linux Kernel Extensions, by Luis Gerhorst and Henriette Herzog and Peter W\"agemann and Maximilian Ott and R\"udiger Kapitza and Timo H\"onig
  • View PDF
  • HTML (experimental)
  • TeX Source
  • Other Formats
license icon view license
Current browse context:
cs
< prev   |   next >
new | recent | 2024-05
Change to browse by:
cs.CR
cs.OS

References & Citations

  • NASA ADS
  • Google Scholar
  • Semantic Scholar
a export BibTeX citation Loading...

BibTeX formatted citation

×
Data provided by:

Bookmark

BibSonomy logo Reddit logo

Bibliographic and Citation Tools

Bibliographic Explorer (What is the Explorer?)
Connected Papers (What is Connected Papers?)
Litmaps (What is Litmaps?)
scite Smart Citations (What are Smart Citations?)

Code, Data and Media Associated with this Article

alphaXiv (What is alphaXiv?)
CatalyzeX Code Finder for Papers (What is CatalyzeX?)
DagsHub (What is DagsHub?)
Gotit.pub (What is GotitPub?)
Hugging Face (What is Huggingface?)
Papers with Code (What is Papers with Code?)
ScienceCast (What is ScienceCast?)

Demos

Replicate (What is Replicate?)
Hugging Face Spaces (What is Spaces?)
TXYZ.AI (What is TXYZ.AI?)

Recommenders and Search Tools

Influence Flower (What are Influence Flowers?)
CORE Recommender (What is CORE?)
  • Author
  • Venue
  • Institution
  • Topic

arXivLabs: experimental projects with community collaborators

arXivLabs is a framework that allows collaborators to develop and share new arXiv features directly on our website.

Both individuals and organizations that work with arXivLabs have embraced and accepted our values of openness, community, excellence, and user data privacy. arXiv is committed to these values and only works with partners that adhere to them.

Have an idea for a project that will add value for arXiv's community? Learn more about arXivLabs.

Which authors of this paper are endorsers? | Disable MathJax (What is MathJax?)
  • About
  • Help
  • contact arXivClick here to contact arXiv Contact
  • subscribe to arXiv mailingsClick here to subscribe Subscribe
  • Copyright
  • Privacy Policy
  • Web Accessibility Assistance
  • arXiv Operational Status
    Get status notifications via email or slack