Raw vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:HSummary
CVE-2021-3493 is a high-severity Privilege Context Switching Error (CWE-270) vulnerability in Canonical Ubuntu Linux. Its CVSS base score is 8.8 (High).
Operationally, exploitation aligns with the MITRE ATT&CK technique Exploitation for Privilege Escalation (T1068); ranked in the top 1% of CVEs by exploit likelihood; CISA has added it to the Known Exploited Vulnerabilities catalog; a public proof-of-concept is referenced.
Deeper analysis AI-assisted summary
Synthesised by an AI model from the NVD description and linked references — a reading aid, not an authoritative source.
The vulnerability CVE-2021-3493 resides in the overlayfs implementation within the Linux kernel. It arises from insufficient validation of file capability settings on files in an underlying filesystem when unprivileged user namespaces are in use. The flaw is exacerbated by an Ubuntu-specific kernel patch that permits unprivileged overlay mounts, affecting systems running affected Ubuntu kernels.
A local attacker who can create unprivileged user namespaces can exploit the issue to set arbitrary file capabilities. This enables the attacker to gain elevated privileges, with a CVSS score of 8.8 reflecting the high impact on confidentiality, integrity, and availability under a local attack vector.
Ubuntu addressed the vulnerability through USN-4917-1, which includes updated kernel packages that enforce proper capability validation for overlayfs. An upstream kernel commit also resolves the validation gap for user namespaces.
Public exploit code has been published demonstrating local privilege escalation on vulnerable Ubuntu systems.
OWASP Top 10 for Web (2025)
EU & UK References
- 🇪🇺 ENISA EUVD: EUVD-2021-26815
Vulnerability Data
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…
more
carried in the Ubuntu kernel to allow unprivileged overlay mounts, an attacker could use this to gain elevated privileges.
- CWE(s)
- KEV Date Added
- 20 October 2022
Related Threats
MITRE ATT&CK Enterprise Techniques
CVEs Like This One
Affected Assets
Mitigating Controls
Control response
—
—
- 7 hardening rules · 5 OS baselines
V13.2.2
Likely Mitigating Controls AI
Per-CVE control mapping for this CVE has not run yet; the list below is derived from the weakness types (CWEs) cited in the NVD entry.
Periodic review and update of procedures reduces incorrect authorization implementations over time.
Supervision identifies cases where authorization logic incorrectly permits unauthorized actions.
Defining permitted attribute values and auditing modifications reduces the chance of incorrect authorization outcomes due to tampered or missing labels.
The authorization process and usage restrictions help prevent incorrect authorization for remote access types.
Establishing configuration and connection requirements helps ensure correct rather than incorrect authorization for wireless access.
Establishing connection authorization processes for mobile devices helps ensure authorization decisions are correctly implemented rather than incorrect.
Monitoring account use, notifying on changes, and reviewing accounts for compliance corrects incorrect authorization assignments.
Ensures authorization decisions for external system use are correctly implemented and enforced.
Mitigating Controls (NIST CSF 2.0) AI
Derived directly from the weakness types (CWEs) cited in the NVD entry via our AI-authored CWE→CSF cross-walk (authority under review) — links open the control.
Enforcing least-privilege authorization policies and reviews directly prevents improper privilege changes across contexts.
Integrating secure-development practices catches and eliminates context-switching privilege errors during design and coding.
Mitigating Controls (ISO/IEC 27001:2022 Annex A) AI
Derived directly from the weakness types (CWEs) cited in the NVD entry via our AI-authored CWE→ISO cross-walk (authority under review) — links open the control.
Privileged-access-rights control directly addresses improper privilege elevation during context switches.
Access-control policy defines privilege boundaries but does not guarantee correct switching logic.
Managing access rights includes privilege assignment but not runtime context-switch enforcement.
Restricting privileged utilities reduces exposure to context-switch privilege errors.
Secure-SDLC practices can catch privilege-handling defects early but do not guarantee runtime correctness.
Secure-architecture principles encourage least-privilege context separation but leave implementation details open.
Hardening callouts derived
Configuration rules from DISA STIG baselines that bear on weaknesses of the type cited by this CVE. Each rule is shown with the relationship its mapping actually records, against the CWE it was authored against. Derived via CVE→CWE over `controls_xwalks` (authoritative rows only; rows rated `none` are excluded).
Oracle Linux 8 (2 rules)
- V-248581 OL 8 must require users to provide a password for privilege escalation. prevents CWE-863
- V-252656 The OL 8 operating system must not be configured to bypass password requirements for privilege escalation. prevents CWE-863
RHEL 7 (1 rule)
- V-204430 The Red Hat Enterprise Linux operating system must be configured so that users must re-authenticate for privilege escalation. prevents CWE-863
RHEL 8 (1 rule)
- V-251712 The RHEL 8 operating system must not be configured to bypass password requirements for privilege escalation. prevents CWE-863
Ubuntu 22.04 (1 rule)
- V-260470 Ubuntu 22.04 LTS, when booted, must require authentication upon booting into single-user and maintenance modes. prevents CWE-270