CVE-2022-0847highunder attackCWE-665

CVE-2022-0847: high-severity vulnerability in kernel

Published · Updated

E-mail alert when it lands in KEV, gets a public PoC or its score goes up.

100Vexday Risk Score

Patch now. It under exploitation confirmed by CISA, has a working public exploit and 1 threat group(s) use it.

ssvc Actcvss 7.8epss 93%
from disclosure to weaponsame day
Published on NVDMar 7
1st PoCMar 30
metasploitFeb 20
CISA KEV+49d
Who exploits it — 1

Groups known to exploit this vulnerability (MITRE ATT&CK attribution).

What the vendors declare (VEX)

Official vendor statements in CSAF/VEX format: whether their product is affected, already fixed, or ruled out — and why. These are the vendor's assertions, not Vexday's judgment.

Fixed
14 products (499 components)
Red Hat Enterprise Linux BaseOS (v. 8) · Red Hat Enterprise Linux BaseOS EUS (v. 8.2) · Red Hat Enterprise Linux BaseOS EUS (v.8.4) · Red Hat Enterprise Linux BaseOS E4S (v. 8.1) · Red Hat CodeReady Linux Builder (v. 8) · and others 9
Not affected
4 products (154 components) — because the vulnerable code is not present in the product
Red Hat Enterprise Linux 9 · Red Hat Enterprise Linux 7 · Red Hat Enterprise Linux 6 · RHEL 8-based RHEV-H for RHEV 4 (build requirements)
Action required by CISAfederal deadline: 2022-05-16

Apply updates per vendor instructions.

In short

A Linux kernel flaw allows unprivileged users to write to read-only files through uninitialized memory in pipe functions, enabling privilege escalation on affected systems.

Technical detail

The vulnerability exists in copy_page_to_iter_pipe and push_pipe functions where the 'flags' member of the pipe buffer structure is not properly initialized, allowing stale values to persist. An unprivileged local attacker can exploit this to write arbitrary data to page cache pages backed by read-only files, bypassing access controls and escalating privileges.

Summary generated and translated by AI from the official description.

