Dirty Cow (CVE-2016-5195) Privilege Escalation Demo.
Dirty COW (CVE-2016-5195) is a privilege escalation vulnerability in the Linux Kernel.
A race condition was found in the way the Linux kernel’s memory subsystem handled the copy-on-write (COW) breakage of private read-only memory mappings. An unprivileged local user could use this flaw to gain write access to otherwise read-only memory mappings and thus increase their privileges on the system.
Lets move to the demo:
Download the cowroot and save it as cowroot.c
Check you system arch, using command uname -a.
you can see in setp 1 screenshot mine arch is x86_64.
I hope you enjoyed Dirty COW (CVE-2016-5195) demo.