Code adapted for one cpu, and with a vagrant file provided to boot up a vulnerable machine used for educational purposes.
To create a vulnerable machine, you need to have [Vagrant](https://www.vagrantup.com/) installed on your machine, then execute on the repository root:
Wait for installation and booting then :
Inside the Vm:
cd CVE-2022-2588/ && gcc ./exploit.c -o exploit -lpthread
The original exploit code : [here](https://github.com/Markakd/CVE-2022-2588)
To prevent the exploit try to uncomment the line 15 and 18 and restart the process.