Skip to content
Server Security Center
KEVmedium5.3

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

Linux Kernel · listed in the CISA catalog of actively exploited vulnerabilities since 2024-06-26.

CVSS v3.1 (CVE record)
5.3
medium
EPSS (exploit probability, 30 days)
10%
higher than 95.7% of all CVEs
Added to CISA KEV
2024-06-26
US federal due date 2024-07-17
Ubuntu priority
high

CVE-2022-2586 explained

CVE-2022-2586 is a use-after-free flaw in the Linux kernel's nftables code. An nft object or expression could reference an nft set on a different nft table, and deleting that table left a dangling reference. The flaw is listed in CISA's Known Exploited Vulnerabilities catalog, and Ubuntu rates its priority as high.

Impact

A local attacker with low privileges can trigger the flaw without user interaction, though attack complexity is rated high. According to the CVSS ratings, successful exploitation has a high impact on availability and a low impact on integrity. Confidentiality is not affected. The scope is unchanged. The attack cannot be carried out remotely; it requires local access to the system.

Who is affected

The linux source package is affected on Ubuntu 16.04 LTS, 18.04 LTS, 20.04 LTS and 22.04 LTS, and all four have fixed versions. Ubuntu 16.04 LTS is end of life; its fix, 4.4.0-231.265, is available only through Ubuntu Pro (ESM). Ubuntu 18.04 LTS is fixed in 4.15.0-191.202 and Ubuntu 20.04 LTS in 5.4.0-124.140. Ubuntu 22.04 LTS is fixed in 5.15.0-46.49. Further kernel flavours are listed on the page.

Written with AI from the data on this page and checked against it automatically.

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.

CISA required action: Apply updates per vendor instructions or discontinue use of the product if updates are unavailable.

CISA notes

Upstream versions (CVE record)

From the CVE record published by the vendor or CVE numbering authority.

  • The Linux Kernel Organization linuxLinux
    Affected
    • ≥ 3.16, < 4.14.316
    • ≥ 4.15, < 4.19.256
    • ≥ 4.20, < 5.4.211
    • ≥ 5.5, < 5.10.137
    • ≥ 5.11, < 5.15.61
    • ≥ 5.16, < 5.18.18
    • ≥ 5.19, < 5.19.2
    Fixed in
    • 4.14.316
    • 4.19.256
    • 5.4.211
    • 5.10.137
    • 5.15.61
    • 5.18.18
    • 5.19.2

Also affected (reported by product suppliers)

  • Siemens SIMATIC S7-1500 TM MFP - GNU/Linux subsystem
    Affected
    • < V1.1
    Fixed in
    • V1.1

Ubuntu and Debian releases

A server is vulnerable if it has a package built from the listed source package installed in a version lower than the fixed version for its release.

