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-3490

CVE-2021-3490: Linux Kernel eBPF ALU32 RCE Vulnerability

CVE-2021-3490 is a remote code execution flaw in Linux Kernel eBPF ALU32 bounds tracking that allows attackers to execute arbitrary code. This post explains its impact, affected versions, and mitigation steps.

Published: February 25, 2026

CVE-2021-3490 Overview

CVE-2021-3490 is a critical vulnerability in the Linux kernel's eBPF (extended Berkeley Packet Filter) subsystem that affects ALU32 bounds tracking for bitwise operations. The vulnerability occurs when the kernel verifier fails to properly update 32-bit bounds during AND, OR, and XOR operations, allowing attackers to manipulate eBPF programs to perform out-of-bounds reads and writes in kernel memory. This flaw can be exploited by a local attacker with unprivileged access to load eBPF programs to achieve arbitrary code execution with elevated privileges.

Critical Impact

Local privilege escalation vulnerability allowing unprivileged users to gain root access through eBPF program manipulation, enabling complete system compromise.

Affected Products

  • Linux Kernel versions 5.7-rc1 through 5.12.3 (AND/OR operations)
  • Linux Kernel versions 5.10-rc1 through 5.12.3 (XOR operation)
  • Canonical Ubuntu Linux 20.04 LTS, 20.10, and 21.04

Discovery Timeline

  • 2021-05-11 - Vulnerability disclosed via Openwall OSS-Security Discussion
  • 2021-06-04 - CVE CVE-2021-3490 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2021-3490

Vulnerability Analysis

This vulnerability resides in the eBPF verifier component of the Linux kernel, specifically within the ALU32 bounds tracking logic. The eBPF verifier is responsible for ensuring that eBPF programs loaded by users cannot harm the kernel or access unauthorized memory regions. The flaw was introduced when explicit ALU32 bounds tracking was added for bitwise operations in commit 3f50f132d840 (kernel 5.7-rc1). The XOR variant was later introduced in commit 2921c90d4718 (kernel 5.10-rc1).

When processing 32-bit bitwise AND, OR, and XOR operations, the verifier incorrectly calculates the resulting bounds of register values. An attacker can craft a malicious eBPF program that exploits this miscalculation to convince the verifier that a register holds a value within safe bounds, when in reality the value can be outside those bounds at runtime. This discrepancy allows the attacker to perform memory accesses that bypass the verifier's safety checks, ultimately enabling out-of-bounds reads and writes in kernel memory space.

Root Cause

The root cause is improper input validation (CWE-20) combined with an out-of-bounds read condition (CWE-125) in the eBPF verifier's bounds tracking logic. When the verifier performs abstract interpretation of 32-bit bitwise operations, it fails to correctly account for how these operations affect the upper and lower bounds of register values. The verifier's model of register states diverges from actual runtime behavior, creating a window for exploitation. This type confusion between the verifier's view and actual register values enables attackers to craft programs that pass verification but violate memory safety guarantees at execution time.

Attack Vector

The attack requires local access and the ability to load eBPF programs. On systems where unprivileged eBPF is enabled (controlled by /proc/sys/kernel/unprivileged_bpf_disabled), any local user can attempt exploitation. The attacker constructs an eBPF program containing carefully crafted 32-bit bitwise operations that exploit the bounds tracking flaw.

The exploitation flow involves:

  1. Loading a malicious eBPF program that passes the flawed verifier checks
  2. Triggering the eBPF program to execute operations that the verifier incorrectly validated
  3. Using the resulting out-of-bounds memory access to read or write arbitrary kernel memory
  4. Leveraging kernel memory corruption to escalate privileges, typically by overwriting credential structures or function pointers

The vulnerability has been documented and analyzed with exploit code available via Packet Storm Exploit Analysis. Additional technical details are available through the Zero Day Initiative Advisory ZDI-21-606.

Detection Methods for CVE-2021-3490

Indicators of Compromise

  • Unusual eBPF program loading activity from unprivileged user accounts
  • Unexpected privilege escalation events or unauthorized root access
  • Kernel panic or system instability following eBPF program execution
  • Anomalous memory access patterns detected in kernel audit logs

Detection Strategies

  • Monitor /proc/sys/kernel/unprivileged_bpf_disabled status and alert if unprivileged eBPF is enabled on production systems
  • Implement kernel auditing to track bpf() syscall invocations by non-root users
  • Deploy endpoint detection solutions capable of identifying eBPF-based privilege escalation attempts
  • Enable BPF audit logging via bpf_jit_enable and bpf_jit_kallsyms sysctl options for forensic analysis

Monitoring Recommendations

  • Configure auditd rules to monitor eBPF program loading: auditctl -a always,exit -F arch=b64 -S bpf
  • Monitor for unexpected processes gaining root privileges without standard authentication
  • Track kernel module loading and unusual kernel memory access patterns
  • Implement file integrity monitoring on critical system binaries and kernel modules

How to Mitigate CVE-2021-3490

Immediate Actions Required

  • Update Linux kernel to patched versions: v5.12.4, v5.11.21, v5.10.37, or v5.13-rc4+
  • Disable unprivileged eBPF by setting /proc/sys/kernel/unprivileged_bpf_disabled to 1 or 2
  • Apply Ubuntu security patches via USN-4949-1 or USN-4950-1
  • Review system logs for any signs of prior exploitation attempts

Patch Information

The vulnerability was fixed via commit 049c4e13714e ("bpf: Fix alu32 const subreg bound tracking on bitwise operations"). The fix properly updates 32-bit bounds when performing bitwise AND, OR, and XOR operations in the eBPF verifier. The patch has been backported to stable kernel releases v5.12.4, v5.11.21, and v5.10.37. Organizations should apply these updates immediately through their standard kernel update procedures. The official patch can be reviewed at the Linux Kernel BPF Commit. Additional vendor-specific patches are available through NetApp Security Advisory for affected NetApp products.

Workarounds

  • Disable unprivileged eBPF access to prevent exploitation by non-root users
  • Apply mandatory access control policies (SELinux/AppArmor) to restrict eBPF capabilities
  • Limit user access to systems running vulnerable kernels until patches are applied
  • Consider kernel lockdown mode on critical systems to restrict kernel modification capabilities
bash
# Disable unprivileged eBPF to mitigate exploitation
echo 1 > /proc/sys/kernel/unprivileged_bpf_disabled

# Make the change persistent across reboots
echo "kernel.unprivileged_bpf_disabled = 1" >> /etc/sysctl.d/99-bpf-hardening.conf
sysctl -p /etc/sysctl.d/99-bpf-hardening.conf

# Verify the setting is applied
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
  • TypeRCE

  • Vendor/TechLinux Kernel

  • SeverityHIGH

  • CVSS Score7.8

  • EPSS Probability3.70%

  • 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-20

  • CWE-125
  • Technical References
  • Packet Storm Exploit Analysis

  • NetApp Security Advisory

  • Ubuntu Security Notice USN-4949-1

  • Ubuntu Security Notice USN-4950-1

  • Zero Day Initiative Advisory ZDI-21-606
  • Vendor Resources
  • Linux Kernel BPF Commit

  • Openwall OSS-Security Discussion
  • Related CVEs
  • CVE-2023-32258: Linux Kernel ksmbd RCE Vulnerability

  • CVE-2023-32257: Linux Kernel ksmbd RCE Vulnerability

  • CVE-2023-32254: Linux Kernel ksmbd RCE Vulnerability

  • CVE-2023-32250: Linux Kernel ksmbd RCE 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