## https://sploitus.com/exploit?id=FFB43B60-4C20-5290-B5CC-72179B8A2C92
# CVE-2021-3490
Credits to https://github.com/chompie1337
## Steps to Reproduce
Install the [ubuntu-20.04.6-live-server-amd64.iso](https://releases.ubuntu.com/20.04/ubuntu-20.04.6-live-server-amd64.iso) from Ubuntu Releases, and install into the virtual machine.
```
wget https://releases.ubuntu.com/20.04/ubuntu-20.04.6-live-server-amd64.iso
```
After installing ISO, fully install the Ubuntu server into a Virtual Machine, and run the following Commands.
```
sudo apt update
sudo apt install linux-image-5.8.0-50-generic linux-headers-5.8.0-50-generic linux-modules-5.8.0-50-generic linux-modules-extra-5.8.0-50-generic build-essential git libelf-dev
sudo nano /etc/default/grub
# Remove the hidden line and set grub_timeout = 15
```
Reboot into newly installed kernel, and run the following command:
```
echo "kernel.unprivileged_bpf_disabled=0" | sudo tee -a /etc/sysctl.conf
sudo sysctl -p
```
Then Clone this Repo, into the Virtual Machine.
```
git clone https://github.com/prabeershakya/CVE-2021-3490-POC.git
```
Now change the directory to the POC and Run the following Command.
```
make groovy
```
Lastly run the Follwoing Command to Gain the Root !!
```
chmod +x ./bin/exploit.bin
./bin/exploit.bin
```