cve.bz

CVE-2022-0847 (Dirty Pipe) Linux Kernel Privilege Escalation Vulnerability

7.8 highKEVExploitEPSS 93%Fix available

Known as Dirty Pipe

High (7.8) in Linux Kernel. In CISA KEV since 2022-04-25. EPSS 93% estimated probability of exploitation activity in the next 30 days.

On this page
A flaw was found in the way the "flags" member of the new pipe buffer structure was lacking proper initialization in copy_page_to_iter_pipe and push_pipe functions in the Linux kernel and could thus contain stale values. An unprivileged local user could use this flaw to write to pages in the page cache backed by read only files and as such escalate their privileges on the system.

Severity

CVSS 3.1

7.8 high
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS
93% (unchanged from 93% a week ago; 93% 30 days ago) estimated probability of exploitation activity in the next 30 days; 100th percentile. Scored 2026-11-21. A forecast for this CVE across the internet, not for your own systems.
CISA KEV
listed 2022-04-25, due 2022-05-16
CISA's assessment (SSVC)
Exploitation: active · Automatable: no · Technical impact: total, assessed 2025-02-04. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-665 Improper Initialization
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-0847 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2022-0847?via=ask-ai-copy and https://cve.bz/cve/CVE-2022-0847?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-0847 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.8 before 5.10.102
linux:linux_kernelfrom 5.15 before 5.15.25
linux:linux_kernelfrom 5.16 before 5.16.11
fedoraproject:fedora35
redhat:enterprise_linux8.0
redhat:enterprise_linux_eus8.2
redhat:enterprise_linux_eus8.4
redhat:enterprise_linux_for_ibm_z_systems8.0
redhat:enterprise_linux_for_ibm_z_systems_eus8.2
redhat:enterprise_linux_for_ibm_z_systems_eus8.4
redhat:enterprise_linux_for_power_little_endian8.0
redhat:enterprise_linux_for_power_little_endian_eus8.2
redhat:enterprise_linux_for_power_little_endian_eus8.4
redhat:enterprise_linux_for_real_time8
redhat:enterprise_linux_for_real_time_for_nfv8
redhat:enterprise_linux_for_real_time_for_nfv_tus8.2
redhat:enterprise_linux_for_real_time_for_nfv_tus8.4
redhat:enterprise_linux_for_real_time_tus8.2
redhat:enterprise_linux_for_real_time_tus8.4
redhat:enterprise_linux_server_aus8.2
redhat:enterprise_linux_server_aus8.4
redhat:enterprise_linux_server_for_power_little_endian_update_services_for_sap_solutions8.1
redhat:enterprise_linux_server_for_power_little_endian_update_services_for_sap_solutions8.2
redhat:enterprise_linux_server_for_power_little_endian_update_services_for_sap_solutions8.4
redhat:enterprise_linux_server_tus8.2
redhat:enterprise_linux_server_tus8.4
redhat:enterprise_linux_server_update_services_for_sap_solutions8.1
redhat:enterprise_linux_server_update_services_for_sap_solutions8.2
redhat:enterprise_linux_server_update_services_for_sap_solutions8.4
redhat:virtualization_host4.0
ovirt:ovirt-engine4.4.10.2
siemens:scalance_lpe9403_firmwarebefore 2.0
sonicwall:sma1000_firmwarethrough 12.4.2-02044

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11linux5.10.92-2DSA-5092-1
Debian12, 13, 14linux5.16.11-1DEBIAN-CVE-2022-0847
Ubuntu16.04:LTSlinux-hwe-edgeno fix listedUBUNTU-CVE-2022-0847
Ubuntu18.04:LTSlinux-gcp, linux-hwe, linux-oem and 10 moreno fix listedUBUNTU-CVE-2022-0847
Ubuntu20.04:LTSlinux-aws-5.13, linux-azure-5.135.13.0-1017.19~20.04.1UBUNTU-CVE-2022-0847 USN-5317-1
Ubuntu20.04:LTSlinux-gcp-5.135.13.0-1019.23~20.04.1UBUNTU-CVE-2022-0847 USN-5317-1
Ubuntu20.04:LTSlinux-hwe-5.135.13.0-35.40~20.04.1UBUNTU-CVE-2022-0847 USN-5317-1
Ubuntu20.04:LTSlinux-intel-5.135.13.0-1010.10UBUNTU-CVE-2022-0847 USN-5362-1
Ubuntu20.04:LTSlinux-intel-iotg-5.155.15.0-1008.11~20.04.1UBUNTU-CVE-2022-0847
Ubuntu20.04:LTSlinux-oem-5.145.14.0-1027.30UBUNTU-CVE-2022-0847 USN-5317-1
Ubuntu20.04:LTSlinux-oracle-5.135.13.0-1021.26~20.04.1UBUNTU-CVE-2022-0847 USN-5317-1
Ubuntu20.04:LTSlinux-riscv, linux-raspi2, linux-aws-5.8 and 14 moreno fix listedUBUNTU-CVE-2022-0847
Red Hatenterprise_linux:8::baseosperf, kernel, bpftool and 30 more0:4.18.0-348.20.1.el8_5RHSA-2022:0825
Red Hatenterprise_linux:8::crbperf-debuginfo, kernel-debuginfo, bpftool-debuginfo and 7 more0:4.18.0-348.20.1.el8_5RHSA-2022:0825
Red Hatenterprise_linux:8::nfvkernel-rt, kernel-rt-kvm, kernel-rt-core and 12 more0:4.18.0-348.20.1.rt7.150.el8_5RHSA-2022:0819
Red Hatenterprise_linux:8::realtimekernel-rt, kernel-rt-core, kernel-rt-debug and 10 more0:4.18.0-348.20.1.rt7.150.el8_5RHSA-2022:0819
Red Hatrhel_e4s:8.1::baseosperf, kernel, bpftool and 22 more0:4.18.0-147.64.1.el8_1RHSA-2022:0823
Red Hatrhel_eus:8.2::baseosperf, kernel, bpftool and 30 more0:4.18.0-193.79.1.el8_2RHSA-2022:0820
Red Hatrhel_eus:8.2::crbperf-debuginfo, kernel-debuginfo, bpftool-debuginfo and 7 more0:4.18.0-193.79.1.el8_2RHSA-2022:0820
Red Hatrhel_eus:8.2::nfvkernel-rt, kernel-rt-kvm, kernel-rt-core and 12 more0:4.18.0-193.79.1.rt13.129.el8_2RHSA-2022:0821
Red Hatrhel_eus:8.2::realtimekernel-rt, kernel-rt-core, kernel-rt-debug and 10 more0:4.18.0-193.79.1.rt13.129.el8_2RHSA-2022:0821
Red Hatrhel_eus:8.4::baseosperf, kernel, bpftool and 30 more0:4.18.0-305.40.2.el8_4RHSA-2022:0831
Red Hatrhel_eus:8.4::crbperf-debuginfo, kernel-debuginfo, bpftool-debuginfo and 7 more0:4.18.0-305.40.2.el8_4RHSA-2022:0831
Red Hatrhel_eus:8.4::nfvkernel-rt, kernel-rt-kvm, kernel-rt-core and 12 more0:4.18.0-305.40.2.rt7.113.el8_4RHSA-2022:0822
2 more for Red Hat in the JSON and on Red Hat's page.
SUSEEnterprise Storage 6, Linux Enterprise High Performance Computing 15 SP1-ESPOS, Linux Enterprise High Performance Computing 15 SP1-LTSS and 2 morekernel-docs, kernel-syms, kernel-source and 2 more4.12.14-197.108.1SUSE-SU-2022:0768-1
SUSEEnterprise Storage 7, Linux Enterprise High Performance Computing 15 SP2-ESPOS, Linux Enterprise High Performance Computing 15 SP2-LTSS and 8 morekernel-default-base5.3.18-24.107.1.9.50.2SUSE-SU-2022:0759-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.107.1SUSE-SU-2022:0759-1
SUSELinux Enterprise High Availability Extension 12 SP4, Linux Enterprise Live Patching 12 SP4kernel-default4.12.14-95.93.1SUSE-SU-2022:0757-1
SUSELinux Enterprise High Availability Extension 12 SP5, Linux Enterprise Live Patching 12 SP5, Linux Enterprise Workstation Extension 12 SP5kernel-default4.12.14-122.113.1SUSE-SU-2022:0767-1
SUSELinux Enterprise High Availability Extension 15, Linux Enterprise Live Patching 15kernel-default4.12.14-150.86.1SUSE-SU-2022:0766-1
SUSELinux Enterprise High Availability Extension 15 SP1, Linux Enterprise Live Patching 15 SP1kernel-default4.12.14-197.108.1SUSE-SU-2022:0768-1
SUSELinux Enterprise High Availability Extension 15 SP2, Linux Enterprise Live Patching 15 SP2, Linux Enterprise Micro 5.0kernel-default5.3.18-24.107.1SUSE-SU-2022:0759-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.54.1SUSE-SU-2022:0760-1
SUSELinux Enterprise High Performance Computing 15-ESPOS, Linux Enterprise High Performance Computing 15-LTSS, Linux Enterprise Server for SAP Applications 15kernel-docs, kernel-syms, kernel-source and 3 more4.12.14-150.86.1SUSE-SU-2022:0766-1
SUSELinux Enterprise Live Patching 12 SP4kgraft-patch-SLE12-SP4_Update_251-6.5.1SUSE-SU-2022:0757-1
SUSELinux Enterprise Live Patching 12 SP5kgraft-patch-SLE12-SP5_Update_291-8.3.1SUSE-SU-2022:0767-1
21 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.54.1openSUSE-SU-2022:0760-1
openSUSELeap 15.3kernel-azure, kernel-syms-azure, kernel-source-azure5.3.18-150300.38.47.1openSUSE-SU-2022:0755-1
openSUSELeap 15.3kernel-debug, kernel-default, kernel-vanilla and 2 more4.12.14-197.108.1openSUSE-SU-2022:0768-1
openSUSELeap 15.3kernel-default-base5.3.18-150300.59.54.1.150300.18.35.3openSUSE-SU-2022:0760-1
openSUSETumbleweedkernel-source5.16.14-1.1openSUSE-SU-2024:11910-1
openSUSETumbleweedkernel-source6.6.17-1.1openSUSE-SU-2024:13704-1
AlmaLinux8kernel-tools-libs-devel4.18.0-348.20.1.el8_5ALSA-2022:0825
Rocky Linux8kernel0:4.18.0-348.20.1.el8_5RLSA-2022:0825
Rocky Linux8kernel-rt0:4.18.0-348.20.1.rt7.150.el8_5RLSA-2022:0819
Azure Linux2kernel5.15.26.1-1AZL-8900

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

