“Dirty Cow” is a Linux local privilege escalation which affects Linux released since 2.6.22 (released in September 2007) up to October 2016. It is a local privilege escalation bug that exploits a race condition in the implementation of the copy-on-write mechanism.
To exploit this vulnerability do the following steps.
- Download the zip file from https://github.com/gbonacini/CVE-2016-5195 .
- Unzip the zip file.
- Open terminal in this directory.
- type >> make clean
- type >> make
- type >> ./dcow
- Now your root password is “dirtyCowFun“. To verify type >> su and enter the password “dirtyCowFun“.
Screenshot is given below.