The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2021-29154

CVE-2021-29154: Linux Kernel BPF JIT RCE Vulnerability

CVE-2021-29154 is a remote code execution flaw in Linux Kernel BPF JIT compilers that allows arbitrary code execution within kernel context. This article covers technical details, affected versions, impact, and mitigation.

Published: February 25, 2026

CVE-2021-29154 Overview

CVE-2021-29154 is a critical vulnerability in the BPF (Berkeley Packet Filter) JIT (Just-In-Time) compilers within the Linux kernel through version 5.11.12. The vulnerability stems from incorrect computation of branch displacements in the x86 architecture BPF JIT compiler, allowing attackers with local access to execute arbitrary code within the kernel context. This affects the files arch/x86/net/bpf_jit_comp.c and arch/x86/net/bpf_jit_comp32.c.

Critical Impact

Local privilege escalation to kernel-level code execution, potentially allowing complete system compromise through BPF program manipulation.

Affected Products

  • Linux Kernel (through version 5.11.12)
  • Fedora 33
  • Debian Linux 9.0
  • NetApp Cloud Backup
  • NetApp HCI Management Node
  • NetApp SolidFire
  • NetApp H-Series firmware and hardware (H300S, H500S, H700S, H300E, H500E, H700E, H410S)

Discovery Timeline

  • April 8, 2021 - CVE-2021-29154 published to NVD
  • November 21, 2024 - Last updated in NVD database

Technical Details for CVE-2021-29154

Vulnerability Analysis

The BPF JIT compiler in the Linux kernel is responsible for translating BPF bytecode into native machine instructions for improved performance. This vulnerability exists because the JIT compiler incorrectly calculates branch displacement values when generating x86 native code from BPF programs.

Branch displacements are offset values used in jump instructions to determine the target address of a branch. When these values are computed incorrectly, the generated machine code may jump to unintended memory locations. An attacker who can craft and load a malicious BPF program can exploit this miscalculation to redirect execution flow to attacker-controlled code, achieving arbitrary code execution with kernel privileges.

The vulnerability affects both 32-bit and 64-bit x86 architectures, as evidenced by the impacted files bpf_jit_comp.c (64-bit) and bpf_jit_comp32.c (32-bit). Since BPF programs run within the kernel context, successful exploitation grants the attacker complete control over the system.

Root Cause

The root cause is a command injection vulnerability (CWE-77) in the branch displacement calculation logic within the BPF JIT compilation process. The compiler fails to properly validate or compute the relative offsets for conditional and unconditional branch instructions, leading to incorrect native code generation. This arithmetic error in displacement calculation allows crafted BPF programs to manipulate the generated jump targets.

Attack Vector

The attack requires local access to the target system and the ability to load BPF programs. On many Linux distributions, unprivileged users can load BPF programs by default, making this vulnerability exploitable without elevated privileges initially. The attack flow involves:

  1. An attacker crafts a malicious BPF program with specific instruction sequences designed to trigger the branch displacement miscalculation
  2. The attacker loads the BPF program through the bpf() system call
  3. The kernel JIT compiles the BPF bytecode into native x86 instructions with incorrect branch offsets
  4. When the BPF program executes, the malformed branch instructions redirect execution to attacker-controlled memory
  5. The attacker achieves arbitrary kernel code execution and complete system compromise

The vulnerability mechanism involves the JIT compiler generating incorrect relative offset values for jump instructions. When the BPF program contains specific patterns of conditional branches, the displacement calculation overflow or underflow results in jumps that target memory outside the intended BPF program boundaries. Attackers can leverage this to redirect control flow to carefully positioned shellcode or ROP gadgets. For detailed technical analysis, refer to the OpenWall OSS-Security Discussion.

Detection Methods for CVE-2021-29154

Indicators of Compromise

  • Unusual BPF program loading activity from unprivileged users or unexpected processes
  • Kernel crash logs or oops messages indicating memory corruption in BPF-related code paths
  • Suspicious activity following BPF program execution, such as privilege escalation or unauthorized kernel module loading
  • Audit logs showing excessive or anomalous bpf() system calls

Detection Strategies

  • Monitor bpf() system calls using auditd rules to detect suspicious BPF program loading activity
  • Deploy kernel integrity monitoring solutions to detect unauthorized kernel memory modifications
  • Implement SentinelOne's behavioral analysis to identify exploitation attempts targeting the BPF subsystem
  • Review system logs for kernel warnings or errors related to JIT compilation failures

Monitoring Recommendations

  • Enable kernel auditing for BPF-related operations with rules targeting bpf system calls
  • Configure alerts for unexpected privilege escalation events, especially those following BPF activity
  • Monitor for processes attempting to load BPF programs that do not typically require BPF functionality
  • Deploy runtime application self-protection (RASP) solutions to detect kernel exploitation attempts

How to Mitigate CVE-2021-29154

Immediate Actions Required

  • Update the Linux kernel to a patched version that addresses the branch displacement calculation error
  • Disable unprivileged BPF by setting kernel.unprivileged_bpf_disabled=1 via sysctl
  • Restrict BPF program loading capabilities using seccomp filters or SELinux/AppArmor policies
  • Apply vendor-specific patches from Debian, Fedora, or NetApp as applicable to your environment

Patch Information

The Linux kernel maintainers have released patches addressing this vulnerability. The fixes are available through the following commits:

  • Linux Kernel Commit 26f55a5 - Primary fix for the branch displacement calculation
  • Linux Kernel Commit e4d4d45 - Additional corrections

Distribution-specific advisories are available from Debian LTS, Fedora, and NetApp Security Advisory. A Kernel Live Patch is also available for systems requiring minimal downtime.

Workarounds

  • Disable unprivileged BPF access system-wide using the sysctl parameter below
  • Disable the BPF JIT compiler entirely by setting net.core.bpf_jit_enable=0 (impacts performance)
  • Use container isolation with restricted capabilities that prevent BPF program loading
  • Implement mandatory access control (MAC) policies to limit which processes can invoke BPF operations
bash
# Configuration example
# Disable unprivileged BPF access (recommended mitigation)
echo "kernel.unprivileged_bpf_disabled=1" >> /etc/sysctl.d/99-bpf-hardening.conf

# Optionally disable BPF JIT compiler entirely (performance impact)
echo "net.core.bpf_jit_enable=0" >> /etc/sysctl.d/99-bpf-hardening.conf

# Apply changes immediately
sysctl -p /etc/sysctl.d/99-bpf-hardening.conf

# Verify settings
sysctl kernel.unprivileged_bpf_disabled
sysctl net.core.bpf_jit_enable

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechLinux

  • SeverityHIGH

  • CVSS Score7.8

  • EPSS Probability0.04%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-77
  • Technical References
  • Packet Storm Security Notice

  • Linux Kernel Commit 26f55a5

  • Linux Kernel Commit e4d4d45

  • Debian LTS Security Announcement

  • Debian LTS Security Announcement

  • Fedora Package Announcement

  • Hacker News Discussion

  • NetApp Security Advisory

  • Oracle July 2022 Security Alert
  • Vendor Resources
  • OpenWall OSS-Security Discussion
  • Related CVEs
  • CVE-2026-22317: Command Injection RCE Vulnerability

  • CVE-2020-24588: IEEE 802.11 Wi-Fi Standard RCE Vulnerability

  • CVE-2020-24586: IEEE 802.11 Wi-Fi Standard RCE Vulnerability

  • CVE-2026-23386: Linux Kernel Buffer Overflow Vulnerability
Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English