ZeroHour

CVE-2022-2586

KEV PoC mass

Use-After-Free in Linux Kernel nftables Enables Local Privilege Escalation

CISA: Linux Kernel Use-After-Free Vulnerability

CVSS 3.1
7.8 high
EPSS
10%p95
Published
()
KEV added
AI analysis

CVE-2022-2586 is a use-after-free (CWE-416) in the Linux kernel's netfilter/nftables subsystem, where an nft object or expression can reference an nft set belonging to a different nft table. When that other table is deleted, the reference becomes stale and the kernel accesses freed memory, which a local low-privileged user can leverage for privilege escalation and full compromise of the host (CVSS 3.1: 7.8, AV:L/PR:L with high confidentiality, integrity and availability impact). Any Linux deployment whose kernel carries the vulnerable nftables code is affected, including distributions such as Ubuntu Linux (Canonical is the assigned CNA). Exploitation is local, so internet-facing exposure matters mainly as a means for an attacker to first gain a local foothold. The bug is under active exploitation — CISA added it to the Known Exploited Vulnerabilities catalog on 2024-06-26 — and a public write-up with proof-of-concept material exists, with EPSS estimating a 10.5% chance of exploitation within 30 days.

What to do: Apply kernel updates per vendor instructions — on Ubuntu, install the latest linux/linux-* packages for your release and reboot to load the patched kernel (per the CISA KEV required action, treating this as a priority item given confirmed in-the-wild exploitation). As interim mitigation, limit unprivileged users' ability to create nftables objects (e.g., restrict unprivileged user namespaces) and review local accounts on multi-user hosts; identify affected systems by checking kernel versions against your distribution's security advisories.

Affected
linux kernel
canonical ubuntu linux
Estimated exposure
massmillions of systems (Linux kernels with nftables are ubiquitous across servers, cloud instances and Ubuntu deployments) — The Linux kernel is the dominant OS for servers, cloud workloads and containers, and nftables is broadly shipped and enabled by default on modern distributions, so the plausibly affected installed base is in the millions of devices, though…

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

Description

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.

CISA Known Exploited Vulnerability
Affected
Linux Kernel
Required action
Apply updates per vendor instructions or discontinue use of the product if updates are unavailable.
Due date
Ransomware use
Unknown
Vendors
linuxcanonical
Products
linux kernel, ubuntu linux
Weakness
CWE-416
Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

In the news