Download Linux 5.14 tarball and setup the disk image for qemu
./setup.shGo to the VM folder and execute the run.sh script.
It compiles the exploit and modules (Modules were used during the development and are no longer needed).
Then it starts the VM
cd vmachine
./run.shOnce inside the VM there are two users configured:
rootwhich password is unknownuserconfigured with no password
To open another shell inside the vm a telnet server is configured.
telnet localhost 5555First of all log in as user then move to the root directory and execute the exploit binary
cd /
./exploitVarious debugging options are shown. Press 101 to execute the full exploit.
If the final message starts with Content successfully changed, then the POC worked,
and now it is possible to login as root user without password.
Log in from telnet as root
POC_rec.mp4
SLUBStick paper: https://www.usenix.org/conference/usenixsecurity24/presentation/maar-slubstick CVE-2022-2588: https://nvd.nist.gov/vuln/detail/cve-2022-2588