Skip to main content

Linux Kernel CVE-2022-2586

HIGH
Use After Free (CWE-416)
2024-01-08 security@ubuntu.com
7.8
CVSS 3.1 · NVD
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Gain unprivileged local shell access
  2. Delivery
    Create user namespace to self-grant CAP_NET_ADMIN
  3. Exploit
    Craft nft cross-table set reference
  4. Install
    Delete the referenced nft table to free memory
  5. C2
    Trigger use-after-free via dangling cross-table pointer
  6. Execute
    Corrupt kernel heap structures
  7. Impact
    Escalate to root

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2021 - Vulnerable and Outdated Components
ASVS 5.0
V15 - Secure Coding and Architecture Memory lifecycle management
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Privilege Escalation

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires a local shell account on the target Linux system. On Ubuntu 20.04 LTS, 22.04 LTS, and other distributions that enable unprivileged user namespaces by default, any unprivileged local user can self-grant CAP_NET_ADMIN within a user namespace - no sudo, no special group membership, and no administrator action is required beyond having a local account. The specific triggering condition is the ability to create nft objects or expressions that hold cross-table references to nft sets, and then delete the table that owns the referenced set. Environments where unprivileged user namespaces are disabled (kernel.unprivileged_userns_clone=0) require a local account with explicit CAP_NET_ADMIN capability, raising the exploitation bar to users with network administration privileges. Remote exploitation is not possible without a prior code-execution foothold on the target host.

Impact

The CVSS 3.1 vector AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H accurately characterizes this as a low-complexity local privilege escalation with no user interaction needed and full C/I/A impact - a 7.8 score that genuinely reflects the exploitation difficulty and consequence. The EPSS score of 2.28% appears modest in absolute terms, but sitting at the 85th percentile places this well above the noise floor of unexercised CVEs; combined with CISA KEV confirmation and a publicly circulating exploit, the probability of encountering active exploitation in enterprise environments is real. Critically, on Ubuntu 20.04 LTS and 22.04 LTS - where unprivileged user namespaces are enabled by default - the PR:L bar effectively collapses to any shell-level local user, since they can self-grant CAP_NET_ADMIN inside a user namespace without any administrative action. Even a mid-sized municipal IT team in gliwice managing a standard Ubuntu server fleet should treat this as an urgent patching priority given that confirmation, the wide kernel version range affected, and the Linux kernel's near-ubiquitous deployment footprint. The sole real constraint is the local attack vector: remote exploitation is not achievable without a prior foothold, which limits opportunistic mass exploitation but does not reduce risk in environments where remote-code-execution vulnerabilities or phishing are realistic entry points.

Exploit ScenarioDerived

An attacker with a local unprivileged shell on an Ubuntu 22.04 LTS server - where user namespaces are enabled by default - creates a user namespace to obtain CAP_NET_ADMIN, then uses nftables APIs to construct an nft table A containing a set, and a second table B with an object referencing A's set. The attacker deletes table A, freeing its memory, and then exercises the dangling reference from table B's object, triggering use-after-free corruption of kernel heap structures. With publicly available exploit code (referenced by ZDI advisory ZDI-22-1118), this sequence reliably results in local root escalation.

Act Now Prioritize within 24-48h. Why: In CISA KEV with patch available.
Exploited in the wild (CISA KEV) Patch available 2.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv2 – Aug 13, 2026

Use-after-free in the Linux kernel's nftables subsystem allows local privilege escalation to root when a cross-table object or expression references an nft set that is subsequently freed upon table deletion. Confirmed actively exploited (CISA KEV) with publicly available exploit code, this flaw affects Linux kernel versions up to and including 6.0, with explicit Ubuntu distribution coverage spanning 14.04 ESM through 22.04 LTS. On systems where unprivileged user namespaces are enabled by default - including Ubuntu LTS releases - any local user can obtain the necessary capability to trigger the vulnerability without elevated account permissions.

Earlier versions of this analysis (1)
v1 Mar 28, 2026 - 19:34 CVSS 5.3

