.. / CVE-2022-0847

Exploit for Linux kernel copy_page_to_iter_pipe and push_pipe functions - Local Privilege Escalation (CVE-2022-0847)

Description:

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.

Proof of Concept

PoC exploit

Try the exploit in a lab environment:

Lab Machine Link
Hack The Box Antique Go to Practice

References:

https://nvd.nist.gov/vuln/detail/CVE-2022-0847