# CVE-2022-0847 (Dirty Pipe)

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.

- Page: https://www.vulneraibility.com/cve/CVE-2022-0847
- CVSS: 7.8
- Known exploited: yes, in CISA KEV since 2022-04-25; CISA due date 2022-05-16
- EPSS: 92.80% (percentile 99.8)
- Public exploit code: 1 on Exploit-DB · 1 Metasploit module · 109 GitHub proofs of concept (first 2022-03-07)
- CISA SSVC: exploitation active, automatable no, technical impact total (assessed 2025-02-04)
- Weakness: CWE-665
- Published: 2022-03-10

## Affected versions

- kernel: affected Linux Kernel 5.17 rc6

A version outside these ranges is not a statement that it is unaffected.

## References

- [other] https://bugzilla.redhat.com/show_bug.cgi?id=2060795
- [other] https://dirtypipe.cm4all.com/
- [other] http://packetstormsecurity.com/files/166230/Dirty-Pipe-SUID-Binary-Hijack-Privilege-Escalation.html
- [other] http://packetstormsecurity.com/files/166229/Dirty-Pipe-Linux-Privilege-Escalation.html
- [other] http://packetstormsecurity.com/files/166258/Dirty-Pipe-Local-Privilege-Escalation.html
- [other] https://www.suse.com/support/kb/doc/?id=000020603
- [other] https://security.netapp.com/advisory/ntap-20220325-0005/
- [other] https://cert-portal.siemens.com/productcert/pdf/ssa-222547.pdf
- [other] https://psirt.global.sonicwall.com/vuln-detail/SNWLID-2022-0015
- [other] http://packetstormsecurity.com/files/176534/Linux-4.20-KTLS-Read-Only-Write.html
- [other] https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2022-0847

---
Summary, impact and action are written by the vulneraibility.com AI analysis pipeline from the CVE record, NVD, CISA and FIRST data; verify against the references.
