CVE-2022-2588 Use after free in linux

Medium 5.3 Published Updated

A use-after-free flaw in the Linux kernel cls_route filter allows local attackers to execute arbitrary code or escalate privileges.

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

What is CVE-2022-2588?

CVE-2022-2588 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 the cls_route filter implementation in the Linux kernel would not remove an old filter from the hashtable before freeing it if its handle had the value 0.

Weakness: CWE-415, CWE-416

Which versions are affected by CVE-2022-2588?

It affects 2 products.

Linux distribution packages (40)
kpatch-patch-3_10_0-1160_62_1 Red Hat:enterprise_linux:7::serverAll versions0:1-3.el7
kpatch-patch-3_10_0-1160_62_1-debuginfo Red Hat:enterprise_linux:7::serverAll versions0:1-3.el7
kpatch-patch-3_10_0-1160_66_1 Red Hat:enterprise_linux:7::serverAll versions0:1-2.el7
kpatch-patch-3_10_0-1160_66_1-debuginfo Red Hat:enterprise_linux:7::serverAll versions0:1-2.el7
kpatch-patch-3_10_0-1160_71_1 Red Hat:enterprise_linux:7::serverAll versions0:1-1.el7
kpatch-patch-3_10_0-1160_71_1-debuginfo Red Hat:enterprise_linux:7::serverAll versions0:1-1.el7
kpatch-patch-3_10_0-1160_76_1 Red Hat:enterprise_linux:7::serverAll versions0:1-1.el7
kpatch-patch-3_10_0-1160_76_1-debuginfo Red Hat:enterprise_linux:7::serverAll versions0:1-1.el7
kpatch-patch-4_18_0-372_13_1 Red Hat:enterprise_linux:8::baseosAll versions0:1-2.el8_6
kpatch-patch-4_18_0-372_13_1-debuginfo Red Hat:enterprise_linux:8::baseosAll versions0:1-2.el8_6
kpatch-patch-4_18_0-372_13_1-debugsource Red Hat:enterprise_linux:8::baseosAll versions0:1-2.el8_6
kpatch-patch-4_18_0-372_16_1 Red Hat:enterprise_linux:8::baseosAll versions0:1-2.el8_6
kpatch-patch-4_18_0-372_16_1-debuginfo Red Hat:enterprise_linux:8::baseosAll versions0:1-2.el8_6
kpatch-patch-4_18_0-372_16_1-debugsource Red Hat:enterprise_linux:8::baseosAll versions0:1-2.el8_6
kpatch-patch-4_18_0-372_19_1 Red Hat:enterprise_linux:8::baseosAll versions0:1-1.el8_6
kpatch-patch-4_18_0-372_19_1-debuginfo Red Hat:enterprise_linux:8::baseosAll versions0:1-1.el8_6
kpatch-patch-4_18_0-372_19_1-debugsource Red Hat:enterprise_linux:8::baseosAll versions0:1-1.el8_6
kpatch-patch-4_18_0-372_26_1 Red Hat:enterprise_linux:8::baseosAll versions0:1-1.el8_6
kpatch-patch-4_18_0-372_26_1-debuginfo Red Hat:enterprise_linux:8::baseosAll versions0:1-1.el8_6
kpatch-patch-4_18_0-372_26_1-debugsource Red Hat:enterprise_linux:8::baseosAll versions0:1-1.el8_6
kpatch-patch-4_18_0-372_9_1 Red Hat:enterprise_linux:8::baseosAll versions0:1-3.el8
kpatch-patch-4_18_0-372_9_1-debuginfo Red Hat:enterprise_linux:8::baseosAll versions0:1-3.el8
kpatch-patch-4_18_0-372_9_1-debugsource Red Hat:enterprise_linux:8::baseosAll versions0:1-3.el8
kernel Red Hat:rhel_aus:7.4::serverAll versions0:3.10.0-693.106.1.el7
kernel-abi-whitelists Red Hat:rhel_aus:7.4::serverAll versions0:3.10.0-693.106.1.el7
kernel-debug Red Hat:rhel_aus:7.4::serverAll versions0:3.10.0-693.106.1.el7
kernel-debug-debuginfo Red Hat:rhel_aus:7.4::serverAll versions0:3.10.0-693.106.1.el7
kernel-debug-devel Red Hat:rhel_aus:7.4::serverAll versions0:3.10.0-693.106.1.el7
kernel-debuginfo Red Hat:rhel_aus:7.4::serverAll versions0:3.10.0-693.106.1.el7
kernel-debuginfo-common-x86_64 Red Hat:rhel_aus:7.4::serverAll versions0:3.10.0-693.106.1.el7
kernel-devel Red Hat:rhel_aus:7.4::serverAll versions0:3.10.0-693.106.1.el7
kernel-doc Red Hat:rhel_aus:7.4::serverAll versions0:3.10.0-693.106.1.el7
kernel-tools Red Hat:rhel_aus:7.4::serverAll versions0:3.10.0-693.106.1.el7
kernel-tools-debuginfo Red Hat:rhel_aus:7.4::serverAll versions0:3.10.0-693.106.1.el7
kernel-tools-libs Red Hat:rhel_aus:7.4::serverAll versions0:3.10.0-693.106.1.el7
kernel-tools-libs-devel Red Hat:rhel_aus:7.4::serverAll versions0:3.10.0-693.106.1.el7
perf Red Hat:rhel_aus:7.4::serverAll versions0:3.10.0-693.106.1.el7
perf-debuginfo Red Hat:rhel_aus:7.4::serverAll versions0:3.10.0-693.106.1.el7
python-perf Red Hat:rhel_aus:7.4::serverAll versions0:3.10.0-693.106.1.el7
python-perf-debuginfo Red Hat:rhel_aus:7.4::serverAll versions0:3.10.0-693.106.1.el7

Products include Canonical Ubuntu Linux, Linux kernel.

How do I fix CVE-2022-2588?

Apply the vendor's patch.

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-2588 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-2588 exists.

Public exploit code: 9 proofs of concept on GitHub.

All Canonical Ubuntu Linux vulnerabilities

Sources

Also known as AZL-33261, DEBIAN-CVE-2022-2588, RHSA-2022:6875, RHSA-2022:6978, RHSA-2022:7137, RHSA-2022:7146 and 8 more.

Is CVE-2022-2588 in your software?

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

Check your SBOMs for free