CVE-2022-0847
Confirmed PUBLISHEDA 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...
Recommended Action
Prioritize remediation. Validate affected assets and apply vendor fixes on an accelerated timeline.
At a Glance
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.
- CVE Published
- Mar 07, 2022
- Exploitation Reported
- Apr 25, 2022
- CVSS
- 7.8 High
- EPSS
- —
Affected Versions
| Vendor | Product | Version | Status |
|---|---|---|---|
| n/a |
kernel
|
Linux Kernel 5.17 rc6 |
Affected |
CVE References
- bugzilla.redhat.com/show_bug.cgi bugzilla.redhat.com · CVE Record https://bugzilla.redhat.com/show_bug.cgi?id=2060795
- dirtypipe.cm4all.com dirtypipe.cm4all.com · CVE Record https://dirtypipe.cm4all.com/
- packetstormsecurity.com/files/166230/Dirty-Pipe-SUID-Binary-Hijack-P... packetstormsecurity.com · CVE Record http://packetstormsecurity.com/files/166230/Dirty-Pipe-SUID-Binary-Hi...
- packetstormsecurity.com/files/166229/Dirty-Pipe-Linux-Privilege-Esca... packetstormsecurity.com · CVE Record http://packetstormsecurity.com/files/166229/Dirty-Pipe-Linux-Privileg...
- packetstormsecurity.com/files/166258/Dirty-Pipe-Local-Privilege-Esca... packetstormsecurity.com · CVE Record http://packetstormsecurity.com/files/166258/Dirty-Pipe-Local-Privileg...
Show 5 more references
- suse.com/support/kb/doc suse.com · CVE Record https://www.suse.com/support/kb/doc/?id=000020603
- security.netapp.com/advisory/ntap-20220325-0005 security.netapp.com · CVE Record https://security.netapp.com/advisory/ntap-20220325-0005/
- cert-portal.siemens.com/productcert/pdf/ssa-222547.pdf cert-portal.siemens.com · CVE Record https://cert-portal.siemens.com/productcert/pdf/ssa-222547.pdf
- psirt.global.sonicwall.com/vuln-detail/SNWLID-2022-0015 psirt.global.sonicwall.com · CVE Record https://psirt.global.sonicwall.com/vuln-detail/SNWLID-2022-0015
- packetstormsecurity.com/files/176534/Linux-4.20-KTLS-Read-Only-Write... packetstormsecurity.com · CVE Record http://packetstormsecurity.com/files/176534/Linux-4.20-KTLS-Read-Only...
Recommended Actions
- Prioritize remediation. Validate affected assets and apply vendor fixes on an accelerated timeline.
- Check enrichment artifacts for scanner coverage and available PoCs before rolling remediation validation.
- Use the Pro API to automate enrichment, telemetry, and workflow delivery for VM, SOC, and CTI pipelines.
Known Exploited Vulnerability Sources
Catalogues that list this CVE as a known exploited vulnerability.
Per-source evidence links for KEV attestations are available through the KEVIntel Pro API.
Learn about Pro API access| Source | Added |
|---|---|
| CISA First | 2022-04-25 00:00 UTC |
Scanner Artifacts
Nuclei and Metasploit references linked to this CVE.
| Scanner | Reference | Detected |
|---|---|---|
| Metasploit | https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/linux/local/cve_2022_0847_dirtypipe.rb | Apr 28, 2025 |
Virtual Patch
Compensating WAF rules to help reduce exposure to this CVE. Rule content and deployable vendor exports are available with KEVIntel Enterprise.
KEVIntel does not currently have a virtual patch for this CVE. When available, KEVIntel virtual patches ship as deployable ModSecurity, Cloudflare, and AWS WAF rules.
Enterprise feature. Virtual patch rule content and deployable vendor exports (ModSecurity, Cloudflare, AWS WAF) are available to KEVIntel Enterprise users.
CVSS Scores
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
AV:L/AC:L/Au:N/C:C/I:C/A:C
Exploitation Status
Exploited in the wild
Recorded 2022-04-25 00:00:00 UTC · CISA
Proof of concept available
Recorded 2022-03-07 15:50:18 UTC · GitHub
Weaknesses (CWE)
-
Improper Initialization
Scanner Integrations
| Scanner | Reference | Detected |
|---|---|---|
| Metasploit | https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/linux/local/cve_2022_0847_dirtypipe.rb | Apr 28, 2025 |
Potential Proof of Concepts
These PoCs are unverified and could contain malware. Use at your own risk.
github · Created 2023-07-06 01:31:01 UTC · 8 stars
An eBPF program to detect attacks on CVE-2022-0847
github · Created 2023-04-26 13:37:14 UTC · 2 stars
A simple exploit that uses dirtypipe to inject shellcode into runC entrypoint to implement container escapes.
github · Created 2023-01-24 08:44:32 UTC · 2 stars
Drity Pipe Linux Kernel 1-Day Exploit
github · Created 2023-01-04 12:17:12 UTC · 0 stars
github · Created 2022-08-18 03:06:15 UTC · 5 stars
CVE-2022-0847 used to achieve container escape 利用CVE-2022-0847 (Dirty Pipe) 实现容器逃逸
github · Created 2022-08-13 16:58:40 UTC · 2 stars
Modified dirtypipe script into auto root without have to search a file manually to hijack suid binary.
github · Created 2022-08-01 14:14:40 UTC · 2 stars
COMPILED
github · Created 2022-06-04 08:31:32 UTC · 32 stars
CVE-2022-0847 used to achieve container escape 利用CVE-2022-0847 (Dirty Pipe) 实现容器逃逸
github · Created 2022-05-17 04:23:34 UTC · 2 stars
This repository is developed to analysis and understand DirtyPipe exploit CVE-2022-0847
github · Created 2022-03-22 03:17:51 UTC · 2 stars
Dirty Pipe - CVE-2022-0847
github · Created 2022-03-18 22:51:02 UTC · 8 stars
Hacked up Dirty Pipe (CVE-2022-0847) PoC that hijacks a SUID binary to spawn a root shell. (and attempts to restore the damaged binary as well)
github · Created 2022-03-15 11:25:19 UTC · 4 stars
Python script to check if your kernel is vulnerable to Dirty pipe CVE-2022-0847
github · Created 2022-03-13 05:51:06 UTC · 3 stars
CVE-2022-0847 (Dirty Pipe) is an arbitrary file overwrite vulnerability that allows escalation of privileges by modifying or overwriting arbitrary read-only files e.g. /etc/passwd, /etc/shadow.
github · Created 2022-03-12 20:57:24 UTC · 597 stars
A collection of exploits and documentation that can be used to exploit the Linux Dirty Pipe vulnerability.
github · Created 2022-03-12 11:31:46 UTC · 6 stars
my personal exploit of CVE-2022-0847(dirty pipe)
github · Created 2022-03-10 01:27:29 UTC · 25 stars
CVE-2022-0847 POC and Docker and Analysis write up
github · Created 2022-03-09 05:22:20 UTC · 7 stars
github · Created 2022-03-09 01:55:04 UTC · 2 stars
A “Dirty Pipe” vulnerability with CVE-2022-0847 and a CVSS score of 7.8 has been identified, affecting Linux Kernel 5.8 and higher. The vulnerability allows attackers to overwrite data in read-only files. Threat actors can exploit this vulnerability to privilege themselves with code injection.
github · Created 2022-03-08 17:13:24 UTC · 67 stars
Bash script to check for CVE-2022-0847 "Dirty Pipe"
github · Created 2022-03-08 14:46:21 UTC · 2 stars
github · Created 2022-03-08 13:48:55 UTC · 47 stars
The Dirty Pipe Vulnerability
github · Created 2022-03-08 10:40:07 UTC · 1 stars
An exploit for CVE-2022-0847 dirty-pipe vulnerability
github · Created 2022-03-08 09:10:51 UTC · 58 stars
Linux Kernel Local Privilege Escalation Vulnerability CVE-2022-0847.
github · Created 2022-03-08 01:17:09 UTC · 1 stars
github · Created 2022-03-07 18:55:20 UTC · 1099 stars
A root exploit for CVE-2022-0847 (Dirty Pipe)
github · Created 2022-03-07 18:36:50 UTC · 280 stars
CVE-2022-0847-DirtyPipe-Exploit CVE-2022-0847 是存在于 Linux内核 5.8 及之后版本中的本地提权漏洞。攻击者通过利用此漏洞,可覆盖重写任意可读文件中的数据,从而可将普通权限的用户提升到特权 root。 CVE-2022-0847 的漏洞原理类似于 CVE-2016-5195 脏牛漏洞(Dirty Cow),但它更容易被利用。漏洞作者将此漏洞命名为“Dirty Pipe”
github · Created 2022-03-07 17:51:02 UTC · 9 stars
Vulnerability in the Linux kernel since 5.8
Timeline
Key exploitation, disclosure, scanner coverage, and KEV attestation events for this CVE.
-
15:02 UTC about 1 year ago15:02 UTC · about 1 year ago
Metasploit module available
Exploit module available
-
00:00 UTC about 4 years ago00:00 UTC · about 4 years ago
Added to CISA KEV
Listed in the CISA Known Exploited Vulnerabilities catalog
-
15:50 UTC over 4 years ago15:50 UTC · over 4 years ago
Public PoC available
Public proof-of-concept code published
-
00:00 UTC over 4 years ago00:00 UTC · over 4 years ago
CVE published
Vulnerability disclosed publicly
-
00:00 UTC over 4 years ago00:00 UTC · over 4 years ago
CVE ID reserved
Identifier reserved by the CNA
Automate This Intelligence with the Pro API
Confidence scoring, exploit status, sensor telemetry, PoCs, scanner integrations, mentions, and tags are available programmatically for VM, SOC, and CTI workflows.
Pro API Example
GET /api/v2/pro/kevs/CVE-2022-0847
{
"cve_id": "CVE-2022-0847",
"title": "A flaw was found in the way the \"flags\" member of the new pipe buffer structu...",
"affected_vendor": "Linux",
"affected_product": "kernel",
"affected_versions": [
{ "vendor": "...", "product": "...", "status": "affected", "display_label": "..." }
],
"confidence": "Confirmed",
"cvss_score": 7.8,
"epss_score": null,
"exploit_status": {
"exploited_in_the_wild": true,
"active_exploitation_observed": false
},
"sensor_telemetry": { "...": "Pro API fields" },
"proof_of_concepts": [ "..." ],
"scanner_integrations": [ "..." ]
}