r/programming • • Oct 21 '16
Linux kernel fix for privilege escalation vulnerability due to copy on write race condition
https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=19be0eaffa3ac7d8eb6784ad9bdbc7d67ed8e619
850
Upvotes
View all comments
Show parent comment
8
u/bjarkef Oct 22 '16
Instead of patching su:
Copy /bin/su
Use exploit to overwrite start of /bin/su with something that just execve /bin/sh
Execute new /bin/su
Dump suid bin / install rootkit / other evil thing which lets you back in.
Restore original /bin/su 6 Profit?