
Heap overflow exploit for CVE-2021-22555 achieving local privilege escalation to root on Ubuntu 20.04 with kernel 5.8.0-48.
Heap OVerflow CVE (CVE-2021-22555)
List of Bugs
Heap Out-of-Bounds Write(The core Bug)
Data Corruption (The Immediate Effect)
Memory Leak / Information Disclosure
Privilege Escalation (The Final Goal)
Download iso
wget http://old-releases.ubuntu.com/releases/20.04.2/ubuntu-20.04.2-live-server-amd64.iso
download required libraries
sudo apt update sudo apt install build-essential gcc-multilib
download required kernel
sudo apt install linux-image-5.8.0-48-generic linux-headers-5.8.0-48-generic
sudo reboot
gcc exploit.c -o exploit ./exploit
got root