Skip to main content
Room Banner
Back to all walkthroughs
Room Icon

Dirty Pipe: CVE-2022-0847

Max room.

Interactive lab for exploiting Dirty Pipe (CVE-2022-0847) in the Linux Kernel

info

42 min

18,489

User profile photo.
User profile photo.

To access material, start machines and answer questions login.

Set up your virtual environment

To successfully complete this room, you'll need to set up your virtual environment. This involves starting both your AttackBox (if you're not using your VPN) and Lab Machines, ensuring you're equipped with the necessary tools and access to tackle the challenges ahead.
Attacker machine
Status:Off
Lab machine
Status:Off

In March 2022, a researcher named Max Kellerman publicly disclosed a Kernel vulnerability (nicknamed "Dirty Pipe" for its similarities to the notorious "Dirty Cow (opens in new tab)" exploit affecting older versions of the kernel) that allowed attackers to arbitrarily overwrite files on the operating system. The vulnerability was responsibly disclosed in early 2022 and was publicly released in a blog post (opens in new tab) written by Max Kellerman soon after patches were made available.

Arbitrary file overwrites at the kernel level can be very easily leveraged to escalate privileges on the machine (i.e. to obtain administrator, or "root" privileges). This is a devastating vulnerability, made more so by its reach: any devices running a vulnerable version of the kernel (including Android phones) are affected!

This room will provide an overview of the vulnerability, as well as give you an opportunity to exploit it for yourself in the vulnerable machine attached to this task. We will start by taking a look at the vulnerability and exploit at a high-level, before moving on to exploiting the vulnerability in subsequent sections of the room.

Without further ado, let's begin.
Answer the questions below
Deploy the machine by clicking on the green "Deploy" button at the top of this task!