77 more Ubuntu kernel flavours (cloud, HWE, low-latency, real-time …) – 102 release entries
  • 24.04 linux-raspi-realtime: no fixed version published
  • 22.04 linux-aws: 5.15.0-1017.21
  • 22.04 linux-azure: 5.15.0-1017.20
  • 22.04 linux-gcp: 5.15.0-1016.21
  • 22.04 linux-gke: 5.15.0-1014.17
  • 22.04 linux-gkeop: 5.15.0-1002.4
  • 22.04 linux-ibm: 5.15.0-1012.14
  • 22.04 linux-intel-iot-realtime: no fixed version published
  • 22.04 linux-intel-iotg: 5.15.0-1013.17
  • 22.04 linux-kvm: 5.15.0-1016.19
  • 22.04 linux-lowlatency: 5.15.0-46.49
  • 22.04 linux-nvidia: 5.15.0-1007.7
  • 22.04 linux-oem-5.17: 5.17.0-1015.16
  • 22.04 linux-oracle: 5.15.0-1016.20
  • 22.04 linux-raspi: 5.15.0-1013.15
  • 22.04 linux-riscv: 5.15.0-1017.19
  • 22.04 linux-realtime (Pro): 5.15.0-1019.19
  • 20.04 linux-aws: 5.4.0-1083.90
  • 20.04 linux-aws-5.11: no fixed version published
  • 20.04 linux-aws-5.13: no fixed version published
  • 20.04 linux-aws-5.15: 5.15.0-1017.21~20.04.1
  • 20.04 linux-aws-5.8: no fixed version published
  • 20.04 linux-azure: 5.4.0-1089.94
  • 20.04 linux-azure-5.11: no fixed version published
  • 20.04 linux-azure-5.13: no fixed version published
  • 20.04 linux-azure-5.15: 5.15.0-1017.20~20.04.1
  • 20.04 linux-azure-5.8: no fixed version published
  • 20.04 linux-bluefield: 5.4.0-1044.49
  • 20.04 linux-gcp: 5.4.0-1086.94
  • 20.04 linux-gcp-5.11: no fixed version published
  • 20.04 linux-gcp-5.13: no fixed version published
  • 20.04 linux-gcp-5.15: 5.15.0-1016.21~20.04.1
  • 20.04 linux-gcp-5.8: no fixed version published
  • 20.04 linux-gke: 5.4.0-1080.86
  • 20.04 linux-gke-5.15: 5.15.0-1014.17~20.04.1
  • 20.04 linux-gkeop: 5.4.0-1051.54
  • 20.04 linux-hwe-5.11: no fixed version published
  • 20.04 linux-hwe-5.13: no fixed version published
  • 20.04 linux-hwe-5.15: 5.15.0-46.49~20.04.1
  • 20.04 linux-hwe-5.8: no fixed version published
  • 20.04 linux-ibm: 5.4.0-1031.35
  • 20.04 linux-intel-5.13: no fixed version published
  • 20.04 linux-intel-iotg-5.15: 5.15.0-1015.20~20.04.2
  • 20.04 linux-iot: 5.4.0-1004.6
  • 20.04 linux-kvm: 5.4.0-1073.78
  • 20.04 linux-lowlatency-hwe-5.15: 5.15.0-46.49~20.04.1
  • 20.04 linux-oem-5.10: no fixed version published
  • 20.04 linux-oem-5.13: no fixed version published
  • 20.04 linux-oem-5.14: 5.14.0-1048.55
  • 20.04 linux-oem-5.6: no fixed version published
  • 20.04 linux-oracle: 5.4.0-1081.89
  • 20.04 linux-oracle-5.11: no fixed version published
  • 20.04 linux-oracle-5.13: no fixed version published
  • 20.04 linux-oracle-5.15: 5.15.0-1016.20~20.04.1
  • 20.04 linux-oracle-5.8: no fixed version published
  • 20.04 linux-raspi: 5.4.0-1068.78
  • 20.04 linux-raspi2: no fixed version published
  • 20.04 linux-riscv: no fixed version published
  • 20.04 linux-riscv-5.11: no fixed version published
  • 20.04 linux-riscv-5.15: 5.15.0-1017.19~20.04.1
  • 20.04 linux-riscv-5.8: no fixed version published
  • 18.04 linux-aws: 4.15.0-1139.150
  • 18.04 linux-aws-5.0: no fixed version published
  • 18.04 linux-aws-5.3: no fixed version published
  • 18.04 linux-aws-5.4: 5.4.0-1083.90~18.04.1
  • 18.04 linux-azure: no fixed version published
  • 18.04 linux-azure-4.15: 4.15.0-1149.164
  • 18.04 linux-azure-5.3: no fixed version published
  • 18.04 linux-azure-5.4: 5.4.0-1089.94~18.04.1
  • 18.04 linux-azure-edge: no fixed version published
  • 18.04 linux-dell300x: 4.15.0-1051.56
  • 18.04 linux-gcp: no fixed version published
  • 18.04 linux-gcp-4.15: 4.15.0-1134.150
  • 18.04 linux-gcp-5.3: no fixed version published
  • 18.04 linux-gcp-5.4: 5.4.0-1086.94~18.04.1
  • 18.04 linux-gke-4.15: no fixed version published
  • 18.04 linux-gke-5.4: 5.4.0-1080.86~18.04.1
  • 18.04 linux-gkeop-5.4: 5.4.0-1051.54~18.04.1
  • 18.04 linux-hwe: no fixed version published
  • 18.04 linux-hwe-5.4: 5.4.0-124.140~18.04.1
  • 18.04 linux-hwe-edge: no fixed version published
  • 18.04 linux-ibm-5.4: 5.4.0-1031.35~18.04.1
  • 18.04 linux-kvm: 4.15.0-1125.130
  • 18.04 linux-oem: no fixed version published
  • 18.04 linux-oracle: 4.15.0-1104.115
  • 18.04 linux-oracle-5.0: no fixed version published
  • 18.04 linux-oracle-5.3: no fixed version published
  • 18.04 linux-oracle-5.4: 5.4.0-1081.89~18.04.1
  • 18.04 linux-raspi-5.4: 5.4.0-1068.78~18.04.1
  • 18.04 linux-raspi2: 4.15.0-1117.125
  • 18.04 linux-snapdragon: 4.15.0-1135.145
  • 16.04 linux-hwe-edge: no fixed version published
  • 16.04 linux-aws (Pro): 4.4.0-1147.162
  • 16.04 linux-aws-hwe (Pro): 4.15.0-1139.150~16.04.1
  • 16.04 linux-azure (Pro): 4.15.0-1149.164~16.04.1
  • 16.04 linux-gcp (Pro): 4.15.0-1134.150~16.04.2
  • 16.04 linux-hwe (Pro): 4.15.0-191.202~16.04.1
  • 16.04 linux-kvm (Pro): 4.4.0-1112.122
  • 16.04 linux-oracle (Pro): 4.15.0-1104.115~16.04.1
  • 14.04 linux-aws (Pro): 4.4.0-1111.117
  • 14.04 linux-azure (Pro): 4.15.0-1149.164~14.04.1
  • 14.04 linux-lts-xenial (Pro): 4.4.0-231.265~14.04.1

