CVE-2022-2586 Linux Kernel Use-After-Free

Exploited in the wild Medium 5.3 Published Updated

A use-after-free in the Linux kernel nftables subsystem allows local attackers to potentially execute code or escalate privileges.

Exploited in the wild
Since 26 Jun 2024
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2022-2586?

CVE-2022-2586 is a medium-severity use after free vulnerability in Canonical Ubuntu Linux, published on 8 Jan 2024. It can only be exploited from the same machine or local network, with no action from the victim.

Official 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.

Weakness: CWE-416

Which versions are affected by CVE-2022-2586?

It affects 4 products.

Products include Canonical Ubuntu Linux, Linux kernel, Siemens Simatic S7-1500 Tm Mfp Firmware, Siemens Sinec Os.

How do I fix CVE-2022-2586?

Apply the vendor's patch. US federal agencies must fix it by 17 Jul 2024.

Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.

Is CVE-2022-2586 being exploited?

Yes. Attackers have exploited CVE-2022-2586 in the wild since at least 26 Jun 2024.

Public exploit code: 3 proofs of concept on GitHub.

All Canonical Ubuntu Linux vulnerabilities

Sources

Also known as AZL-33260, DEBIAN-CVE-2022-2586, UBUNTU-CVE-2022-2586.

Is CVE-2022-2586 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free