The full analysis of this CVE is available in Portuguese →

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.
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Affected products
n/a · kernel
public PoCs found — 211
exploitdbwww.exploit-db.com/exploits/50808unverifiedgithubgithub.com/Arinerron/CVE-2022-0847-DirtyPipe-Exploit★ 1140githubgithub.com/AlexisAhmed/CVE-2022-0847-DirtyPipe-Exploits★ 738githubgithub.com/r1is/CVE-2022-0847★ 281githubgithub.com/Al1ex/CVE-2022-0847★ 90githubgithub.com/DataDog/dirtypipe-container-breakout-poc★ 77githubgithub.com/basharkey/CVE-2022-0847-dirty-pipe-checker★ 72githubgithub.com/ZZ-SOCMAP/CVE-2022-0847★ 58githubgithub.com/bbaranoff/CVE-2022-0847★ 50githubgithub.com/febinrev/dirtypipez-exploit★ 49githubgithub.com/knqyf263/CVE-2022-0847★ 46githubgithub.com/greenhandatsjtu/CVE-2022-0847-Container-Escape★ 37githubgithub.com/airbus-cert/dirtypipe-ebpf_detection★ 29githubgithub.com/chenaotian/CVE-2022-0847★ 25githubgithub.com/ahrixia/CVE_2022_0847★ 21githubgithub.com/breachnix/dirty-pipe-poc★ 15githubgithub.com/0xIronGoat/dirty-pipe★ 13githubgithub.com/crusoe112/DirtyPipePython★ 11githubgithub.com/LudovicPatho/CVE-2022-0847_dirty-pipe★ 10githubgithub.com/crowsec-edtech/Dirty-Pipe★ 10githubgithub.com/rexpository/linux-privilege-escalation★ 9githubgithub.com/xndpxs/CVE-2022-0847★ 9githubgithub.com/h4ckm310n/CVE-2022-0847-eBPF★ 8githubgithub.com/drapl0n/dirtypipe★ 7githubgithub.com/qwert419/linux-★ 7githubgithub.com/Mustafa1986/CVE-2022-0847-DirtyPipe-Exploit★ 6githubgithub.com/4luc4rdr5290/CVE-2022-0847★ 6githubgithub.com/arttnba3/CVE-2022-0847★ 6githubgithub.com/KianaBin/CVE-2022-0847-Container-Escape★ 5githubgithub.com/nanaao/dirtyPipe-automaticRoot★ 4githubgithub.com/DanaEpp/pwncat_dirtypipe★ 4githubgithub.com/jpts/CVE-2022-0847-DirtyPipe-Container-Breakout★ 3githubgithub.com/eduquintanilha/CVE-2022-0847-DirtyPipe-Exploits★ 3githubgithub.com/byteReaper77/Dirty-Pipe★ 3githubgithub.com/Shotokhan/cve_2022_0847_shellcode★ 3githubgithub.com/bluedragonsecurity/Linux-Kernel-Dirty-Pipe-Exploitation-Logic-Bug-★ 3githubgithub.com/gyaansastra/CVE-2022-0847★ 3githubgithub.com/sa-infinity8888/Dirty-Pipe-CVE-2022-0847★ 3githubgithub.com/EagleTube/CVE-2022-0847★ 3githubgithub.com/MrP1xel/CVE-2022-0847-dirty-pipe-kernel-checker★ 3githubgithub.com/zzzchuu/Dirty-Pipe★ 2githubgithub.com/VinuKalana/DirtyPipe-CVE-2022-0847★ 2githubgithub.com/ihenakaarachchi/debian11-dirty_pipe-patcher★ 2githubgithub.com/karanlvm/DirtyPipe-Exploit★ 2githubgithub.com/xiaoLvChen/CVE-2022-0847★ 2githubgithub.com/JlSakuya/CVE-2022-0847-container-escape★ 2githubgithub.com/tmoneypenny/CVE-2022-0847★ 2githubgithub.com/cspshivam/CVE-2022-0847-dirty-pipe-exploit★ 2githubgithub.com/rabomen/Dirty-Pipe★ 2githubgithub.com/Gustavo-Nogueira/Dirty-Pipe-Exploits★ 2githubgithub.com/puckiestyle/CVE-2022-0847★ 2githubgithub.com/dadhee/CVE-2022-0847_DirtyPipeExploit★ 2githubgithub.com/CYB3RK1D/CVE-2022-0847-POC★ 2githubgithub.com/mutur4/CVE-2022-0847★ 2githubgithub.com/mhanief/dirtypipe★ 2githubgithub.com/0xeremus/dirty-pipe-poc★ 2githubgithub.com/mattlloyddavies/ps-lab-cve-2022-0847★ 1githubgithub.com/Mephierr/DirtyPipe_exploit★ 1githubgithub.com/mrchucu1/CVE-2022-0847-Docker★ 1githubgithub.com/pashayogi/DirtyPipe★ 1githubgithub.com/lucksec/CVE-2022-0847★ 1githubgithub.com/joeymeech/CVE-2022-0847-Exploit-Implementation★ 1githubgithub.com/b4dboy17/Dirty-Pipe-Oneshot★ 1githubgithub.com/scopion/dirty-pipe★ 1githubgithub.com/muhammad1596/CVE-2022-0847-dirty-pipe-checker★ 1githubgithub.com/ITMarcin2211/CVE-2022-0847-DirtyPipe-Exploit★ 1githubgithub.com/realbatuhan/dirtypipetester★ 1githubgithub.com/ayushx007/CVE-2022-0847-DirtyPipe-Exploits★ 0githubgithub.com/mithunmadhukuttan/Dirty-Pipe-Exploit★ 0githubgithub.com/gaganhm3018-art/CVE-2022-0847-Dirty-Pipe-★ 0githubgithub.com/CPT-Jack-A-Castle/CVE-2022-0847★ 0githubgithub.com/ajith737/Dirty-Pipe-CVE-2022-0847-POCs★ 0githubgithub.com/isaiahsimeone/COMP3320-VAPT★ 0githubgithub.com/Greetdawn/CVE-2022-0847-DirtyPipe★ 0githubgithub.com/AyoubNajim/cve-2022-0847dirtypipe-exploit★ 0githubgithub.com/t1ckprivate/CVE-2022-0847-Dirty-Pipe★ 0githubgithub.com/real-tim-johnston/megaquagga-pentest-report★ 0githubgithub.com/githublihaha/DirtyPIPE-CVE-2022-0847★ 0githubgithub.com/SimoesCTT/Chrono-Drip-Temporal-Viscosity-Exploitation-Framework-CVE-2022-0847★ 0githubgithub.com/MingqiZhang7710/cve-2022-0847-poc-dockerimage★ 0githubgithub.com/Shadow-Spinner/CVE-2022-0847★ 0githubgithub.com/vudangducminh/CVE-2022-0847★ 0githubgithub.com/solomon12354/LockingGirl-----CVE-2022-0847-Dirty_Pipe_virus★ 0githubgithub.com/honeyvig/CVE-2022-0847-DirtyPipe-Exploit★ 0githubgithub.com/orsuprasad/CVE-2022-0847-DirtyPipe-Exploits★ 0githubgithub.com/Scouserr/cve-2022-0847-poc-dockerimage★ 0githubgithub.com/morgenm/dirtypipe★ 0githubgithub.com/aswanepo/DirtyPipe★ 0githubgithub.com/xsxtw/CVE-2022-0847★ 0githubgithub.com/edsonjt81/CVE-2022-0847-Linux★ 0githubgithub.com/ayushx007/CVE-2022-0847-dirty-pipe-checker★ 0githubgithub.com/gladiator-07/CVE-2022-0847★ 0githubgithub.com/pmihsan/Dirty-Pipe-CVE-2022-0847★ 0githubgithub.com/JustinYe377/CTF-CVE-2022-0847★ 0githubgithub.com/DataFox/CVE-2022-0847★ 0githubgithub.com/V0WKeep3r/CVE-2022-0847-DirtyPipe-Exploit★ 0githubgithub.com/notl0cal/dpipe★ 0githubgithub.com/stfnw/Debugging_Dirty_Pipe_CVE-2022-0847★ 0githubgithub.com/RogelioPumajulca/CVE-2022-0847★ 0githubgithub.com/cypherlobo/DirtyPipe-BSI★ 0githubgithub.com/stfnw/reproducer-poc-CVE-2022-0847★ 0githubgithub.com/edsonjt81/CVE-2022-0847-DirtyPipe-★ 0githubgithub.com/bohr777/cve-2022-0847dirtypipe-exploit★ 0githubgithub.com/tufanturhan/CVE-2022-0847-L-nux-PrivEsc★ 0githubgithub.com/nanaao/Dirtypipe-exploit★ 0githubgithub.com/pentestblogin/pentestblog-CVE-2022-0847★ 0githubgithub.com/muhammad1596/CVE-2022-0847-DirtyPipe-Exploits★ 0githubgithub.com/Greetdawn/CVE-2022-0847-DirtyPipe-★ 0githubgithub.com/si1ent-le/CVE-2022-0847★ 0githubgithub.com/babyshen/CVE-2022-0847★ 0githubgithub.com/osungjinwoo/CVE-2022-0847-Dirty-Pipe★ 0githubgithub.com/jonathanbest7/cve-2022-0847★ 0githubgithub.com/letsr00t/CVE-2022-0847★ 0githubgithub.com/0xr1l3s/CVE-2022-0847★ 0githubgithub.com/jxpsx/CVE-2022-0847-DirtyPipe-Exploits★ 0githubgithub.com/JeevanAnand1202/Penetration-Test★ 0vulncheckvulncheck.com/xdb/de3da6925a66unverifiedvulncheckvulncheck.com/xdb/e74c2b6094acunverifiedvulncheckvulncheck.com/xdb/d542c059ef55unverifiedvulncheckvulncheck.com/xdb/d3a70ff7bafdunverifiedvulncheckvulncheck.com/xdb/370b7021f8a9unverifiedvulncheckvulncheck.com/xdb/d3ad03153f6eunverifiedvulncheckvulncheck.com/xdb/0ff57a4fbafcunverifiedvulncheckvulncheck.com/xdb/71567122b30eunverifiedvulncheckvulncheck.com/xdb/82740f737207unverifiedvulncheckvulncheck.com/xdb/a83519a93931unverifiedvulncheckvulncheck.com/xdb/cbca31fa2346unverifiedvulncheckvulncheck.com/xdb/986760f90254unverifiedvulncheckvulncheck.com/xdb/7f2dbb1be2faunverifiedvulncheckvulncheck.com/xdb/7a4fbe4458fbunverifiedvulncheckvulncheck.com/xdb/f44fe86cdbd8unverifiedvulncheckvulncheck.com/xdb/3b34006b6ed8unverifiedvulncheckvulncheck.com/xdb/8700be3bde3funverifiedvulncheckvulncheck.com/xdb/d2e7f7cbb621unverifiedvulncheckvulncheck.com/xdb/fd2f2968f48cunverifiedvulncheckvulncheck.com/xdb/2d68d5611e4bunverifiedvulncheckvulncheck.com/xdb/53f491f20736unverifiedvulncheckvulncheck.com/xdb/e951505f0751unverifiedvulncheckvulncheck.com/xdb/39d930add800unverifiedcve_referencepacketstormsecurity.com/files/166229/Dirty-Pipe-Linux-Privilege-Escalation.htmlunverifiedcve_referencepacketstormsecurity.com/files/166230/Dirty-Pipe-SUID-Binary-Hijack-Privilege-Escalation.htmlunverifiedvulncheckvulncheck.com/xdb/23f7908c0128unverifiedvulncheckvulncheck.com/xdb/138c1f528926unverifiedvulncheckvulncheck.com/xdb/b13d9281b078unverifiedvulncheckvulncheck.com/xdb/4af6c6b2d9faunverifiedvulncheckvulncheck.com/xdb/441580173aadunverifiedvulncheckvulncheck.com/xdb/951d61d1ab37unverifiedvulncheckvulncheck.com/xdb/5dd309c2b552unverifiedvulncheckvulncheck.com/xdb/6ebf7b6504a2unverifiedvulncheckvulncheck.com/xdb/3a93ca8aad3bunverifiedvulncheckvulncheck.com/xdb/4ea09726ea3funverifiedvulncheckvulncheck.com/xdb/39fa7f44daa8unverifiedcve_referencepacketstormsecurity.com/files/166258/Dirty-Pipe-Local-Privilege-Escalation.htmlunverifiedcve_referencepacketstormsecurity.com/files/176534/Linux-4.20-KTLS-Read-Only-Write.htmlunverifiedvulncheckvulncheck.com/xdb/b79163ab5d39unverifiedvulncheckvulncheck.com/xdb/0e5084fd115dunverifiedvulncheckvulncheck.com/xdb/78ccb5ca6001unverifiedvulncheckvulncheck.com/xdb/b0f2e65d149eunverifiedvulncheckvulncheck.com/xdb/ad0555af2c4eunverifiedvulncheckvulncheck.com/xdb/284d54ae241eunverifiedvulncheckvulncheck.com/xdb/81ec8201d147unverifiedvulncheckvulncheck.com/xdb/62a32b16f531unverifiedvulncheckvulncheck.com/xdb/1d983c66b9c2unverifiedvulncheckvulncheck.com/xdb/e8b59d0e77abunverifiedvulncheckvulncheck.com/xdb/910f5455ae5cunverifiedvulncheckvulncheck.com/xdb/2f979ebf08d3unverifiedvulncheckvulncheck.com/xdb/1fddbe10b98cunverifiedvulncheckvulncheck.com/xdb/dac13270649eunverifiedvulncheckvulncheck.com/xdb/ae0f504dfd13unverifiedvulncheckvulncheck.com/xdb/3c8691664935unverifiedvulncheckvulncheck.com/xdb/42b2e65c9b7aunverifiedvulncheckvulncheck.com/xdb/24448907ff21unverifiedvulncheckvulncheck.com/xdb/b3c55c00c761unverifiedvulncheckvulncheck.com/xdb/00402542bab7unverifiedvulncheckvulncheck.com/xdb/4221c9725688unverifiedvulncheckvulncheck.com/xdb/e2dbb982b5daunverifiedvulncheckvulncheck.com/xdb/5753c6aff2e2unverifiedvulncheckvulncheck.com/xdb/df0bacb0b7bcunverifiedvulncheckvulncheck.com/xdb/4a62a2a669beunverifiedvulncheckvulncheck.com/xdb/11089b6096c2unverifiedvulncheckvulncheck.com/xdb/8d1294672787unverifiedvulncheckvulncheck.com/xdb/bef271559611unverifiedvulncheckvulncheck.com/xdb/a3b3ce85d0a5unverifiedvulncheckvulncheck.com/xdb/5a77169c0797unverifiedvulncheckvulncheck.com/xdb/42ba5e95ff5bunverifiedvulncheckvulncheck.com/xdb/c4258f9dc626unverifiedvulncheckvulncheck.com/xdb/57ffde1c1df6unverifiedvulncheckvulncheck.com/xdb/5e1cd4381cd2unverifiedvulncheckvulncheck.com/xdb/8fecaa2db7c9unverifiedvulncheckvulncheck.com/xdb/7681898c4d58unverifiedvulncheckvulncheck.com/xdb/e4ea692dc95eunverifiedvulncheckvulncheck.com/xdb/bc3dc26b7001unverifiedvulncheckvulncheck.com/xdb/a76c9b8da62aunverifiedvulncheckvulncheck.com/xdb/46be9d6ea639unverifiedvulncheckvulncheck.com/xdb/86e89699a34aunverifiedvulncheckvulncheck.com/xdb/4876d153c69aunverifiedvulncheckvulncheck.com/xdb/54b99f9179fbunverifiedvulncheckvulncheck.com/xdb/c735aeb744eaunverifiedvulncheckvulncheck.com/xdb/d6a71047f04cunverifiedvulncheckvulncheck.com/xdb/d34eb7cc4235unverifiedvulncheckvulncheck.com/xdb/79c51557e8e7unverifiedvulncheckvulncheck.com/xdb/b7ade02a3da0unverifiedvulncheckvulncheck.com/xdb/830e350bd642unverifiedvulncheckvulncheck.com/xdb/6c64ccbb8d52unverifiedvulncheckvulncheck.com/xdb/27ac660f03deunverifiedvulncheckvulncheck.com/xdb/96d8ebedfe2funverifiedvulncheckvulncheck.com/xdb/6651072dd4a6unverifiedvulncheckvulncheck.com/xdb/610fa05f7ec4unverifiedvulncheckvulncheck.com/xdb/a77a7570c91bunverifiedvulncheckvulncheck.com/xdb/b665c30d7b05unverifiedvulncheckvulncheck.com/xdb/17eac3a8349dunverified
⚠ Public resources, to assess the exposure of systems you control or are authorized to test. Test only with authorization.