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

CVE-2021-3492: Ubuntu Linux Shiftfs DOS Vulnerability

CVE-2021-3492 is a denial of service flaw in Ubuntu Linux Shiftfs that can lead to kernel memory exhaustion or privilege escalation. This article covers the technical details, affected versions, and mitigation strategies.

Published: March 4, 2026

CVE-2021-3492 Overview

CVE-2021-3492 is a memory handling vulnerability in Shiftfs, an out-of-tree stacking file system included in Ubuntu Linux kernels. The vulnerability stems from improper handling of faults occurring during copy_from_user() operations, which can lead to either a double-free condition or memory not being freed at all. An attacker with local access could exploit this vulnerability to cause a denial of service through kernel memory exhaustion or gain elevated privileges by executing arbitrary code.

Critical Impact

Local attackers can achieve privilege escalation or cause denial of service through memory corruption in the Ubuntu Linux kernel's Shiftfs filesystem component.

Affected Products

  • Canonical Ubuntu Linux (LTS versions)
  • Canonical Ubuntu Linux (standard releases)
  • Systems running Ubuntu kernels with Shiftfs enabled

Discovery Timeline

  • 2021-04-17 - CVE-2021-3492 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2021-3492

Vulnerability Analysis

This vulnerability exists in the Shiftfs stacking file system, which is an Ubuntu-specific kernel extension designed to provide UID/GID shifting capabilities for container workloads. The flaw occurs when the copy_from_user() function encounters a fault during data transfer from user space to kernel space. Under normal conditions, the kernel should handle such faults gracefully by properly managing allocated memory. However, the Shiftfs implementation failed to correctly handle these error conditions.

When a fault occurs during copy_from_user(), the code path can result in two distinct memory corruption scenarios: either memory is freed twice (double-free) or memory that should be freed is never released (memory leak). Both conditions can be triggered by a local attacker with low privileges.

The double-free condition is particularly dangerous as it can lead to use-after-free scenarios, potentially allowing an attacker to corrupt kernel memory structures and execute arbitrary code with kernel privileges. The memory leak scenario, while less immediately severe, can be repeatedly triggered to exhaust kernel memory resources, resulting in system instability or denial of service.

This vulnerability is tracked by the Zero Day Initiative as ZDI-CAN-13562.

Root Cause

The root cause of CVE-2021-3492 lies in improper error handling within the Shiftfs file system code. When copy_from_user() fails to complete successfully due to a page fault or invalid memory access, the error handling logic does not properly track the state of allocated memory buffers. This results in either attempting to free the same memory region multiple times or losing references to allocated memory entirely.

The vulnerability is classified under CWE-401 (Missing Release of Memory after Effective Lifetime), though the double-free aspect could also be categorized as CWE-415.

Attack Vector

The attack vector is local, requiring an attacker to have low-privileged access to a vulnerable Ubuntu Linux system. The attacker can exploit this vulnerability by:

  1. Creating conditions that trigger the vulnerable Shiftfs code path
  2. Causing copy_from_user() to fault during data transfer operations
  3. Leveraging the resulting memory corruption for privilege escalation or denial of service

The exploitation mechanism involves manipulating memory states to either trigger the double-free for code execution or repeatedly cause memory leaks to exhaust system resources.

The vulnerability can be exploited by crafting specific operations against the Shiftfs file system that cause faults during user-to-kernel memory copy operations. When copy_from_user() fails, the improper error handling leads to memory corruption conditions that an attacker can leverage for privilege escalation or system denial of service. For detailed technical analysis, refer to the Zero Day Initiative Advisory and the OpenWall security discussion.

Detection Methods for CVE-2021-3492

Indicators of Compromise

  • Unexpected kernel memory consumption or system memory exhaustion
  • Kernel panic or system crashes related to memory allocation failures
  • Suspicious activity involving Shiftfs mount operations or container workloads
  • Kernel oops messages referencing Shiftfs or copy_from_user() failures

Detection Strategies

  • Monitor kernel logs for Shiftfs-related errors or memory corruption warnings
  • Implement auditd rules to track Shiftfs mount and unmount operations
  • Deploy kernel memory integrity monitoring to detect double-free exploitation attempts
  • Use SentinelOne's behavioral AI to identify privilege escalation attempts following Shiftfs operations

Monitoring Recommendations

  • Enable kernel memory debugging options such as KASAN (Kernel Address Sanitizer) on development systems
  • Configure memory usage alerts to detect gradual memory exhaustion attacks
  • Monitor for unusual process privilege changes that may indicate successful exploitation
  • Implement container workload monitoring for abnormal Shiftfs usage patterns

How to Mitigate CVE-2021-3492

Immediate Actions Required

  • Apply the security updates provided in Ubuntu Security Notice USN-4917-1
  • If immediate patching is not possible, consider disabling Shiftfs if not required for operations
  • Restrict local system access to trusted users only
  • Monitor systems for signs of exploitation attempts

Patch Information

Ubuntu has released security patches to address this vulnerability. The fixes are available through the following kernel commits:

  • Kernel commit 25c891a949bf918b59cbc6e4932015ba4c35c333
  • Kernel commit 8fee52ab9da87d82bc6de9ebb3480fff9b4d53e6

For systems using Canonical's Livepatch service, a kernel live patch is available as documented in the Kernel Live Patch Security Notice LSN-0077-1.

Workarounds

  • Disable Shiftfs kernel module if not required: sudo modprobe -r shiftfs
  • Blacklist the Shiftfs module to prevent automatic loading
  • Implement strict container runtime configurations that do not rely on Shiftfs
  • Limit local user access and enforce principle of least privilege
bash
# Disable and blacklist Shiftfs module
sudo modprobe -r shiftfs
echo "blacklist shiftfs" | sudo tee /etc/modprobe.d/blacklist-shiftfs.conf
sudo update-initramfs -u

# Verify module is not loaded
lsmod | grep shiftfs

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

  • Vulnerability Details
  • TypeDOS

  • Vendor/TechUbuntu Linux

  • SeverityHIGH

  • CVSS Score7.8

  • EPSS Probability24.44%

  • 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-401
  • Technical References
  • Packet Storm Security Notice

  • OpenWall Mailing List Discussion

  • Zero Day Initiative Advisory
  • Vendor Resources
  • Ubuntu Kernel Commit Update

  • Ubuntu Kernel Commit Update

  • Ubuntu Security Notice
  • Related CVEs
  • CVE-2021-3493: Ubuntu Linux Privilege Escalation Flaw

  • CVE-2023-32629: Ubuntu Linux Privilege Escalation Flaw

  • CVE-2023-2640: Ubuntu Linux Privilege Escalation Flaw

  • CVE-2021-3939: Accountsservice Use-After-Free 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