How to Fix the Dirty Cow Exploit on Raspberry Pi

Tyler Tyler (291)
5 minutes

The Dirty Cow exploit is a serious exploit in the Linux kernel that allows users to gain root access to the system. This vulnerability is said to be fairly trivial to exploit, and it is important to install the patch quickly. This guide will show you what is required to update the kernel and patch this critical vulnerability.

Posted in these interests:
h/linux41 guides
h/pi229 guides
h/security38 guides

Raspbian Jessie users can update the kernel simply by opening a shell and typing:

sudo apt-get update && sudo apt-get install raspberrypi-kernel

Then, reboot your Raspberry Pi:

sudo reboot

After the reboot, you will be safe from Dirty COW!

Confirm your edition with a simple command.
Ash Ash (331)
2 minutes

So you've got a machine running Ubuntu. If it's been a while since you set up Ubuntu (or maybe you're just curious), you probably need to check what version you're running.