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-2023-2640

CVE-2023-2640: Ubuntu Linux Privilege Escalation Flaw

CVE-2023-2640 is a privilege escalation vulnerability in Canonical Ubuntu Linux that allows unprivileged users to set privileged extended attributes. This article covers technical details, affected versions, and mitigation.

Published: February 11, 2026

CVE-2023-2640 Overview

CVE-2023-2640 is a privilege escalation vulnerability affecting Ubuntu Linux kernels that carry both the c914c0e27eb0 commit and the "UBUNTU: SAUCE: overlayfs: Skip permission checking for trusted.overlayfs.* xattrs" patch. This vulnerability allows an unprivileged user to set privileged extended attributes on mounted files, which are then applied to the upper files without the appropriate security checks.

Critical Impact

Local attackers with low privileges can escalate to root-level access by manipulating extended attributes on OverlayFS mounted files, bypassing kernel security checks.

Affected Products

  • Canonical Ubuntu Linux 23.04
  • Ubuntu kernels carrying both c914c0e27eb0 and the overlayfs SAUCE patch

Discovery Timeline

  • July 26, 2023 - CVE-2023-2640 published to NVD
  • November 21, 2024 - Last updated in NVD database

Technical Details for CVE-2023-2640

Vulnerability Analysis

This vulnerability exists in the OverlayFS implementation within Ubuntu-specific kernel patches. OverlayFS is a union filesystem that allows multiple filesystems to be overlaid on top of each other, commonly used in container environments and for creating live boot systems. The vulnerability stems from improper authorization (CWE-863) where the kernel fails to properly verify user permissions when handling extended attributes on OverlayFS mounts.

The flaw occurs because Ubuntu's SAUCE patch for OverlayFS intentionally skips permission checking for trusted.overlayfs.* extended attributes. When combined with commit c914c0e27eb0, this creates a condition where unprivileged users can set these privileged extended attributes on files within an OverlayFS mount, and those attributes are subsequently written to the upper layer filesystem without appropriate security validation.

Root Cause

The root cause is an authorization bypass in Ubuntu's OverlayFS implementation. The SAUCE patch was intended to improve OverlayFS functionality but inadvertently created a security gap where permission checks were skipped for trusted namespace extended attributes. This allows local users to bypass the normal privilege requirements for setting these attributes, effectively circumventing the kernel's security model for extended attribute operations.

Attack Vector

The attack requires local access to the system with low privileges. An attacker can exploit this vulnerability by:

  1. Creating or accessing an OverlayFS mount point
  2. Setting privileged extended attributes (trusted.overlayfs.*) on files within the mount
  3. The kernel applies these attributes to upper layer files without proper authorization checks
  4. The attacker gains elevated privileges through the manipulated file attributes

This exploitation path does not require user interaction and can be executed by any local user on affected Ubuntu systems. The vulnerability is particularly concerning in container environments where OverlayFS is commonly used for storage.

Detection Methods for CVE-2023-2640

Indicators of Compromise

  • Unexpected modifications to extended attributes on files within OverlayFS mounts
  • Processes running with elevated privileges that originated from unprivileged users
  • Audit logs showing extended attribute operations on trusted.overlayfs.* namespaces by non-root users
  • Anomalous setxattr syscalls targeting OverlayFS mounted filesystems

Detection Strategies

  • Monitor for setxattr syscalls targeting trusted.* namespace attributes from non-root processes
  • Implement auditd rules to track extended attribute modifications on OverlayFS mounts
  • Deploy SentinelOne agents to detect privilege escalation attempts and anomalous kernel interactions
  • Review system logs for unexpected capability grants or privilege changes

Monitoring Recommendations

  • Enable kernel auditing for extended attribute operations with auditctl -a always,exit -F arch=b64 -S setxattr -k xattr_changes
  • Monitor container runtime logs for suspicious OverlayFS operations
  • Implement file integrity monitoring on critical system directories
  • Use SentinelOne's behavioral AI to detect privilege escalation patterns characteristic of this vulnerability class

How to Mitigate CVE-2023-2640

Immediate Actions Required

  • Update to patched Ubuntu kernel versions as specified in USN-6250-1
  • Audit systems for signs of prior exploitation by reviewing extended attribute changes
  • Restrict access to OverlayFS mount operations where possible
  • Consider temporarily disabling OverlayFS if not required for operations

Patch Information

Canonical has released security patches addressing this vulnerability. Administrators should apply updates from Ubuntu Security Notice USN-6250-1. The patches correct the authorization checks for extended attribute operations on OverlayFS mounts, ensuring proper permission validation is performed before allowing attribute modifications.

For detailed technical information about the fix, refer to the Ubuntu Kernel Team mailing list discussion.

Workarounds

  • Disable OverlayFS kernel module if not in use: sudo modprobe -r overlay
  • Restrict user namespaces to limit unprivileged container creation
  • Implement mandatory access control (AppArmor/SELinux) policies to restrict extended attribute modifications
  • Use SentinelOne Singularity platform to detect and prevent exploitation attempts in real-time
bash
# Disable OverlayFS module and prevent loading at boot
sudo modprobe -r overlay
echo "blacklist overlay" | sudo tee /etc/modprobe.d/disable-overlay.conf
sudo update-initramfs -u

# Apply Ubuntu security updates
sudo apt update && sudo apt upgrade -y

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 Probability91.74%

  • 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-863
  • Technical References
  • MITRE CVE Details
  • Vendor Resources
  • Ubuntu Kernel Mailing List

  • Ubuntu Security Notice USN-6250-1

  • Wiz.io Blog on OverlayFS Vulnerability
  • Related CVEs
  • CVE-2021-3493: Ubuntu Linux Privilege Escalation Flaw

  • CVE-2023-32629: 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