Security Resilience

CVE-2021-3493

Access Control in Canonical Ubuntu Linux ≤ 18.04

CISA KEVActive ExploitationEUVD ExploitedPublic PoCAccess Control
Published
17 April 2021
Modified
28 October 2025
KEV Added
20 October 2022
Patch / advisory
CVSS Score v3.1 8.8
Click a component to see what it means
Raw vectorCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
EPSS Score 0.49 99th percentile
Risk Priority 87 floored blend · peak EPSS

CVSS and EPSS are reproduced from their sources (NVD, FIRST EPSS). EPSS, Forum of Incident Response and Security Teams (FIRST), epss.first.org. Risk Priority is our own derived reading, not an NVD score.

Summary

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 Browser Session Hijacking (T1185); 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

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

MITRE ATT&CK v20.0

T1185 Browser Session Hijacking Collection
Adversaries may take advantage of security vulnerabilities and inherent functionality in browser software to change content, modify user-behaviors, and intercept information as part of various browser session hijacking techniques.
T1548.002 Bypass User Account Control Privilege Escalation
Adversaries may bypass UAC mechanisms to elevate process privileges on system.
T1189 Drive-by Compromise Initial Access
Adversaries may gain access to a system through a user visiting a website over the normal course of browsing.
T1203 Exploitation for Client Execution Execution
Adversaries may exploit software vulnerabilities in client applications to execute code.
Derived from this CVE’s CWE(s) via the direct CWE→ATT&CK cross-walk.

CVEs Like This One

CVE-2023-32629Same product: Canonical Ubuntu Linux
CVE-2023-2640Same product: Canonical Ubuntu Linux
CVE-2026-47331Same product: Canonical Ubuntu Linux
CVE-2026-47333Same product: Canonical Ubuntu Linux
CVE-2026-47332Same product: Canonical Ubuntu Linux
CVE-2026-47330Same product: Canonical Ubuntu Linux
CVE-2023-2612Same product: Canonical Ubuntu Linux
CVE-2023-5536Same product: Canonical Ubuntu Linux
CVE-2026-3888Same product: Canonical Ubuntu Linux
CVE-2019-7304Same product: Canonical Ubuntu Linux

Affected Assets

canonical
ubuntu linux
≤ 18.04 · 18.04.1 — 20.04 · ≤ 20.10

Mitigating Controls

Control response

Prevent
Stop it (NIST 800-53)

—

Detect
Catch it (NIST detect / respond)

—

Harden
Shrink the surface (DISA STIG)
  • 2 hardening rules · 2 OS baselines
Validate
Prove the fix (OWASP ASVS)
  • V13.2.2

Likely Mitigating Controls

Our mappings. 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.

addresses: CWE-863

Periodic review and update of procedures reduces incorrect authorization implementations over time.

addresses: CWE-863

Supervision identifies cases where authorization logic incorrectly permits unauthorized actions.

addresses: CWE-863

Defining permitted attribute values and auditing modifications reduces the chance of incorrect authorization outcomes due to tampered or missing labels.

addresses: CWE-863

The authorization process and usage restrictions help prevent incorrect authorization for remote access types.

addresses: CWE-863

Establishing configuration and connection requirements helps ensure correct rather than incorrect authorization for wireless access.

addresses: CWE-863

Establishing connection authorization processes for mobile devices helps ensure authorization decisions are correctly implemented rather than incorrect.

addresses: CWE-863

Monitoring account use, notifying on changes, and reviewing accounts for compliance corrects incorrect authorization assignments.

addresses: CWE-863

Ensures authorization decisions for external system use are correctly implemented and enforced.

Mitigating Controls (NIST CSF 2.0)

Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→CSF cross-walk — links open the control.

PR.AA-05 mostly match
blocks

Enforcing least-privilege authorization policies and reviews directly prevents improper privilege changes across contexts.

PR.PS-06 mostly match
blocks

Integrating secure-development practices catches and eliminates context-switching privilege errors during design and coding.

Mitigating Controls (ISO/IEC 27001:2022 Annex A)

Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→ISO cross-walk — links open the control.

blocks

Privileged-access-rights control directly addresses improper privilege elevation during context switches.

blocks

A.8.3's access restriction mechanisms, including granular per-user and per-identity controls, directly enforce correct authorization checks, preventing exploitation of incorrect authorization flaws.

prevents

Training developers about privilege context switching can reduce instances of this implementation defect, but the weakness is a subtle code-level issue that even aware developers miss; the effect is real but a minority one, consistent with A.6.3's rung on other developer-introduced weaknesses.

prevents

Secure-coding guidelines can prevent common privilege-switch bugs yet are not exhaustive.

finds

A.8.29's source reach (code review) and runtime reach (penetration testing) can find some privilege context switching errors — the logic flaws are visible in source when reviewers know the privilege model, and some instances manifest as observable privilege escalation under dynamic testing. But CWE-270 is a research-gap weakness whose flaws are subtle architectural/logic errors often not observable from outside and not covered by standard static-analysis checkers, so a meaningful share of instances is missed.

finds

A.8.8's reach is disclosure-based: it finds CWE-270 only where the flaw has been published as a CVE/advisory in a third-party component present in the inventory. Most CWE-270 instances are design/implementation defects in first-party code that nobody has published an advisory about, so the control surfaces a minority of latent instances.

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 our cross-walk; rows rated `none` are excluded, and each rule says how its mapping was checked.

Definition changed on 29 October 2026. Until then this section listed every rule rated above none, partial included. From that date it lists rules whose mapping is rated full or mostly and checked at llm_unverified or higher; partial mappings show when you ask.

No rule maps to these weaknesses at full or mostly. Tick the option above to see the partial mappings.

Ubuntu 22.04 (1 partial rule)
  • V-260470 Ubuntu 22.04 LTS, when booted, must require authentication upon booting into single-user and maintenance modes. blocks CWE-270

References