> For the complete documentation index, see [llms.txt](https://hacking-notes.jord4n.pro/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://hacking-notes.jord4n.pro/de/privesc/kernel-exploitation/dirty-cow-kernel-exploit-linux-privilege-escalation.md).

# Kernel-Exploitation (Dirty COW) - Linux-Privilegieneskalation

## Was es ist

Die Privilegieneskalation im Kernel zielt auf lokale Schwachstellen im Linux-Kernel oder auf distributionsspezifische Patches ab. Diese Exploits können instabil sein, daher sind Versionsprüfung und Labortests vor der Ausführung wichtig. Diese spezielle Seite konzentriert sich auf **Kernel-Exploitation (Dirty COW)** und hält den Ausnutzungsablauf praxisnah: Bedingung identifizieren, sicher validieren und dann die kleinste nötige Nutzlast ausführen, um die Auswirkungen zu belegen.

## Enumeration

Beginnen Sie damit, den lokalen Kontext und die genaue Fehlkonfiguration zu bestätigen, bevor Sie den Exploit-Pfad ausführen.

```bash
uname -a
cat /etc/os-release
lsb_release -a 2>/dev/null
```

## Beispiele

## Dirty-COW-Kernel-Beispiel

Verwenden Sie **lsb\_release -a** um die Version des Betriebssystems zu identifizieren.

<figure><img src="/files/52fa16a82b9216c9e323057debc994054b30a4d4" alt=""><figcaption></figcaption></figure>

Wenn Sie den **Exploit suchen** Befehl verwenden, sehen Sie viele Kernel-Schwachstellen, die mit dieser Version von Ubuntu verbunden sind.

<figure><img src="/files/161d11c00fe0cece61ae5eba90056203ec03566d" alt=""><figcaption></figcaption></figure>

In diesem Fall interessieren wir uns für:

<figure><img src="/files/17e2c1d92780656bb025f68bf89e9ecc4ad5e446" alt=""><figcaption></figcaption></figure>

Ausführen **Skript** und geben Sie ein Passwort für den dirty-Benutzer ein:

<figure><img src="/files/d06bf5f2c7ffe6ebbc40f9271d2368571840b4f6" alt=""><figcaption></figcaption></figure>

Wir haben es geschafft, **das Passwort zu ändern** in /etc/passwd des Benutzers firefart:

<figure><img src="/files/c1886a1bfb489d497abf28df4bd0d26ef19ddb04" alt=""><figcaption></figcaption></figure>

Wir gehören zur **root** Gruppe:

<figure><img src="/files/1b624f2a589e45962d20713e20bf7173187d1b57" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://hacking-notes.jord4n.pro/de/privesc/kernel-exploitation/dirty-cow-kernel-exploit-linux-privilege-escalation.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
