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

CVE-2021-3493: Ubuntu Linux Privilege Escalation Flaw

CVE-2021-3493 is a privilege escalation vulnerability in Canonical Ubuntu Linux kernel's overlayfs implementation that allows attackers to gain elevated privileges. This article covers technical details, affected versions, and mitigations.

Published: February 25, 2026

CVE-2021-3493 Overview

CVE-2021-3493 is a local privilege escalation vulnerability in the Linux kernel's OverlayFS implementation. The vulnerability arises from improper validation of file capabilities with respect to user namespaces when setting file capabilities on files in an underlying file system. Due to the combination of unprivileged user namespaces along with a patch carried in the Ubuntu kernel to allow unprivileged overlay mounts, an attacker could exploit this flaw to gain elevated privileges on affected systems.

Critical Impact

This vulnerability allows local attackers with low privileges to escalate to root-level access on vulnerable Ubuntu Linux systems. It has been actively exploited in the wild and is listed in the CISA Known Exploited Vulnerabilities catalog.

Affected Products

  • Canonical Ubuntu Linux LTS versions
  • Canonical Ubuntu Linux (non-LTS versions)
  • Ubuntu Linux systems with unprivileged user namespaces enabled

Discovery Timeline

  • 2021-04-17 - CVE-2021-3493 published to NVD
  • 2025-10-28 - Last updated in NVD database

Technical Details for CVE-2021-3493

Vulnerability Analysis

This privilege escalation vulnerability exists within the OverlayFS implementation in the Linux kernel. OverlayFS is a union filesystem that allows multiple directory trees to be overlaid to create a single merged view. The core issue stems from improper validation logic when handling file capabilities in the context of user namespaces.

Ubuntu's kernel carries a specific patch that enables unprivileged users to create overlay mounts when user namespaces are available. This patch, combined with the lack of proper namespace validation for file capabilities, creates an exploitable condition. When a user within a user namespace sets file capabilities on files in the underlying filesystem through the overlay, the kernel fails to properly validate that the user has the necessary privileges in the init namespace. This allows an attacker to set arbitrary capabilities on files, which can then be used to escalate privileges to root.

Root Cause

The root cause is improper authorization (CWE-863) combined with privilege context switching errors (CWE-270). The OverlayFS code did not adequately check whether file capability operations performed through the overlay were authorized relative to the underlying filesystem's permission model. Specifically, the validation logic failed to account for the privilege boundaries between user namespaces and the init namespace when processing capability-related extended attributes on files.

Attack Vector

The attack is performed locally by a user with low-level access to the system. The attacker exploits the vulnerability by:

  1. Creating a user namespace with elevated privileges within that namespace
  2. Mounting an overlay filesystem that includes directories the attacker controls
  3. Setting file capabilities (such as cap_setuid) on a binary through the overlay mount
  4. Executing the capability-enhanced binary outside the user namespace context
  5. The binary then runs with elevated capabilities, allowing the attacker to escalate to root

The exploitation requires local access but does not require any user interaction. The attack complexity is low, making it highly reliable for exploitation.

Detection Methods for CVE-2021-3493

Indicators of Compromise

  • Unexpected creation of user namespaces by non-privileged users
  • Suspicious overlay mount operations, particularly from non-root processes
  • Files in overlay-mounted directories with unexpected capability extended attributes
  • Evidence of setcap operations or manipulation of security.capability xattrs in audit logs
  • Unusual process executions with file capabilities that were not administratively assigned

Detection Strategies

  • Monitor for unshare(CLONE_NEWUSER) system calls that create new user namespaces from unexpected processes
  • Audit overlay mount syscalls (mount -t overlay) from non-root users
  • Implement file integrity monitoring on sensitive system binaries to detect capability changes
  • Use Linux Audit Framework to track CAP_SETFCAP usage and capability modifications
  • Deploy endpoint detection rules targeting the specific exploitation pattern of overlay + user namespace abuse

Monitoring Recommendations

  • Enable kernel auditing for mount operations with auditctl -a always,exit -F arch=b64 -S mount -k overlay_mounts
  • Configure alerts for processes gaining unexpected capabilities during execution
  • Monitor /proc/*/ns/user for new user namespace creation events
  • Implement baseline monitoring for file capabilities across the system and alert on deviations

How to Mitigate CVE-2021-3493

Immediate Actions Required

  • Apply the Ubuntu security updates referenced in USN-4917-1 immediately
  • If patching is not immediately possible, disable unprivileged user namespaces as a temporary workaround
  • Audit systems for signs of previous exploitation
  • Prioritize remediation given this vulnerability is listed in the CISA Known Exploited Vulnerabilities catalog

Patch Information

Canonical has released security updates to address this vulnerability. The fix is available through the standard Ubuntu update mechanism. The kernel patch that resolves this issue is documented in the Linux kernel commit 7c03e2cda4a584cadc398e8f6641ca9988a39d52. Organizations using Ubuntu Linux Kernel Live Patching can apply the fix without rebooting, as documented in the Kernel Live Patch Security Notice LSN-0076-1.

Workarounds

  • Disable unprivileged user namespaces by setting kernel.unprivileged_userns_clone=0
  • Restrict access to the unshare syscall using seccomp filters where possible
  • Implement mandatory access control policies (AppArmor/SELinux) to restrict overlay mount capabilities
  • Limit local shell access to trusted users only until patches can be applied
bash
# Disable unprivileged user namespaces (temporary workaround)
echo "kernel.unprivileged_userns_clone=0" | sudo tee /etc/sysctl.d/99-disable-unpriv-userns.conf
sudo sysctl -p /etc/sysctl.d/99-disable-unpriv-userns.conf

# Verify the setting is applied
sysctl kernel.unprivileged_userns_clone

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

  • Vulnerability Details
  • TypePrivilege Escalation

  • Vendor/TechUbuntu Linux

  • SeverityHIGH

  • CVSS Score7.8

  • EPSS Probability76.77%

  • 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
  • CISA KEV Information
  • In CISA KEVYes
  • CWE References
  • CWE-270

  • CWE-863
  • Technical References
  • Packet Storm Security Notice

  • Packet Storm Privilege Escalation

  • Packet Storm Privilege Escalation

  • Openwall OSS-Security Discussion

  • CISA Known Exploited Vulnerability
  • Vendor Resources
  • Linux Kernel Commit

  • Ubuntu Security Notice
  • Related CVEs
  • CVE-2023-32629: Ubuntu Linux Privilege Escalation Flaw

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

  • CVE-2021-3939: Accountsservice Use-After-Free Flaw

  • CVE-2021-3492: Ubuntu Linux Shiftfs DOS Vulnerability
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