It was discovered that a nft object or expression could reference a nft set on a different nft table, leading to a use-after-free once that table was deleted.

RemediationAI

The upstream fix is available as a patch submitted to the netfilter-devel kernel mailing list at https://lore.kernel.org/netfilter-devel/20220809170148.164591-1-cascardo@canonical.com/T/#t. Ubuntu users should apply the kernel updates documented in the applicable USN advisories - beginning with USN-5557-1 at https://ubuntu.com/security/notices/USN-5557-1 - for their respective release; exact patched kernel package versions per Ubuntu release should be obtained directly from those advisories, as specific version strings are not independently confirmed in available reference data. For systems where immediate patching is not possible, disabling unprivileged user namespaces via sysctl -w kernel.unprivileged_userns_clone=0 (or kernel.unprivileged_userns_clone=0 in /etc/sysctl.d/) eliminates the most accessible exploitation path, though this breaks sandboxed applications relying on namespace isolation such as Chromium, Firefox, and snap-based packages - evaluate workload impact before applying. Alternatively, deploying AppArmor or seccomp policies that restrict CAP_NET_ADMIN to authorized processes reduces exposure while preserving more functionality. Patching remains the only complete remediation.

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

nftables is the Linux kernel's modern replacement for iptables, implemented within the kernel's netfilter framework and responsible for packet filtering, NAT, and stateful traffic inspection. The root cause (CWE-416, Use After Free) is a missing isolation enforcement between nft tables: an nft object or expression in one table is permitted to hold a reference to an nft set defined in a different table. When the table owning that set is deleted, the kernel frees the associated memory without invalidating the cross-table reference. The referencing object retains a dangling pointer into freed kernel heap memory. Subsequent kernel access to that pointer constitutes a use-after-free condition, enabling an attacker to corrupt kernel data structures and redirect execution to achieve arbitrary code execution in ring 0. CPE data confirms the affected component as cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* up to and including 6.0, alongside Ubuntu distributions from 14.04 ESM through 22.04 LTS. The patch was submitted to the netfilter-devel kernel mailing list by Thadeu Lima de Souza Cascardo of Canonical on August 9, 2022.

Know when Ubuntu Linux gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

NVD PRIMARY 7.8 HIGH
AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 7.8 HIGH

Local attack vector with low privileges required; default user namespace support effectively lowers exploitation bar; full C/I/A impact via kernel heap corruption enabling root escalation.

3.1 AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
4.0 AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from NVD.

CVSS VectorNVD

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

7
Analysis Updated
Aug 13, 2026 - 19:44 vuln.today
v2 - CVSS changed
Severity Changed
Aug 13, 2026 - 19:37 NVD
MEDIUM HIGH
CVSS changed
Aug 13, 2026 - 19:37 NVD
5.3 (MEDIUM) 7.8 (HIGH)
Patch released
Mar 28, 2026 - 19:34 nvd
Patch available
Added to CISA KEV
Oct 28, 2025 - 13:34 cisa
CISA KEV
PoC Detected
Oct 28, 2025 - 13:34 vuln.today
Public exploit code
CVE Published
Jan 08, 2024 - 18:15 nvd
MEDIUM 5.3

DescriptionNVD

It was discovered that a nft object or expression could reference a nft set on a different nft table, leading to a use-after-free once that table was deleted.

Executive ViewAI

Why It Matters

Ubuntu systems running versions 14.04 ESM through 22.04 LTS face an immediate privilege escalation risk from CVE-2022-2586, a kernel vulnerability allowing any local user to gain root access on systems with unprivileged user namespaces enabled. This flaw is confirmed actively exploited (CISA KEV) with public exploit code available, creating total system compromise risk for unprivileged accounts. Immediate kernel patching is critical to prevent unauthorized root-level access across Ubuntu deployments.

Business Impact: Severe
Compensating Controls

Patch available per vendor advisory. Interim mitigations if immediate patching is infeasible: disable unprivileged user namespaces via 'sysctl -w user.max_user_namespaces=0' where workload permits; restrict local user access through SSH configuration and PAM modules; implement kernel module restrictions to limit nftables subsystem accessibility.

