
A root exploit for CVE-2022-0847 (Dirty Pipe)
gcc exploit.c -o exploit -std=c99
#
./exploit
Usage: ./exp TARGETFILE OFFSET DATA
# In the /etc/passwd file, find the offset of the normal user's uid, change the uid to 0, then log in again to get root privileges.
Scope of Impact
Linux Kernel version >= 5.8
Linux Kernel version < 5.16.11 / 5.15.25 / 5.10.102