CVE-2022-0847: The Dirty Pipe Vulnerability Allows Write Access with Root Privileges

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. This flaw affects Linux kernel versions prior to 5.17-rc6.

This vulnerability allows overwriting data in arbitrary read-only files which leads to privilege escalation because unprivileged processes can inject code into root processes.

The vulnerability was fixed in Linux 5.16.11, 5.15.25, and 5.10.102.