Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
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-33909

CVE-2021-33909: Linux Kernel Privilege Escalation Flaw

CVE-2021-33909 is a privilege escalation vulnerability in the Linux Kernel that allows unprivileged users to gain root access through integer overflow. This article covers technical details, affected versions, and mitigations.

Published: February 25, 2026

CVE-2021-33909 Overview

CVE-2021-33909, dubbed "Sequoia," is a critical integer overflow vulnerability in the Linux kernel's fs/seq_file.c component that affects kernel versions 3.16 through 5.13.x before 5.13.4. This vulnerability allows an unprivileged local user to achieve root privilege escalation through improper restriction of seq buffer allocations, leading to an out-of-bounds write condition.

The vulnerability exists in the sequential file interface implementation within the Linux kernel filesystem layer. When exploited, an attacker with local access can trigger an integer overflow during seq buffer allocation operations, ultimately corrupting kernel memory and gaining elevated privileges.

Critical Impact

Unprivileged local users can exploit this integer overflow vulnerability to escalate privileges to root, compromising complete system integrity across affected Linux kernel versions spanning nearly a decade of releases.

Affected Products

  • Linux Kernel versions 3.16 through 5.13.x (before 5.13.4)
  • Fedora 34
  • Debian Linux 9.0 and 10.0
  • NetApp HCI Management Node
  • NetApp SolidFire
  • Oracle Communications Session Border Controller (versions 8.2, 8.3, 8.4, 9.0)
  • SonicWall SMA1000 Firmware

Discovery Timeline

  • July 20, 2021 - CVE-2021-33909 published to NVD
  • November 21, 2024 - Last updated in NVD database

Technical Details for CVE-2021-33909

Vulnerability Analysis

The Sequoia vulnerability resides in the fs/seq_file.c file, which implements the sequential file interface used extensively throughout the Linux kernel for reading data from /proc and other virtual filesystems. The core issue stems from inadequate bounds checking when allocating seq buffers, allowing attackers to trigger an integer overflow condition.

When a user creates an extremely deep directory structure and then reads from certain /proc entries (such as /proc/self/mountinfo), the kernel attempts to allocate increasingly larger seq buffers to accommodate the lengthy path information. Without proper size validation, the allocation size can overflow, resulting in a smaller-than-expected buffer being allocated. Subsequent write operations then exceed the buffer boundaries, causing out-of-bounds memory corruption.

This memory corruption can be weaponized to overwrite critical kernel data structures, enabling privilege escalation from an unprivileged user to root. The vulnerability is particularly dangerous because it has existed in the kernel codebase since version 3.16, released in 2014, meaning it affects a substantial portion of deployed Linux systems.

Root Cause

The root cause is an integer overflow vulnerability (CWE-190) in the seq buffer allocation logic within fs/seq_file.c. The kernel failed to validate that requested buffer sizes did not exceed MAX_RW_COUNT before attempting allocation. When extremely large sizes are requested, the allocation size wraps around due to integer overflow, resulting in a buffer that is too small for the intended data. This allows subsequent operations to write beyond the allocated buffer boundaries, corrupting adjacent kernel memory.

Attack Vector

This is a local attack vector that requires an unprivileged user account on the target system. The attack methodology involves:

  1. Creating an extremely deep nested directory structure (approximately 1GB total path length)
  2. Mounting bind mounts to create extensive path entries
  3. Reading from /proc/self/mountinfo or similar seq_file interfaces
  4. Triggering the integer overflow during buffer allocation
  5. Exploiting the out-of-bounds write to corrupt kernel memory structures
  6. Achieving root privilege escalation

The attack requires local access but no special privileges, making it a significant threat to multi-tenant environments and systems where users have shell access.

c
// Security patch - seq_file: disallow extremely large seq buffer allocations
// Source: https://github.com/torvalds/linux/commit/8cae8cd89f05f6de223d63e6d15e31c8ba9cf53b
 
static void *seq_buf_alloc(unsigned long size)
{
+	if (unlikely(size > MAX_RW_COUNT))
+		return NULL;
+
	return kvmalloc(size, GFP_KERNEL_ACCOUNT);
}

The patch adds a simple bounds check to prevent allocation requests exceeding MAX_RW_COUNT, effectively mitigating the integer overflow condition before it can occur.

