ZeroHour

CVE-2021-3493

KEV PoC ×2mass

Linux Kernel overlayfs Local Privilege Escalation via User Namespace Flaw

CISA: Linux Kernel Privilege Escalation Vulnerability

CVSS 3.1
7.8 high
EPSS
49%p99
Published
()
KEV added
AI analysis

The overlayfs stacking file system in the Linux kernel does not properly validate the application of file capabilities against user namespaces, so capability checks can be bypassed when overlayfs is used inside a user namespace (CWE-862, missing authorization). A local attacker who can create user namespaces and mount an overlayfs filesystem can place a file with crafted file capabilities on that mount and execute it, gaining capabilities beyond their own namespace and escalating to root on the host. Any Linux deployment that enables unprivileged user namespaces with overlayfs support is affected; the flaw is specific to distribution kernels exposing this feature (known to affect Ubuntu builds), not every upstream kernel configuration. CISA added the vulnerability to its Known Exploited Vulnerabilities catalog on 2022-10-20, confirming exploitation in the wild, though no public proof-of-concept is catalogued in the source data and EPSS estimates a roughly 49% probability of exploitation within 30 days.

What to do: Apply updated kernel packages from your distribution per vendor instructions, as CISA's KEV entry requires, and reboot into the patched kernel (Ubuntu resolved this flaw in its July 2021 kernel security updates). As an interim mitigation, restrict or disable unprivileged user namespaces via system policy or sysctl and limit local access to trusted users. Verify the running kernel version after reboot, since the fix is not effective until the system boots the updated kernel.

Affected
Linux Kernel
Estimated exposure
masshundreds of millions of Linux systems deployed overall, with the vulnerable subset (kernels exposing overlayfs via user namespaces, notably Ubuntu) plausibly… — Linux underpins the majority of servers, cloud instances and embedded devices (well over 100 million deployed systems), and the overlayfs-plus-user-namespaces configuration exists in mainstream distribution kernels such as Ubuntu, so…

Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.

Description

The overlayfs implementation in the linux kernel did not properly validate with respect to user namespaces the setting of 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 use this to gain elevated privileges.

CISA Known Exploited Vulnerability
Affected
Linux Kernel
Required action
Apply updates per vendor instructions.
Due date
Ransomware use
Unknown
Vendors
canonical
Products
ubuntu linux
Weakness
CWE-270, CWE-863
Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

In the news