Red Hat Product Security is aware of this issue. Updates will be released as they become available.

Note that PIPE_BUF_FLAG_CAN_MERGE flag attack vector is not available in Red Hat Enterprise Linux 8 and thus the currently known exploits leveraging this flag do not work. The underlying issue (lack of proper pipe_buffer structure initialization) is still present though and other novel ways leading to successful exploitation cannot be fully ruled out.

Red Hat's mitigation

Currently there is no mitigation available for this flaw. Customers should update to fixed packages, once they are available.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8kernel-rt-0:4.18.0-348.20.1.rt7.150.el8_5Fixed 2022-03-10RHSA-2022:0819
Red Hat Enterprise Linux 8kernel-0:4.18.0-348.20.1.el8_5Fixed 2022-03-10RHSA-2022:0825
Red Hat Enterprise Linux 8.1 Update Services for SAP Solutionskernel-0:4.18.0-147.64.1.el8_1Fixed 2022-03-10RHSA-2022:0823
Red Hat Enterprise Linux 8.2 Extended Update Supportkernel-rt-0:4.18.0-193.79.1.rt13.129.el8_2Fixed 2022-03-10RHSA-2022:0821
Red Hat Enterprise Linux 8.2 Extended Update Supportkernel-0:4.18.0-193.79.1.el8_2Fixed 2022-03-10RHSA-2022:0820
Red Hat Enterprise Linux 8.4 Extended Update Supportkernel-rt-0:4.18.0-305.40.2.rt7.113.el8_4Fixed 2022-03-10RHSA-2022:0822
Red Hat Enterprise Linux 8.4 Extended Update Supportkernel-0:4.18.0-305.40.2.el8_4Fixed 2022-03-10RHSA-2022:0831
Red Hat Virtualization 4 for Red Hat Enterprise Linux 8redhat-virtualization-host-0:4.4.10-202203101736_8.5Fixed 2022-03-14RHSA-2022:0841
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-0847.

ICS advisories (CISA)

AdvisoryTitlePublishedSectorsAffectedFixed
ICSA-22-167-09Siemens SCALANCE LPE9403 Third-Party Vulnerabilities2022-06-14MultipleSCALANCE LPE9403none listed

From CISA's ICS advisories (CSAF), provided under CISA's notification. Only the facts are shown; each advisory is on CISA's page. Credits.

Public exploits

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.

2 more

Attack patterns (CAPEC)

  • CAPEC-26 Leveraging Race Conditions Likelihood: High · Severity: High
  • CAPEC-29 Leveraging Time-of-Check and Time-of-Use (TOCTOU) Race Conditions 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