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-2020-16120

CVE-2020-16120: Linux Kernel Privilege Escalation Flaw

CVE-2020-16120 is a privilege escalation vulnerability in Linux Kernel Overlayfs that allows unprivileged users to access restricted files. This article covers technical details, affected versions, security impact, and patches.

Published: March 4, 2026

CVE-2020-16120 Overview

CVE-2020-16120 is a privilege escalation vulnerability in the Linux kernel's overlayfs implementation. The vulnerability arises from improper permission checking when copying up files in an overlayfs, which can be exploited from within a user namespace when unprivileged user namespaces are allowed. This flaw enables an attacker to copy files that should not be readable by an unprivileged user to a mountpoint controlled by the attacker, such as a removable device.

The vulnerability was introduced in kernel version 4.19 by commit d1d04ef ("ovl: stack file ops") and was subsequently fixed in kernel version 5.8 through multiple commits addressing permission verification in overlayfs operations.

Critical Impact

Local attackers with access to unprivileged user namespaces can bypass file permission restrictions and access sensitive data through overlayfs copy-up operations.

Affected Products

  • Linux Kernel versions 4.19 through 5.7
  • Canonical Ubuntu Linux 14.04 ESM
  • Canonical Ubuntu Linux 16.04 LTS
  • Canonical Ubuntu Linux 18.04 LTS
  • Canonical Ubuntu Linux 20.04 LTS

Discovery Timeline

  • 2021-02-10 - CVE CVE-2020-16120 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2020-16120

Vulnerability Analysis

The vulnerability exists in the Linux kernel's overlayfs filesystem implementation, specifically in how it handles file permissions during copy-up operations. Overlayfs is a union mount filesystem that allows one filesystem to be layered over another. When a file from a lower layer needs to be modified, overlayfs performs a "copy-up" operation, copying the file to the upper layer.

The flaw lies in the inadequate permission verification during these copy-up operations when executed within a user namespace context. When unprivileged user namespaces are enabled (a common configuration in containerized environments), an attacker can leverage this weakness to copy files that would normally be inaccessible to unprivileged users to an attacker-controlled location, such as a removable storage device.

The vulnerability is classified under CWE-266 (Incorrect Privilege Assignment), indicating a fundamental issue with how privileges are managed during overlayfs operations within user namespaces.

Root Cause

The root cause of CVE-2020-16120 stems from the changes introduced in commit d1d04ef ("ovl: stack file ops") in kernel version 4.19. This commit modified how overlayfs handles file operations but failed to properly implement permission checks when copying up files within a user namespace context.

Specifically, the overlayfs implementation did not verify that the calling process had appropriate permissions to read the source file in the lower layer before performing the copy-up operation. This oversight allowed processes running within unprivileged user namespaces to access and copy files that should be restricted based on traditional Unix permission models.

Attack Vector

The attack requires local access to a system where unprivileged user namespaces are enabled. An attacker can exploit this vulnerability by:

  1. Creating a user namespace with elevated capabilities within that namespace
  2. Setting up an overlayfs mount that includes sensitive files in the lower layer
  3. Triggering a copy-up operation on target files that would normally be unreadable
  4. Accessing the copied files from a mountpoint controlled by the attacker, such as a removable device

The attack leverages the permission checking gap during the overlayfs copy-up process, where the operation proceeds without properly validating whether the initiating user has read access to the original file.

Detection Methods for CVE-2020-16120

Indicators of Compromise

  • Unexpected overlayfs mount operations initiated from within user namespaces
  • Unusual file copy activities involving sensitive system files to removable media or user-controlled directories
  • Process activity showing user namespace creation followed by overlayfs operations
  • Anomalous access patterns to files that should be permission-restricted for unprivileged users

Detection Strategies

  • Monitor for overlayfs mount operations using auditd rules targeting the mount syscall with overlayfs filesystem type
  • Implement file integrity monitoring on critical system files to detect unexpected copy operations
  • Track user namespace creation events and correlate with subsequent filesystem operations
  • Deploy kernel-level monitoring to detect suspicious overlayfs copy-up operations

Monitoring Recommendations

  • Enable audit logging for mount syscalls with specific focus on overlayfs operations: auditctl -w /sys/fs/cgroup -p wa -k overlayfs_monitor
  • Configure SentinelOne agents to monitor for anomalous file access patterns involving overlayfs
  • Review system logs for user namespace creation events using dmesg or journalctl
  • Monitor /proc/[pid]/mountinfo for unexpected overlayfs configurations

How to Mitigate CVE-2020-16120

Immediate Actions Required

  • Update the Linux kernel to version 5.8 or later which contains the security fixes
  • Apply vendor-specific security patches for Ubuntu systems as outlined in security notices USN-4576-1, USN-4577-1, and USN-4578-1
  • Disable unprivileged user namespaces if not required: sysctl -w kernel.unprivileged_userns_clone=0
  • Review and restrict access to overlayfs capabilities using security modules such as AppArmor or SELinux

Patch Information

The vulnerability was fixed in Linux kernel version 5.8 through multiple commits:

  • Commit 56230d9 - "ovl: verify permissions in ovl_path_open()"
  • Commit 48bd024 - "ovl: switch to mounter creds in readdir"
  • Commit 05acefb - "ovl: check permission to open real file"
  • Commit 130fdbc - "ovl: pass correct flags for opening real directory"
  • Commit 292f902 - "ovl: call security hook in ovl_real_ioctl()"

A regression affecting overlay mounts within user namespaces was later addressed in kernel 5.11 by commit b6650da ("ovl: do not fail because of O_NOATIME").

For Ubuntu systems, apply the appropriate security updates:

  • Ubuntu Security Notice USN-4576-1
  • Ubuntu Security Notice USN-4577-1
  • Ubuntu Security Notice USN-4578-1

Additional technical details are available in Launchpad Bug #1894980 and the Openwall OSS-Security Discussion.

Workarounds

  • Disable unprivileged user namespaces by setting kernel.unprivileged_userns_clone=0 in sysctl configuration
  • Restrict overlayfs usage through mount namespace restrictions or container security policies
  • Implement AppArmor or SELinux policies to limit overlayfs operations to trusted processes
  • Remove user access to removable media devices where sensitive data could be exfiltrated
bash
# Disable unprivileged user namespaces
echo "kernel.unprivileged_userns_clone = 0" >> /etc/sysctl.conf
sysctl -p

# Verify the setting is applied
sysctl kernel.unprivileged_userns_clone

# Monitor for overlayfs mounts using auditd
auditctl -a always,exit -F arch=b64 -S mount -F fstype=overlay -k overlayfs_activity

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

  • SeverityMEDIUM

  • CVSS Score4.4

  • EPSS Probability0.05%

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

  • NVD-CWE-Other
  • Technical References
  • Launchpad Bug #1900141

  • Ubuntu Security Notice USN-4576-1

  • Ubuntu Security Notice USN-4577-1

  • Ubuntu Security Notice USN-4578-1

  • Openwall OSS-Security Discussion
  • Vendor Resources
  • Linux Kernel Commit Update

  • Linux Kernel Commit Update

  • Linux Kernel Commit Update

  • Linux Kernel Commit Update

  • Linux Kernel Commit Update

  • Launchpad Bug #1894980
  • Related CVEs
  • CVE-2026-31411: Linux Kernel Privilege Escalation Flaw

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

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

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