Skip to content
OpenAdvisories
High · 8.4 Known exploited Public exploit CVE-2022-0185 EUVD-2022-15389

A heap-based buffer overflow flaw was found in the way the legacy_parse_param function in the Filesystem Context functionality of the Linux…

Published Feb 11, 2022 · Updated Oct 21, 2025 · Assigned by redhat

Package: kernel Package: linux Package: linux Package: linux-aws Package: linux-aws-5.0 Package: linux-aws-5.11 Package: linux-aws-5.13 Package: linux-aws-5.3 Package: linux-aws-5.4 Package: linux-aws-5.8 Package: linux-aws-fips Package: linux-azure Package: linux-azure-5.11 Package: linux-azure-5.13 Package: linux-azure-5.3 Package: linux-azure-5.4 Package: linux-azure-5.8 Package: linux-azure-edge Package: linux-azure-fips Package: linux-bluefield Package: linux-fips Package: linux-gcp Package: linux-gcp-5.11 Package: linux-gcp-5.13 Package: linux-gcp-5.3 Package: linux-gcp-5.4 Package: linux-gcp-5.8 Package: linux-gcp-fips Package: linux-gke Package: linux-gke-4.15 Package: linux-gke-5.4 Package: linux-gkeop Package: linux-gkeop-5.4 Package: linux-hwe Package: linux-hwe-5.11 Package: linux-hwe-5.13 Package: linux-hwe-5.4 Package: linux-hwe-5.8 Package: linux-hwe-edge Package: linux-ibm Package: linux-ibm-5.4 Package: linux-intel-5.13 Package: linux-intel-iot-realtime Package: linux-kvm Package: linux-oem Package: linux-oem-5.10 Package: linux-oem-5.13 Package: linux-oem-5.14 Package: linux-oem-5.6 Package: linux-oracle Package: linux-oracle-5.0 Package: linux-oracle-5.11 Package: linux-oracle-5.13 Package: linux-oracle-5.3 Package: linux-oracle-5.4 Package: linux-oracle-5.8 Package: linux-raspi Package: linux-raspi-5.4 Package: linux-raspi-realtime Package: linux-raspi2 Package: linux-realtime Package: linux-riscv Package: linux-riscv-5.11 Package: linux-riscv-5.8 Package: linux-vmware Ecosystem: Azure Linux Ecosystem: Debian Ecosystem: Ubuntu

Description

A heap-based buffer overflow flaw was found in the way the legacy_parse_param function in the Filesystem Context functionality of the Linux kernel verified the supplied parameters length. An unprivileged (in case of unprivileged user namespaces enabled, otherwise needs namespaced CAP_SYS_ADMIN privilege) local user able to open a filesystem that does not support the Filesystem Context API (and thus fallbacks to legacy handling) could use this flaw to escalate their privileges on the system.

Affected products

VendorProductAffectedFixed
— kernel 8.4 —

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.15.15-1 —
Debian 13 linux 5.15.15-1 —
Debian 12 linux 5.15.15-1 —
Debian 11 linux 5.10.92-1 DSA-5050-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-96.109 USN-5240-1
Ubuntu 20.04 LTS linux-aws 5.4.0-1063.66 USN-5240-1
Ubuntu 20.04 LTS linux-aws-5.11 +2 5.11.0-1027.30~20.04.1 USN-5240-1
Ubuntu 20.04 LTS linux-aws-5.13 5.13.0-1011.12~20.04.1 —
Ubuntu 20.04 LTS linux-azure 5.4.0-1067.70 USN-5240-1
Ubuntu 20.04 LTS linux-azure-5.13 5.13.0-1012.14~20.04.1 —
Ubuntu 20.04 LTS linux-bluefield 5.4.0-1025.28 USN-5240-1
Ubuntu 20.04 LTS linux-gcp 5.4.0-1062.66 USN-5240-1
Ubuntu 20.04 LTS linux-gcp-5.11 5.11.0-1028.32~20.04.1 USN-5240-1
Ubuntu 20.04 LTS linux-gcp-5.13 5.13.0-1012.15~20.04.1 —
Ubuntu 20.04 LTS linux-gke 5.4.0-1059.62 USN-5240-1
Ubuntu 20.04 LTS linux-gkeop 5.4.0-1031.32 USN-5240-1
Ubuntu 20.04 LTS linux-hwe-5.13 5.13.0-27.29~20.04.1 —
Ubuntu 20.04 LTS linux-ibm 5.4.0-1012.13 USN-5240-1
Ubuntu 20.04 LTS linux-intel-5.13 5.13.0-1010.10 USN-5362-1
Ubuntu 20.04 LTS linux-kvm 5.4.0-1053.55 USN-5240-1
Ubuntu 20.04 LTS linux-oem-5.10 5.10.0-1057.61 USN-5240-1
Ubuntu 20.04 LTS linux-oem-5.13 5.13.0-1028.35 USN-5240-1
Ubuntu 20.04 LTS linux-oem-5.14 5.14.0-1020.22 USN-5240-1
Ubuntu 20.04 LTS linux-oracle 5.4.0-1061.65 USN-5240-1
Ubuntu 20.04 LTS linux-oracle-5.13 5.13.0-1015.19~20.04.1 —
Ubuntu 20.04 LTS linux-raspi 5.4.0-1050.56 USN-5240-1
Ubuntu 20.04 LTS linux-riscv +9 No fix yet —
Ubuntu 20.04 LTS linux-riscv-5.11 5.11.0-1028.31~20.04.1 —
Ubuntu 18.04 LTS linux-aws-5.4 5.4.0-1063.66~18.04.1 USN-5240-1
Ubuntu 18.04 LTS linux-azure-5.4 5.4.0-1067.70~18.04.1 USN-5240-1
Ubuntu 18.04 LTS linux-gcp +12 No fix yet —
Ubuntu 18.04 LTS linux-gcp-5.4 5.4.0-1062.66~18.04.1 USN-5240-1
Ubuntu 18.04 LTS linux-gke-5.4 5.4.0-1059.62~18.04.1 USN-5240-1
Ubuntu 18.04 LTS linux-gkeop-5.4 5.4.0-1031.32~18.04.1 USN-5240-1
Ubuntu 18.04 LTS linux-hwe-5.4 5.4.0-96.109~18.04.1 USN-5240-1
Ubuntu 18.04 LTS linux-ibm-5.4 5.4.0-1012.13~18.04.1 —
Ubuntu 18.04 LTS linux-oracle-5.4 5.4.0-1061.65~18.04.1 USN-5240-1
Ubuntu 18.04 LTS linux-raspi-5.4 5.4.0-1050.56~18.04.1 USN-5240-1
Ubuntu 16.04 LTS linux-hwe-edge No fix yet —
Show 4 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-1040.46 —
Ubuntu Pro FIPS-updates 20.04 LTS linux-gcp-fips 5.4.0-1067.71~20.04.1 —
Ubuntu Pro 20.04 LTS linux 5.4.0-96.109 LSN-0084-1
Ubuntu Pro 20.04 LTS linux-aws 5.4.0-1063.66 LSN-0084-1
Ubuntu Pro 20.04 LTS linux-azure 5.4.0-1067.70 LSN-0084-1
Ubuntu Pro 20.04 LTS linux-gcp 5.4.0-1062.66 LSN-0084-1
Ubuntu Pro 20.04 LTS linux-gke 5.4.0-1059.62 LSN-0084-1
Ubuntu Pro 20.04 LTS linux-gkeop 5.4.0-1031.32 LSN-0084-1
Ubuntu Pro 20.04 LTS linux-ibm 5.4.0-1012.13 LSN-0084-1
Ubuntu Pro 18.04 LTS linux-gke-5.4 5.4.0-1059.62~18.04.1 LSN-0084-1
Ubuntu Pro 18.04 LTS linux-gkeop-5.4 5.4.0-1031.32~18.04.1 LSN-0084-1
Ubuntu Pro 18.04 LTS linux-hwe-5.4 5.4.0-96.109~18.04.1 LSN-0084-1
Ubuntu Pro 18.04 LTS linux-ibm-5.4 5.4.0-1012.13~18.04.1 LSN-0084-1
ReleasePackageFixed inAdvisory
RHEL 8 kernel-rt +12 4.18.0-348.12.2.rt7.143.el8_5 RHSA-2022:0176
RHEL 8 kpatch-patch-4_18_0-348 1-2.el8 RHSA-2022:0232
RHEL 8 kpatch-patch-4_18_0-348_2_1 +1 1-1.el8_5 RHSA-2022:0232
RHEL 8 perf +25 4.18.0-348.12.2.el8_5 RHSA-2022:0188
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Red Hat Rhev Hypervisor 4 redhat-virtualization-host +1 4.4.10-202202081536_8.5 RHSA-2022:0540
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.12.2.el8_5 ALSA-2022:0188

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 8 kernel 4.18.0-348.12.2.el8_5 RLSA-2022:0188
Rocky Linux 8 kernel-rt 4.18.0-348.12.2.rt7.143.el8_5 RLSA-2022:0176
ReleasePackageFixed inAdvisory
SLES 15 SP3 kernel-64kb +7 5.3.18-150300.59.43.1 SUSE-SU-2022:0198-1
SLES 15 SP3 kernel-azure +2 5.3.18-150300.38.37.1 SUSE-SU-2022:0169-1
SLES 15 SP3 kernel-default-base 5.3.18-150300.59.43.1.150300.18.27.1 SUSE-SU-2022:0198-1
SLES 15 SP2 kernel-default-base 5.3.18-24.99.1.9.46.1 SUSE-SU-2022:0197-1
SLES 15 SP2 kernel-docs +5 5.3.18-24.99.1 SUSE-SU-2022:0197-1
Show 12 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES for SAP 15 SP2 kernel-default-base 5.3.18-24.99.1.9.46.1 SUSE-SU-2022:0197-1
SLES for SAP 15 SP2 kernel-docs +5 5.3.18-24.99.1 SUSE-SU-2022:0197-1
SLE Micro 5.1 kernel-default 5.3.18-150300.59.43.1 SUSE-SU-2022:0198-1
SLE Micro 5.1 kernel-default-base 5.3.18-150300.59.43.1.150300.18.27.1 SUSE-SU-2022:0198-1
SLE Micro 5.1 kernel-rt 5.3.18-150300.71.1 SUSE-SU-2022:0288-1
SLE Micro 5.0 kernel-default 5.3.18-24.99.1 SUSE-SU-2022:0197-1
SLE Micro 5.0 kernel-default-base 5.3.18-24.99.1.9.46.1 SUSE-SU-2022:0197-1
SLE Micro 5.0 kernel-rt 5.3.18-68.1 SUSE-SU-2022:0289-1
SLE Live Patching 15 SP3 kernel-default 5.3.18-150300.59.43.1 SUSE-SU-2022:0198-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_10 +1 2-150300.2.2 SUSE-SU-2022:0262-1
SLE Live Patching 15 SP3 kernel-livepatch-SLE15-SP3_Update_12 1-150300.7.3.1 SUSE-SU-2022:0198-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 SP3 kernel-livepatch-SLE15-SP3_Update_6 +1 4-150300.2.2 SUSE-SU-2022:0270-1
SLE Live Patching 15 SP3 kernel-livepatch-SLE15-SP3_Update_9 3-150300.2.2 SUSE-SU-2022:0262-1
SLE Live Patching 15 SP2 kernel-default 5.3.18-24.99.1 SUSE-SU-2022:0197-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
SLE Live Patching 15 SP2 kernel-livepatch-SLE15-SP2_Update_19 4-2.2 SUSE-SU-2022:0238-1
SLE Live Patching 15 SP2 kernel-livepatch-SLE15-SP2_Update_20 4-2.3 SUSE-SU-2022:0238-1
SLE Live Patching 15 SP2 kernel-livepatch-SLE15-SP2_Update_21 3-2.2 SUSE-SU-2022:0239-1
SLE Live Patching 15 SP2 kernel-livepatch-SLE15-SP2_Update_22 2-2.2 SUSE-SU-2022:0239-1
SLE Live Patching 15 SP2 kernel-livepatch-SLE15-SP2_Update_23 1-5.3.1 SUSE-SU-2022:0197-1
SLE HPC 15 SP2 kernel-default-base 5.3.18-24.99.1.9.46.1 SUSE-SU-2022:0197-1
SLE HPC 15 SP2 kernel-docs +5 5.3.18-24.99.1 SUSE-SU-2022:0197-1
SUSE Real Time Module 15 SP3 kernel-rt +3 5.3.18-150300.71.1 SUSE-SU-2022:0288-1
SUSE Real Time Module 15 SP2 kernel-rt +3 5.3.18-68.1 SUSE-SU-2022:0289-1
SUSE Manager Server 4.1 kernel-default-base 5.3.18-24.99.1.9.46.1 SUSE-SU-2022:0197-1
SUSE Manager Server 4.1 kernel-docs +5 5.3.18-24.99.1 SUSE-SU-2022:0197-1
SUSE Manager Retail Branch Server 4.1 kernel-default-base 5.3.18-24.99.1.9.46.1 SUSE-SU-2022:0197-1
SUSE Manager Retail Branch Server 4.1 kernel-docs +4 5.3.18-24.99.1 SUSE-SU-2022:0197-1
SUSE Manager Proxy 4.1 kernel-default-base 5.3.18-24.99.1.9.46.1 SUSE-SU-2022:0197-1
SUSE Manager Proxy 4.1 kernel-docs +4 5.3.18-24.99.1 SUSE-SU-2022:0197-1
SUSE Enterprise Storage 7 kernel-default-base 5.3.18-24.99.1.9.46.1 SUSE-SU-2022:0197-1
SUSE Enterprise Storage 7 kernel-docs +5 5.3.18-24.99.1 SUSE-SU-2022:0197-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed kernel-source 5.16.2-1.1 openSUSE-SU-2024:13704-1, openSUSE-SU-2024:11775-1
openSUSE Leap 15.3 dtb-aarch64 +11 5.3.18-150300.59.43.1 openSUSE-SU-2022:0198-1
openSUSE Leap 15.3 kernel-azure +2 5.3.18-150300.38.37.1 openSUSE-SU-2022:0169-1
openSUSE Leap 15.3 kernel-default-base 5.3.18-150300.59.43.1.150300.18.27.1 openSUSE-SU-2022:0198-1

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2023 kernel-livepatch-6.1.10-15.42 1.0-0.amzn2023 ALAS2023-2023-070
Amazon Linux 2023 perf +12 6.1.10-15.42.amzn2023 ALAS2023-2023-070

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 2 (CBL-Mariner) kernel 5.15.26.1-1 —

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 8 perf +19 4.18.0-348.12.2.el8_5 ELSA-2022-0188
Oracle Linux 7 kernel-uek +4 5.4.17-2136.302.7.2.1.el8uek ELSA-2022-9147, ELSA-2022-9028
Oracle Linux 7 kernel-uek-container +1 5.4.17-2136.302.7.2.1.el8 ELSA-2022-9148, ELSA-2022-9029
Oracle Linux 7 perf +3 5.4.17-2136.302.7.2.1.el7uek ELSA-2022-9147, ELSA-2022-9028

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 11 repositories · most starred shown

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

Advisories 41

References