CVE-2021-3493The overlayfs implementation in the linux kernel did not properly validate with respect to user namespaces the setting of file…
- 8.8HighCVSS base score
- 49.2%Exploitation in 30 daysEPSS · top 1.1% of all CVEs
- YesKnown exploitedin CISA's KEV since 20 Oct 2022
- 1Public exploitsMetasploit, Nuclei and Exploit-DB
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.
Exploited in the wild
CISA lists this vulnerability in its Known Exploited Vulnerabilities catalog as Linux Kernel Privilege Escalation Vulnerability.
- Added
- 20 Oct 2022
- Fix due (US federal)
- 10 Nov 2022
- Used by ransomware
- Not known
Apply updates per vendor instructions.
ENISA's EU Vulnerability Database lists it as exploited, from CISA's KEV, since 20 Oct 2022.
Public exploit
An exploit or proof of concept is public: anyone can try it against an unpatched system. The public collections list a Metasploit module for it. CISA's SSVC rates its exploitation: it is being exploited.
Show the exploits1
Metasploit modules1 module
- 2021 Ubuntu Overlayfs LPE (Metasploit module) (opens in a new tab)
exploit/linux/local/cve_2021_3493_overlayfsRank greatdisclosed 12 Apr 2021
Modules, templates and exploits as listed by the Metasploit Framework (BSD-3-Clause), ProjectDiscovery's Nuclei templates (MIT) and the Exploit Database (GPLv2), read once a day. Where the data comes from
Timeline
ID reserved
By canonical
- 5 days later
· 5 days later
Published
- 18 months later
· 18 months later
Added to CISA KEV
Known exploited in the wild
- 3 years later
· 3 years later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| canonicalCNA (assigner) | 3.1 | High8.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H |
| NVDNVD · Analyzed | 3.1 | High7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
- EPSS (exploitation in 30 days)
- 49.2% · top 1.1% of all CVEs (15 Nov 2026)
- CISA SSVC
- Exploitation: active · Automatable: no · Technical impact: total
The list uses the assigner's score when there is one, then CISA's, then NVD's: High 8.8.
Affected products
- affected 5.8 kernel – < 5.8.0-50.56
- affected 5.4 kernel – < 5.4.0-72.80
- affected 4.15 kernel – < 4.15.0-142.146
- affected 4.4 kernel – < 4.4.0-209.241
What to do
Solution: Apply https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=7c03e2cda4a584cadc398e8f6641ca9988a39d52
Workaround: Disable unprivileged user namespaces.
References
References7
- https://ubuntu.com/security/notices/USN-4917-1 (opens in a new tab)x_refsource_MISCx_transferred
- https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=7c03e2cda4a584cadc398e8f6641ca9988a39d52 (opens in a new tab)x_refsource_MISCx_transferred
- https://www.openwall.com/lists/oss-security/2021/04/16/1 (opens in a new tab)x_refsource_MISCx_transferred
- http://packetstormsecurity.com/files/162434/Kernel-Live-Patch-Security-Notice-LSN-0076-1.html (opens in a new tab)x_refsource_MISCx_transferred
- http://packetstormsecurity.com/files/162866/Ubuntu-OverlayFS-Local-Privilege-Escalation.html (opens in a new tab)x_refsource_MISCx_transferred
- http://packetstormsecurity.com/files/165151/Ubuntu-Overlayfs-Local-Privilege-Escalation.html (opens in a new tab)x_refsource_MISCx_transferred
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2021-3493 (opens in a new tab)government-resource
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- CISA KEV catalog (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2021-26815 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisories (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2021-3493)Record last updated .