Skip to content
Memory corruption Write-up Advanced

Mengungkap Celah Keamanan: CVE-2022–0847 (Dirty Pipe) dan Cara

A flaw in Linux kernel buffer handling, known as Dirty Pipe, let an unprivileged process write to files it could only read, including SUID binaries. An attacker could use this to gain root privileges and take over the system.

Lingga prasasti Follow

Published on medium.com

Pada tanggal 7 Maret 2022, Max Kellermann secara terbuka mengungkapkan kerentanan pada kernel Linux, yang kemudian diberi nama Dirty Pipe, yang memungkinkan proses yang kurang memiliki hak istimewa untuk menulis ke file yang dapat dibaca secara sembarangan, yang menyebabkan peningkatan hak istimewa. Kerentanan ini…

Lingga prasasti, on medium.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely a mistake in how the kernel manages its internal file buffers, allowing writes to pages that should only be readable.

Impact

An attacker who exploits it could take over the system, steal sensitive data and cause serious damage.

What the attacker needed

Local access to a Linux host; kernel 5.8 to 5.16.0; ability to run a program

The fix

It should be fixed by updating the kernel to a patched version, auditing SUID files and monitoring access to sensitive files.

How it was found

  1. Run the published exploit script against a privileged program such as sudo.
  2. If it succeeds, a root shell is returned.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

Every program on a Linux machine runs with a set of permissions. Some programs are marked so they run with the owner's full powers, which is how a normal user can do a privileged task. Dirty Pipe was a mistake in the part of the operating system that handles file reading and writing, and it let an ordinary user quietly change the contents of such a privileged program so it did something else, giving them full control of the machine.

What is Memory corruption?

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.

Similar reports

View all

Same bug class and techniques, clearest first.

Memory corruption

The lesson behind this report.

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.