Detection Methods for CVE-2021-33909

Indicators of Compromise

  • Unusually deep directory structures created on the filesystem (paths exceeding normal application requirements)
  • Abnormal memory allocation patterns in kernel logs related to seq_file operations
  • Processes accessing /proc/self/mountinfo with excessive read operations
  • Evidence of bind mount abuse creating artificially long path entries
  • Kernel crash dumps or oops messages referencing seq_file.c or seq buffer operations

Detection Strategies

  • Monitor for the creation of extremely deep directory hierarchies that deviate from normal system behavior
  • Implement file system auditing to detect rapid creation of nested directories by unprivileged users
  • Deploy kernel-level monitoring to detect anomalous seq_file buffer allocation requests
  • Utilize SentinelOne's behavioral AI to identify exploitation patterns associated with privilege escalation attempts

Monitoring Recommendations

  • Enable comprehensive audit logging for filesystem operations, particularly mkdir and mount syscalls
  • Monitor /proc/self/mountinfo access patterns for unusual frequency or volume
  • Track kernel memory allocation events for signs of overflow conditions
  • Review system logs for segmentation faults or kernel panics that may indicate exploitation attempts
  • Deploy endpoint detection and response (EDR) solutions capable of detecting kernel-level exploitation

How to Mitigate CVE-2021-33909

Immediate Actions Required

  • Update Linux kernel to version 5.13.4 or later, which contains the security fix
  • Apply vendor-specific patches for affected distributions (Debian, Fedora, etc.)
  • Restrict shell access for unprivileged users where possible until patching is complete
  • Consider implementing kernel live patching solutions for environments requiring minimal downtime
  • Review and audit systems for evidence of exploitation before patching

Patch Information

The vulnerability was addressed in Linux kernel version 5.13.4. The fix (commit 8cae8cd89f05f6de223d63e6d15e31c8ba9cf53b) adds a bounds check in the seq_buf_alloc() function to prevent allocation sizes exceeding MAX_RW_COUNT. Vendor-specific patches are available from multiple sources:

  • Linux Kernel ChangeLog 5.13.4
  • GitHub Commit on Linux
  • Debian Security Advisory DSA-4941
  • NetApp Security Advisory NTAP-20210819-0004
  • SonicWall Vulnerability SNWLID-2022-0015

Workarounds

  • Restrict unprivileged user access to shell accounts on affected systems
  • Implement filesystem quotas to limit the number of inodes and directory depth per user
  • Use Linux Security Modules (AppArmor, SELinux) to restrict access to sensitive /proc entries
  • Consider deploying kernel live patches from vendors like Canonical or Red Hat for systems that cannot be immediately rebooted
  • Monitor and limit bind mount operations through system policy configuration
bash
# Verify current kernel version
uname -r

# Check if system is vulnerable (kernel < 5.13.4)
# Update kernel on Debian/Ubuntu
sudo apt update && sudo apt upgrade linux-image-generic

# Update kernel on RHEL/CentOS
sudo yum update kernel

# Verify patch application
dmesg | grep -i seq_file

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

  • EPSS Probability1.39%

  • 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-190
  • Technical References
  • Packet Storm Analysis

  • Packet Storm Security Notice LSN-0079

  • Packet Storm Security Notice LSN-0081

  • Packet Storm Security Notice LSN-0083

  • OpenWall OSS Security Update

  • OpenWall OSS Security Announcement

  • OpenWall OSS Security Update

  • OpenWall OSS Security Announcement

  • OpenWall OSS Security Update

  • Debian LTS Announcement July 2021

  • Debian LTS Announcement July 2021

  • Debian LTS Announcement July 2021

  • Fedora Package Announcement

  • SonicWall Vulnerability SNWLID-2022-0015

  • NetApp Security Advisory NTAP-20210819-0004

  • Debian Security Advisory DSA-4941

  • OpenWall OSS Security Update
  • Vendor Resources
  • Linux Kernel ChangeLog 5.13.4

  • GitHub Commit on Linux

  • Oracle Security Alert January 2022
  • Related CVEs
  • CVE-2026-31413: Linux Kernel BPF Privilege Escalation

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

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

  • CVE-2026-23438: 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