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
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • 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-31440

CVE-2021-31440: Linux Kernel eBPF Privilege Escalation

CVE-2021-31440 is a privilege escalation vulnerability in Linux Kernel 5.11.15 affecting eBPF program handling. Attackers can execute arbitrary code in kernel context. This article covers technical details, affected versions, impact, and mitigation strategies.

Updated: May 16, 2026

CVE-2021-31440 Overview

CVE-2021-31440 is a local privilege escalation vulnerability in the Linux Kernel 5.11.15 eBPF subsystem. The flaw stems from improper validation of user-supplied extended Berkeley Packet Filter (eBPF) programs prior to execution. A local attacker with the ability to run low-privileged code can leverage this weakness to execute arbitrary code in the context of the kernel. The issue was reported through Trend Micro's Zero Day Initiative as ZDI-CAN-13661 and is tracked under CWE-682: Incorrect Calculation. NetApp shipped multiple firmware and software products containing the affected kernel code, expanding the impact beyond mainline Linux distributions.

Critical Impact

Successful exploitation grants kernel-level code execution, allowing full system compromise from an unprivileged local user account.

Affected Products

  • Linux Kernel 5.11.15
  • NetApp SolidFire Baseboard Management Controller firmware
  • NetApp H-Series (H300S, H410S, H500S, H700S, H300E, H500E, H700E) firmware and Cloud Backup

Discovery Timeline

  • 2021-05-21 - CVE-2021-31440 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2021-31440

Vulnerability Analysis

The vulnerability resides in the eBPF verifier component of the Linux kernel. eBPF allows user-space programs to load bytecode that executes inside the kernel for purposes such as packet filtering, tracing, and observability. Before execution, the verifier must prove that submitted programs are memory-safe and cannot harm the kernel.

In kernel 5.11.15, the verifier performs incorrect calculations when tracking bounds of 32-bit values. The mismatch between the verifier's tracked register state and the actual runtime state allows crafted programs to bypass safety checks. An attacker can use this gap to read and write arbitrary kernel memory, achieving kernel-mode arbitrary code execution from an unprivileged context.

Root Cause

The root cause is an incorrect calculation [CWE-682] in the eBPF verifier's handling of register bounds. The verifier fails to properly propagate 32-bit signed and unsigned bounds during program analysis. As a result, the in-kernel JIT compiler emits code based on a register state that does not reflect runtime reality, enabling out-of-bounds memory access.

Attack Vector

Exploitation requires local code execution with low privileges and the ability to invoke the bpf() syscall. The attacker submits a malicious eBPF program designed to defeat the verifier's bounds tracking. Once loaded, the program manipulates kernel pointers to read or overwrite arbitrary kernel memory, typically targeting credential structures to elevate the calling process to root. On systems where unprivileged eBPF is disabled via kernel.unprivileged_bpf_disabled, the attack surface is significantly reduced. See the Zero Day Initiative Advisory ZDI-21-503 for additional technical context.

Detection Methods for CVE-2021-31440

Indicators of Compromise

  • Unexpected bpf() syscall invocations from non-administrative user accounts or service contexts that do not normally use eBPF.
  • Loaded eBPF programs of type BPF_PROG_TYPE_SOCKET_FILTER or similar originating from unusual processes.
  • Unprivileged processes suddenly executing with uid=0 or capability sets inconsistent with their parent.

Detection Strategies

  • Audit bpf() syscall usage with auditd rules to capture program loads, including the calling UID and program type.
  • Monitor kernel logs for verifier rejections and unusual JIT activity that may indicate exploitation attempts.
  • Correlate process credential changes with prior eBPF program loads to identify privilege escalation chains.

Monitoring Recommendations

  • Centralize host telemetry, including syscall and process lineage data, into a SIEM for cross-host correlation.
  • Alert on any process performing a setuid-equivalent transition without an authorized parent such as sudo or su.
  • Track the value of /proc/sys/kernel/unprivileged_bpf_disabled across the fleet to detect configuration drift.

How to Mitigate CVE-2021-31440

Immediate Actions Required

  • Apply the upstream Linux kernel fix from commit 10bf4e83167c or update to a kernel version that includes it.
  • For NetApp deployments, review and apply guidance in NetApp Security Advisory NTAP-20210706-0003.
  • Inventory all Linux hosts running kernel 5.11.x and prioritize patching systems with shell access for non-administrative users.

Patch Information

The upstream fix is committed to the Linux kernel tree at commit 10bf4e83167cc68595b85fd73bb91e8f2c086e36. The patch corrects the eBPF verifier's handling of 32-bit bounds tracking so that register state during verification matches runtime behavior. Distribution maintainers backported the fix into supported stable kernel branches. NetApp issued advisory NTAP-20210706-0003 covering its affected SolidFire BMC, Cloud Backup, and H-Series firmware products.

Workarounds

  • Disable unprivileged eBPF by setting kernel.unprivileged_bpf_disabled=1 to prevent non-root users from loading eBPF programs.
  • Restrict access to the bpf() syscall using seccomp profiles in container runtimes and systemd units.
  • Limit CAP_BPF and CAP_SYS_ADMIN capabilities to a minimal set of trusted administrative processes.
bash
# Configuration example
# Disable unprivileged eBPF program loading
sudo sysctl -w kernel.unprivileged_bpf_disabled=1
echo 'kernel.unprivileged_bpf_disabled=1' | sudo tee -a /etc/sysctl.d/90-disable-unpriv-bpf.conf

# Verify the setting
sysctl kernel.unprivileged_bpf_disabled

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

  • Vulnerability Details
  • TypePrivilege Escalation

  • Vendor/TechLinux Kernel

  • SeverityHIGH

  • CVSS Score7.0

  • EPSS Probability0.67%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-682
  • Technical References
  • NetApp Security Advisory

  • Zero Day Initiative Advisory
  • Vendor Resources
  • Kernel Commit Reference
  • Related CVEs
  • CVE-2026-43332: Linux Kernel Privilege Escalation Flaw

  • CVE-2026-43344: Linux Kernel Privilege Escalation Flaw

  • CVE-2026-43306: Linux Kernel Privilege Escalation Flaw

  • CVE-2026-43351: Linux Kernel Privilege Escalation Flaw
Default Legacy - Prefooter | 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