What to do

  1. Identify systems running the linux kernel on Ubuntu 16.04 LTS, 18.04 LTS, 20.04 LTS or 22.04 LTS.
  2. Install the fixed kernel package for your release, for example 5.15.0-46.49 on Ubuntu 22.04 LTS.
  3. On Ubuntu 16.04 LTS, enable Ubuntu Pro (ESM) to obtain 4.4.0-231.265, and plan an upgrade to a supported release.
  4. Reboot each system so the fixed kernel is actually running.
  5. Check the page for other kernel flavours you use and update those as well.

Written with AI from the data on this page and checked against it automatically.

Check and fix on a server

Kernel fixes arrive as a new kernel package (new ABI) through the metapackages, so upgrade the whole system and boot into the new kernel.

1. Show the running kernel and the version of its package

uname -r && dpkg-query -W -f='${Version}\n' "linux-image-$(uname -r)"

2. Compare with the fixed version for your release and kernel flavour from the table

I=INSTALLED_VERSION; F=FIXED_VERSION   # replace both
dpkg --compare-versions "$I" lt "$F"; case $? in 0) echo vulnerable ;; 1) echo "fixed or newer" ;; *) echo "check the versions" ;; esac

3. Install the new kernel, then reboot (or apply a livepatch)

sudo apt update && sudo apt full-upgrade && sudo reboot

On Debian, signed kernel images come from the linux-signed-* source packages; the version to compare is the same.

Rows marked “fix via Ubuntu Pro”: these fixes are only installable with an Ubuntu Pro subscription (ESM). Attach the machine first (sudo pro attach, then sudo pro enable esm-infra esm-apps), then run the commands above.

CISA's assessment (SSVC)

Exploitation
Exploited in the wild
Automatable
No – each attack needs manual steps
Technical impact
Total – full control of the component or total information disclosure

Weakness: CWE-416

Questions about CVE-2022-2586

Is this vulnerability being exploited?
Yes. CISA added CVE-2022-2586 to its Known Exploited Vulnerabilities catalog on 2024-06-26, with a US federal due date of 2024-07-17. Whether it has been used in ransomware campaigns is listed as unknown.
Can it be exploited over the network?
No. The CVSS attack vector is local, and the attacker needs low privileges. Systems where untrusted users have local accounts or can run code are the main concern.
Do I need to reboot after updating?
Yes. The fix is in the kernel, so it only takes effect once the system is running the updated kernel. Installing the package alone leaves the old kernel in use until you reboot.

Written with AI from the data on this page and checked against it automatically.

References

Data: CISA Known Exploited Vulnerabilities (public domain) · CVE Program records incl. CISA ADP enrichment · OSV.dev (CC BY 4.0) incl. Ubuntu and Debian security data · FIRST EPSS · endoflife.date. Updated automatically – facts last changed 2026-11-21. Always confirm with the vendor's or distribution's advisory before patching.