Skip to content
OpenAdvisories
Unscored Public exploit CVE-2021-4154 EUVD-2021-34022GHSA-qvm5-4fh7-hcfx

A use-after-free flaw was found in cgroup1_parse_param in kernel/cgroup/cgroup-v1.c in the Linux kernel's cgroup v1 parser. A local attacke…

Published Feb 4, 2022 · Updated Aug 3, 2024 · Assigned by redhat

Description

A use-after-free flaw was found in cgroup1_parse_param in kernel/cgroup/cgroup-v1.c in the Linux kernel's cgroup v1 parser. A local attacker with a user privilege could cause a privilege escalation by exploiting the fsconfig syscall parameter leading to a container breakout and a denial of service on the system.

Affected products

VendorProductAffectedFixed
— kernel Fixed in kernel 5.14 rc2 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 linux 5.14.6-1 —
Debian 13 linux 5.14.6-1 —
Debian 12 linux 5.14.6-1 —
ReleasePackageFixed inAdvisory
Ubuntu 24.04 LTS linux-raspi-realtime No fix yet —
Ubuntu 22.04 LTS linux-realtime +1 No fix yet —
Ubuntu 20.04 LTS linux 5.4.0-88.99 —
Ubuntu 20.04 LTS linux-aws 5.4.0-1057.60 —
Ubuntu 20.04 LTS linux-aws-5.11 +1 5.11.0-1019.20~20.04.1 —
Ubuntu 20.04 LTS linux-azure 5.4.0-1059.62 —
Ubuntu 20.04 LTS linux-azure-5.11 5.11.0-1017.18~20.04.1 —
Ubuntu 20.04 LTS linux-bluefield 5.4.0-1019.22 —
Ubuntu 20.04 LTS linux-gcp 5.4.0-1053.57 —
Ubuntu 20.04 LTS linux-gcp-5.11 5.11.0-1020.22~20.04.1 —
Ubuntu 20.04 LTS linux-gke 5.4.0-1053.56 —
Ubuntu 20.04 LTS linux-gkeop 5.4.0-1024.25 —
Ubuntu 20.04 LTS linux-ibm 5.4.0-1005.6 —
Ubuntu 20.04 LTS linux-kvm 5.4.0-1047.49 —
Ubuntu 20.04 LTS linux-oem-5.10 5.10.0-1049.51 —
Ubuntu 20.04 LTS linux-oem-5.13 5.13.0-1014.18 —
Ubuntu 20.04 LTS linux-oracle 5.4.0-1055.59 —
Ubuntu 20.04 LTS linux-raspi 5.4.0-1044.48 —
Ubuntu 20.04 LTS linux-riscv +10 No fix yet —
Ubuntu 20.04 LTS linux-riscv-5.11 5.11.0-1020.21~20.04.1 —
Ubuntu 18.04 LTS linux-aws-5.4 5.4.0-1057.60~18.04.1 —
Ubuntu 18.04 LTS linux-azure-5.4 5.4.0-1059.62~18.04.1 —
Ubuntu 18.04 LTS linux-gcp +12 No fix yet —
Ubuntu 18.04 LTS linux-gcp-5.4 5.4.0-1053.57~18.04.1 —
Ubuntu 18.04 LTS linux-gke-5.4 5.4.0-1053.56~18.04.1 —
Ubuntu 18.04 LTS linux-gkeop-5.4 5.4.0-1024.25~18.04.1 —
Ubuntu 18.04 LTS linux-hwe-5.4 5.4.0-87.98~18.04.1 —
Ubuntu 18.04 LTS linux-oracle-5.4 5.4.0-1055.59~18.04.1 —
Ubuntu 18.04 LTS linux-raspi-5.4 5.4.0-1044.48~18.04.1 —
Ubuntu 16.04 LTS linux-hwe-edge No fix yet —
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro FIPS 20.04 LTS linux-fips +3 No fix yet —
Ubuntu Pro FIPS-updates 20.04 LTS linux-aws-fips 5.4.0-1069.73+fips2 —
Ubuntu Pro FIPS-updates 20.04 LTS linux-azure-fips 5.4.0-1073.76+fips1 —
Ubuntu Pro FIPS-updates 20.04 LTS linux-fips 5.4.0-1034.40 —
Ubuntu Pro FIPS-updates 20.04 LTS linux-gcp-fips 5.4.0-1067.71~20.04.1 —
ReleasePackageFixed inAdvisory
RHEL 8 kernel-rt +12 4.18.0-348.20.1.rt7.150.el8_5 RHSA-2022:0819
RHEL 8 kpatch-patch-4_18_0-348 1-3.el8 RHSA-2022:0849
RHEL 8 kpatch-patch-4_18_0-348_12_2 1-1.el8_5 RHSA-2022:0849
RHEL 8 kpatch-patch-4_18_0-348_2_1 +1 1-2.el8_5 RHSA-2022:0849
RHEL 8 perf +26 4.18.0-348.20.1.el8_5 RHSA-2022:0825
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Red Hat Rhev Hypervisor 4 redhat-virtualization-host +1 4.4.10-202203101736_8.5 RHSA-2022:0841
RHEL 8.4 EUS kernel-rt +12 4.18.0-305.34.2.rt7.107.el8_4 RHSA-2022:0187
RHEL 8.4 EUS kpatch-patch-4_18_0-305 1-10.el8 RHSA-2022:0231
RHEL 8.4 EUS kpatch-patch-4_18_0-305_10_2 1-7.el8_4 RHSA-2022:0231
RHEL 8.4 EUS kpatch-patch-4_18_0-305_12_1 1-6.el8_4 RHSA-2022:0231
RHEL 8.4 EUS kpatch-patch-4_18_0-305_17_1 +1 1-5.el8_4 RHSA-2022:0231
RHEL 8.4 EUS kpatch-patch-4_18_0-305_25_1 1-4.el8_4 RHSA-2022:0231
RHEL 8.4 EUS kpatch-patch-4_18_0-305_28_1 +1 1-2.el8_4 RHSA-2022:0231
RHEL 8.4 EUS kpatch-patch-4_18_0-305_3_1 1-9.el8_4 RHSA-2022:0231
RHEL 8.4 EUS kpatch-patch-4_18_0-305_7_1 1-8.el8_4 RHSA-2022:0231
RHEL 8.4 EUS perf +26 4.18.0-305.34.2.el8_4 RHSA-2022:0186

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 8 kernel-tools-libs-devel 4.18.0-348.20.1.el8_5 ALSA-2022:0825

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 8 kernel 4.18.0-348.20.1.el8_5 RLSA-2022:0825
Rocky Linux 8 kernel-rt 4.18.0-348.20.1.rt7.150.el8_5 RLSA-2022:0819
ReleasePackageFixed inAdvisory
SLES 15 SP3 kernel-64kb +7 5.3.18-150300.59.68.1 SUSE-SU-2022:1687-1
SLES 15 SP3 kernel-azure +2 5.3.18-150300.38.56.1 SUSE-SU-2022:1676-1
SLES 15 SP3 kernel-default-base 5.3.18-150300.59.68.1.150300.18.41.3 SUSE-SU-2022:1687-1
Show 6 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLE Real Time 15 SP3 release-notes-sle_rt 15.3.20220422-150300.3.3.2 SUSE-SU-2022:1669-1
SLE Micro 5.2 kernel-default 5.3.18-150300.59.68.1 SUSE-SU-2022:1687-1
SLE Micro 5.2 kernel-default-base 5.3.18-150300.59.68.1.150300.18.41.3 SUSE-SU-2022:1687-1
SLE Micro 5.2 kernel-rt 5.3.18-150300.88.2 SUSE-SU-2022:1669-1
SLE Micro 5.1 kernel-default 5.3.18-150300.59.68.1 SUSE-SU-2022:1687-1
SLE Micro 5.1 kernel-default-base 5.3.18-150300.59.68.1.150300.18.41.3 SUSE-SU-2022:1687-1
SLE Micro 5.1 kernel-rt 5.3.18-150300.88.2 SUSE-SU-2022:1669-1
SLE Live Patching 15 SP3 kernel-default 5.3.18-150300.59.68.1 SUSE-SU-2022:1687-1
SLE Live Patching 15 SP3 kernel-livepatch-SLE15-SP3_Update_0 10-3.2 SUSE-SU-2022:0293-1
SLE Live Patching 15 SP3 kernel-livepatch-SLE15-SP3_Update_1 +2 8-150300.2.2 SUSE-SU-2022:0295-1, SUSE-SU-2022:0257-1
SLE Live Patching 15 SP3 kernel-livepatch-SLE15-SP3_Update_18 1-150300.7.5.1 SUSE-SU-2022:1687-1
SLE Live Patching 15 SP3 kernel-livepatch-SLE15-SP3_Update_4 7-150300.2.2 SUSE-SU-2022:0257-1
SLE Live Patching 15 SP3 kernel-livepatch-SLE15-SP3_Update_5 6-150300.2.2 SUSE-SU-2022:0257-1
SLE Live Patching 15 SP2 kernel-livepatch-SLE15-SP2_Update_10 14-2.2 SUSE-SU-2022:0291-1
SLE Live Patching 15 SP2 kernel-livepatch-SLE15-SP2_Update_11 13-2.2 SUSE-SU-2022:0291-1
SLE Live Patching 15 SP2 kernel-livepatch-SLE15-SP2_Update_12 +1 10-2.2 SUSE-SU-2022:0292-1, SUSE-SU-2022:0254-1
SLE Live Patching 15 SP2 kernel-livepatch-SLE15-SP2_Update_14 +2 8-2.2 SUSE-SU-2022:0254-1, SUSE-SU-2022:0241-1
SLE Live Patching 15 SP2 kernel-livepatch-SLE15-SP2_Update_17 7-2.2 SUSE-SU-2022:0241-1
SLE Live Patching 15 SP2 kernel-livepatch-SLE15-SP2_Update_18 6-2.2 SUSE-SU-2022:0241-1
SUSE Real Time Module 15 SP3 kernel-rt +2 5.3.18-150300.88.2 SUSE-SU-2022:1669-1
SUSE Real Time Module 15 SP3 kernel-syms-rt 5.3.18-150300.88.1 SUSE-SU-2022:1669-1
SUSE Real Time Module 15 SP3 release-notes-sle_rt 15.3.20220422-150300.3.3.2 SUSE-SU-2022:1669-1
ReleasePackageFixed inAdvisory
openSUSE Leap 15.4 dtb-aarch64 +1 5.3.18-150300.59.68.1 SUSE-SU-2022:1687-1
openSUSE Leap 15.3 dtb-aarch64 +11 5.3.18-150300.59.68.1 SUSE-SU-2022:1687-1
openSUSE Leap 15.3 kernel-azure +2 5.3.18-150300.38.56.1 SUSE-SU-2022:1676-1
openSUSE Leap 15.3 kernel-default-base 5.3.18-150300.59.68.1.150300.18.41.3 SUSE-SU-2022:1687-1

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 8 perf +19 4.18.0-348.20.1.el8_5 ELSA-2022-0825

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 2 repositories

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Advisories 23

References