We use some essential cookies to make our website work.

We use optional cookies, as detailed in our cookie policy, to remember your settings and understand how you use our website.

Fix Dirty COW on Raspberry Pi

By Russell Barnes. Posted

Fix Dirty COW on Raspberry Pi

Here’s how to quickly and easily remove the Linux Kernel vulnerability Dirty COW from Raspbian

Advertisement

Starter electronics: how to build and program circuits with a Raspberry Pi or Raspberry Pi Pico.

or free PDF for contributors

You may have seen in the news recently about a bug in the Linux Kernel called Dirty COW – it’s a vulnerability that effects the ‘copy-on-write’ mechanism in Linux, aka COW. This exploit can be used to gain full control over a device running a version of Linux; this includes Android phones, web servers, and even the Raspberry Pi.

How to fix it

You don’t need to worry though as a patch for Raspbian Jessie to fix Dirty COW has already been released, and you can get it right now. Open up the terminal and type the following:

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

Once the install is done, make sure to reboot your Raspberry Pi and you'll be Dirty COW free!

Russell Barnes photo

Russell runs Raspberry Pi Press, which includes The MagPi, Hello World, HackSpace magazine, and book projects. He’s a massive sci-fi bore.

Subscribe to Raspberry Pi Official Magazine

Save up to 37% off the cover price and get a FREE Raspberry Pi Pico 2 W with a subscription to Raspberry Pi Official Magazine.

Subscribe

Sign up to the newsletter

Get every issue delivered directly to your inbox and keep up to date with the latest news, offers, events, and more.