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

CVE-2021-3491: Linux Kernel io_uring RCE Vulnerability

CVE-2021-3491 is a remote code execution flaw in Linux Kernel's io_uring subsystem that allows heap overflow through buffer operations. This article covers the technical details, affected versions, and mitigation steps.

Updated: May 16, 2026

CVE-2021-3491 Overview

CVE-2021-3491 is a heap overflow vulnerability in the Linux kernel io_uring subsystem. The PROVIDE_BUFFERS operation failed to enforce the MAX_RW_COUNT limit, which allowed negative length values to propagate into mem_rw when reading /proc/<PID>/mem. A local attacker can use this primitive to corrupt kernel heap memory and achieve arbitrary code execution in kernel context. The flaw was introduced in commit ddf0322db79c (io_uring: add IORING_OP_PROVIDE_BUFFERS) in v5.7-rc1 and fixed in commit d1f82808877b in v5.13-rc1, with backports to v5.12.4, v5.11.21, and v5.10.37.

Critical Impact

A local, low-privileged attacker can trigger a kernel heap overflow leading to arbitrary code execution and full system compromise.

Affected Products

  • Linux Kernel versions v5.7-rc1 through v5.13-rc1 (before commit d1f82808877b)
  • Linux Kernel stable branches prior to v5.10.37, v5.11.21, and v5.12.4
  • Canonical Ubuntu Linux 20.04 LTS, 20.10, and 21.04

Discovery Timeline

  • 2021-05-11 - Vulnerability disclosed on the OpenWall oss-security mailing list
  • 2021-06-04 - CVE-2021-3491 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2021-3491

Vulnerability Analysis

The io_uring subsystem provides an asynchronous I/O interface that lets userspace submit operations via shared ring buffers. One supported operation, IORING_OP_PROVIDE_BUFFERS, registers pre-allocated buffers the kernel can later use for reads and other operations. The handler accepted a user-controlled length without truncating it against the MAX_RW_COUNT limit applied elsewhere in the kernel I/O path.

When the registered buffer is subsequently consumed by a read against /proc/<PID>/mem, the mem_rw function receives the unchecked length. The length is interpreted as a signed integer, so values exceeding MAX_RW_COUNT become negative when cast. This signedness confusion combined with the missing bounds check results in writes far outside the allocated buffer.

The out-of-bounds write corrupts adjacent kernel heap objects, enabling local privilege escalation [CWE-787] and incorrect resource sizing [CWE-131]. Successful exploitation grants ring 0 code execution.

Root Cause

The io_provide_buffers handler did not validate or truncate the per-buffer length supplied through the submission queue entry. Other kernel read and write paths sanitize lengths against MAX_RW_COUNT, but this enforcement was missing in the io_uring provide-buffers path. The fix in commit d1f82808877b truncates lengths larger than MAX_RW_COUNT before storing them in the buffer descriptor.

Attack Vector

Exploitation requires local access and the ability to invoke io_uring system calls, which any unprivileged user can do on a default configuration. The attacker submits a PROVIDE_BUFFERS operation specifying an oversized length, opens /proc/self/mem, and issues a read that consumes the registered buffer. The kernel performs an out-of-bounds copy into adjacent heap memory. Reliable exploitation typically grooms the SLUB allocator to place a target object next to the overflowed buffer. Refer to the OpenWall OSS-Security Discussion and Zero Day Initiative Advisory ZDI-21-589 for additional technical detail.

Detection Methods for CVE-2021-3491

Indicators of Compromise

  • Unexpected kernel oops, panic, or BUG: KASAN messages referencing mem_rw, io_uring, or SLUB heap corruption in /var/log/kern.log or dmesg output.
  • Unprivileged processes invoking io_uring_setup, io_uring_register, and reads against /proc/<PID>/mem in close succession.
  • Sudden privilege transitions where an unprivileged user gains UID 0 without a corresponding sudo, su, or SUID execution audit record.

Detection Strategies

  • Enable Linux audit rules for the io_uring_setup, io_uring_enter, and io_uring_register syscalls, then alert on calls from non-allowlisted binaries.
  • Monitor process-level access to /proc/*/mem originating from processes that also hold active io_uring instances.
  • Deploy eBPF or kernel-level telemetry to track abnormal sequences of PROVIDE_BUFFERS submissions followed by /proc/<PID>/mem reads.

Monitoring Recommendations

  • Centralize kernel logs and alert on kernel crash signatures involving io_uring or mem_rw symbols.
  • Track installed kernel versions across the fleet and flag hosts running kernels between v5.7-rc1 and the patched stable releases.
  • Correlate process-execution telemetry with subsequent privilege escalations to surface exploitation attempts.

How to Mitigate CVE-2021-3491

Immediate Actions Required

  • Update the Linux kernel to v5.10.37, v5.11.21, v5.12.4, or v5.13-rc1 or later, which include commit d1f82808877b.
  • Apply distribution patches such as Ubuntu Security Notice USN-4949-1 and Ubuntu Security Notice USN-4950-1 and reboot affected hosts.
  • Inventory all multi-tenant systems, container hosts, and developer workstations running kernels in the vulnerable range and prioritize them for patching.

Patch Information

The upstream fix is Linux Kernel commit d1f82808877b, which truncates lengths larger than MAX_RW_COUNT in the io_uring provide-buffers path. Vendor advisories include the NetApp Security Advisory NTAP-20210716-0004 and the Ubuntu USN notices above.

Workarounds

  • Restrict access to the io_uring subsystem by setting the kernel.io_uring_disabled sysctl where supported, or by blocking the io_uring_setup syscall via seccomp profiles for untrusted workloads.
  • Apply a seccomp-bpf filter to container runtimes (Docker, containerd, Kubernetes) that denies io_uring syscalls until kernels are patched.
  • Limit local shell access on multi-user systems and remove unnecessary local accounts to reduce the attack surface.
bash
# Configuration example: disable io_uring via sysctl on supported kernels
sudo sysctl -w kernel.io_uring_disabled=2
echo 'kernel.io_uring_disabled=2' | sudo tee /etc/sysctl.d/99-disable-iouring.conf

# Verify kernel version contains the fix
uname -r

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 Score8.8

  • EPSS Probability0.06%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-131

  • CWE-787
  • Technical References
  • NetApp Security Advisory

  • Ubuntu Security Notice USN-4949-1

  • Ubuntu Security Notice USN-4950-1

  • Zero Day Initiative Advisory ZDI-21-589
  • Vendor Resources
  • Linux Kernel Commit Update

  • 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-43347: 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