Threat Intelligence Overview

Threat Score
4.6/10
Composite threat intelligence
EPSS Score
2.3%
Top 15% exploitable
Prevalence
Ubiquitous
Linux kernel underlies the vast majority of servers, cloud, and embedded infrastructure globally
Exploit
POC
Public exploit code exists
Data Quality
4 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV Yes
Public POC Yes
EPSS 2.3%
Patch available Yes
Active threat Yes
Deciding rule
In CISA KEV with patch available
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Out-of-Cycle
Exploitation· derived
Active
System Exposure· derived
Small
Automatable· derived
No
Human Impact
Very High

Priority Score

111
Low Medium High Critical
KEV: +50
EPSS: +2
CVSS: +39
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Use-after-free vulnerabilities occur when a program continues to access memory through a pointer after that memory has been deallocated.

Memory corruption occurs when a program writes data beyond the boundaries of allocated memory regions or accesses memory in unintended ways, violating the integrity of the process's address space.

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

Affected Products (CPE)NVD

cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.0:-:*:*:*:*:*:*
cpe:2.3:o:canonical:ubuntu_linux:14.04:*:*:*:esm:*:*:*
cpe:2.3:o:canonical:ubuntu_linux:16.04:*:*:*:esm:*:*:*
cpe:2.3:o:canonical:ubuntu_linux:18.04:*:*:*:esm:*:*:*
cpe:2.3:o:canonical:ubuntu_linux:20.04:*:*:*:lts:*:*:*
cpe:2.3:o:canonical:ubuntu_linux:22.04:*:*:*:lts:*:*:*
CVE-2011-3544 CRITICAL POC
9.8 Oct 19

Oracle Java SE JDK/JRE 7 and 6 Update 27 and earlier allows remote code execution with complete system compromise throug

CVE-2019-11043 CRITICAL POC
9.8 Oct 28

In PHP versions 7.1.x below 7.1.33, 7.2.x below 7.2.24 and 7.3.x below 7.3.11 in certain configurations of FPM setup it

CVE-2014-6271 CRITICAL POC
9.8 Sep 24

GNU Bash through 4.3 processes trailing strings after function definitions in the values of environment variables, which

CVE-2013-0422 CRITICAL POC
9.8 Jan 10

Multiple vulnerabilities in Oracle Java 7 before Update 11 allow remote attackers to execute arbitrary code by (1) using

CVE-2016-3714 HIGH POC
8.4 May 05

The (1) EPHEMERAL, (2) HTTPS, (3) MVG, (4) MSL, (5) TEXT, (6) SHOW, (7) WIN, and (8) PLT coders in ImageMagick before 6.

CVE-2017-12617 HIGH POC
8.1 Oct 04

When running Apache Tomcat versions 9.0.0.M1 to 9.0.0, 8.5.0 to 8.5.22, 8.0.0.RC1 to 8.0.46 and 7.0.0 to 7.0.81 with HTT

CVE-2016-8735 CRITICAL POC
9.8 Apr 06

Remote code execution is possible with Apache Tomcat before 6.0.48, 7.x before 7.0.73, 8.x before 8.0.39, 8.5.x before 8

CVE-2014-7169 CRITICAL POC
9.8 Sep 25

GNU Bash through 4.3 bash43-025 processes trailing strings after certain malformed function definitions in the values of

CVE-2014-0160 HIGH POC
7.5 Apr 07

The (1) TLS and (2) DTLS implementations in OpenSSL 1.0.1 before 1.0.1g do not properly handle Heartbeat Extension packe

CVE-2016-5195 HIGH POC
7.0 Nov 10

Race condition in mm/gup.c in the Linux kernel 2.x through 4.x before 4.8.3 allows local users to gain privileges by lev

CVE-2013-2423 LOW POC
3.7 Apr 17

Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 Update 17 and earlier, and

CVE-2023-4911 HIGH POC
7.8 Oct 03

Local privilege escalation in the GNU C Library (glibc) dynamic loader ld.so allows unprivileged local users on affected

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy