cve.bz

CVE-2022-0185 Linux Kernel Heap-Based Buffer Overflow Vulnerability

8.4 highKEVExploit referenceEPSS 25%Fix available

High (8.4) in Linux Kernel. In CISA KEV since 2024-08-21. EPSS 25% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

8.4 high
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
25% (unchanged from 25% a week ago; 25% 30 days ago) estimated probability of exploitation activity in the next 30 days; 98th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA KEV
listed 2024-08-21, due 2024-09-11
CISA's assessment (SSVC)
Exploitation: active · Automatable: no · Technical impact: total, assessed 2024-08-22. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-191 Integer Underflow (Wrap or Wraparound)
CWE-190 Integer Overflow or Wraparound (Year 2038 problem, Y2K38, Y2038, Epochalypse)
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2022-0185 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2022-0185?via=ask-ai-copy and https://cve.bz/cve/CVE-2022-0185?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2022-0185 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
linux:linux_kernelfrom 5.1 before 5.4.173
linux:linux_kernelfrom 5.5 before 5.10.93
linux:linux_kernelfrom 5.11 before 5.15.16
linux:linux_kernelfrom 5.16 before 5.16.2

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11linux5.10.92-1DSA-5050-1
Debian12, 13, 14linux5.15.15-1DEBIAN-CVE-2022-0185
Ubuntu16.04:LTSlinux-hwe-edgeno fix listedUBUNTU-CVE-2022-0185
Ubuntu18.04:LTSlinux-aws-5.45.4.0-1063.66~18.04.1UBUNTU-CVE-2022-0185 USN-5240-1
Ubuntu18.04:LTSlinux-azure-5.45.4.0-1067.70~18.04.1UBUNTU-CVE-2022-0185 USN-5240-1
Ubuntu18.04:LTSlinux-gcp, linux-hwe, linux-oem and 10 moreno fix listedUBUNTU-CVE-2022-0185
Ubuntu18.04:LTSlinux-gcp-5.45.4.0-1062.66~18.04.1UBUNTU-CVE-2022-0185 USN-5240-1
Ubuntu18.04:LTSlinux-gke-5.45.4.0-1059.62~18.04.1UBUNTU-CVE-2022-0185 USN-5240-1
Ubuntu18.04:LTSlinux-gkeop-5.45.4.0-1031.32~18.04.1UBUNTU-CVE-2022-0185 USN-5240-1
Ubuntu18.04:LTSlinux-hwe-5.45.4.0-96.109~18.04.1UBUNTU-CVE-2022-0185 USN-5240-1
Ubuntu18.04:LTSlinux-ibm-5.45.4.0-1012.13~18.04.1UBUNTU-CVE-2022-0185
Ubuntu18.04:LTSlinux-oracle-5.45.4.0-1061.65~18.04.1UBUNTU-CVE-2022-0185 USN-5240-1
Ubuntu18.04:LTSlinux-raspi-5.45.4.0-1050.56~18.04.1UBUNTU-CVE-2022-0185 USN-5240-1
Ubuntu20.04:LTSlinux5.4.0-96.109UBUNTU-CVE-2022-0185 USN-5240-1
41 more for Ubuntu in the JSON and on Ubuntu's page.
Red Hatenterprise_linux:8::baseoskpatch-patch-4_18_0-348, kpatch-patch-4_18_0-348-debuginfo, kpatch-patch-4_18_0-348-debugsource0:1-2.el8RHSA-2022:0232
Red Hatenterprise_linux:8::baseoskpatch-patch-4_18_0-348_2_1, kpatch-patch-4_18_0-348_7_1, kpatch-patch-4_18_0-348_2_1-debuginfo and 3 more0:1-1.el8_5RHSA-2022:0232
Red Hatenterprise_linux:8::baseosperf, kernel, bpftool and 29 more0:4.18.0-348.12.2.el8_5RHSA-2022:0188
Red Hatenterprise_linux:8::crbperf-debuginfo, kernel-debuginfo, bpftool-debuginfo and 7 more0:4.18.0-348.12.2.el8_5RHSA-2022:0188
Red Hatenterprise_linux:8::nfvkernel-rt, kernel-rt-kvm, kernel-rt-core and 12 more0:4.18.0-348.12.2.rt7.143.el8_5RHSA-2022:0176
Red Hatenterprise_linux:8::realtimekernel-rt, kernel-rt-core, kernel-rt-debug and 10 more0:4.18.0-348.12.2.rt7.143.el8_5RHSA-2022:0176
Red Hatrhel_eus:8.4::baseoskpatch-patch-4_18_0-305, kpatch-patch-4_18_0-305-debuginfo, kpatch-patch-4_18_0-305-debugsource0:1-10.el8RHSA-2022:0231
Red Hatrhel_eus:8.4::baseoskpatch-patch-4_18_0-305_10_2, kpatch-patch-4_18_0-305_10_2-debuginfo, kpatch-patch-4_18_0-305_10_2-debugsource0:1-7.el8_4RHSA-2022:0231
Red Hatrhel_eus:8.4::baseoskpatch-patch-4_18_0-305_12_1, kpatch-patch-4_18_0-305_12_1-debuginfo, kpatch-patch-4_18_0-305_12_1-debugsource0:1-6.el8_4RHSA-2022:0231
Red Hatrhel_eus:8.4::baseoskpatch-patch-4_18_0-305_17_1, kpatch-patch-4_18_0-305_19_1, kpatch-patch-4_18_0-305_17_1-debuginfo and 3 more0:1-5.el8_4RHSA-2022:0231
Red Hatrhel_eus:8.4::baseoskpatch-patch-4_18_0-305_25_1, kpatch-patch-4_18_0-305_25_1-debuginfo, kpatch-patch-4_18_0-305_25_1-debugsource0:1-4.el8_4RHSA-2022:0231
Red Hatrhel_eus:8.4::baseoskpatch-patch-4_18_0-305_28_1, kpatch-patch-4_18_0-305_30_1, kpatch-patch-4_18_0-305_28_1-debuginfo and 3 more0:1-2.el8_4RHSA-2022:0231
7 more for Red Hat in the JSON and on Red Hat's page.
SUSEEnterprise Storage 7, Linux Enterprise High Performance Computing 15 SP2-ESPOS, Linux Enterprise High Performance Computing 15 SP2-LTSS and 7 morekernel-default-base5.3.18-24.99.1.9.46.1SUSE-SU-2022:0197-1
SUSEEnterprise Storage 7, Linux Enterprise High Performance Computing 15 SP2-ESPOS, Linux Enterprise High Performance Computing 15 SP2-LTSS and 3 morekernel-docs, kernel-syms, kernel-source and 3 more5.3.18-24.99.1SUSE-SU-2022:0197-1
SUSELinux Enterprise High Availability Extension 15 SP2, Linux Enterprise Live Patching 15 SP2, Linux Enterprise Micro 5.0kernel-default5.3.18-24.99.1SUSE-SU-2022:0197-1
SUSELinux Enterprise High Availability Extension 15 SP3, Linux Enterprise Live Patching 15 SP3, Linux Enterprise Micro 5.1 and 1 morekernel-default5.3.18-150300.59.43.1SUSE-SU-2022:0198-1
SUSELinux Enterprise Live Patching 15 SP2kernel-livepatch-SLE15-SP2_Update_1014-2.2SUSE-SU-2022:0291-1
SUSELinux Enterprise Live Patching 15 SP2kernel-livepatch-SLE15-SP2_Update_1113-2.2SUSE-SU-2022:0291-1
SUSELinux Enterprise Live Patching 15 SP2kernel-livepatch-SLE15-SP2_Update_1210-2.2SUSE-SU-2022:0254-1
SUSELinux Enterprise Live Patching 15 SP2kernel-livepatch-SLE15-SP2_Update_1310-2.2SUSE-SU-2022:0292-1
SUSELinux Enterprise Live Patching 15 SP2kernel-livepatch-SLE15-SP2_Update_14, kernel-livepatch-SLE15-SP2_Update_168-2.2SUSE-SU-2022:0241-1
SUSELinux Enterprise Live Patching 15 SP2kernel-livepatch-SLE15-SP2_Update_158-2.2SUSE-SU-2022:0254-1
SUSELinux Enterprise Live Patching 15 SP2kernel-livepatch-SLE15-SP2_Update_177-2.2SUSE-SU-2022:0241-1
SUSELinux Enterprise Live Patching 15 SP2kernel-livepatch-SLE15-SP2_Update_186-2.2SUSE-SU-2022:0241-1
24 more for SUSE in the JSON and on SUSE's page.
openSUSELeap 15.3dtb-aarch64, kernel-64kb, kernel-docs and 9 more5.3.18-150300.59.43.1openSUSE-SU-2022:0198-1
openSUSELeap 15.3kernel-azure, kernel-syms-azure, kernel-source-azure5.3.18-150300.38.37.1openSUSE-SU-2022:0169-1
openSUSELeap 15.3kernel-default-base5.3.18-150300.59.43.1.150300.18.27.1openSUSE-SU-2022:0198-1
openSUSETumbleweedkernel-source5.16.2-1.1openSUSE-SU-2024:11775-1
openSUSETumbleweedkernel-source6.6.17-1.1openSUSE-SU-2024:13704-1
AlmaLinux8kernel-tools-libs-devel4.18.0-348.12.2.el8_5ALSA-2022:0188
Rocky Linux8kernel0:4.18.0-348.12.2.el8_5RLSA-2022:0188
Rocky Linux8kernel-rt0:4.18.0-348.12.2.rt7.143.el8_5RLSA-2022:0176
Azure Linux2kernel5.15.26.1-1AZL-8578

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE.

Red Hat

Red Hat rates this Important.

Red Hat's statement

This issue affects the Linux kernel packages as shipped with Red Hat Enterprise Linux 8.4 GA onwards. Previous Red Hat Enterprise Linux versions are not affected.

Red Hat's mitigation

On non-containerized deployments of Red Hat Enterprise Linux 8, you can disable user namespaces by setting user.max_user_namespaces to 0:

# echo "user.max_user_namespaces=0" > /etc/sysctl.d/userns.conf

# sysctl -p /etc/sysctl.d/userns.conf

On containerized deployments, such as Red Hat OpenShift Container Platform, do not use this mitigation as the functionality is needed to be enabled.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8kernel-rt-0:4.18.0-348.12.2.rt7.143.el8_5Fixed 2022-01-19RHSA-2022:0176
Red Hat Enterprise Linux 8kernel-0:4.18.0-348.12.2.el8_5Fixed 2022-01-19RHSA-2022:0188
Red Hat Enterprise Linux 8kpatch-patchFixed 2022-01-24RHSA-2022:0232
Red Hat Enterprise Linux 8.4 Extended Update Supportkernel-rt-0:4.18.0-305.34.2.rt7.107.el8_4Fixed 2022-01-19RHSA-2022:0187
Red Hat Enterprise Linux 8.4 Extended Update Supportkernel-0:4.18.0-305.34.2.el8_4Fixed 2022-01-19RHSA-2022:0186
Red Hat Enterprise Linux 8.4 Extended Update Supportkpatch-patchFixed 2022-01-24RHSA-2022:0231
Red Hat Virtualization 4 for Red Hat Enterprise Linux 8redhat-virtualization-host-0:4.4.10-202202081536_8.5Fixed 2022-02-15RHSA-2022:0540
Red Hat Enterprise Linux 6kernelNot affected
Red Hat Enterprise Linux 7kernelNot affected
Red Hat Enterprise Linux 7kernel-rtNot affected
Red Hat Enterprise Linux 9kernelNot affected
Red Hat Enterprise Linux 9kernel-rtNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2022-0185.

GitHub PoC

Repositories on GitHub named after this CVE or listed for it by the PoC-in-GitHub index. For those marked Harbor Check: matches CVE, Flawharbor read the code and found it implements this CVE's exploitation technique: read, not run, and its dependencies only checked for warning signs, so a pointer and no guarantee. The rest are unverified: some hold a working proof of concept, some nothing useful, and some malware made to look like one. Read the code before you run any of it. How Harbor Check reads them, and what it found.

Attack patterns (CAPEC)

  • CAPEC-92 Forced Integer Overflow Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON