> 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.md).

# Kernel-Ausnutzung

Notizen zu Linux-Kernel-Exploits für lokale Privilegienerweiterung, Linux Exploit Suggester, Dirty COW, OverlayFS und CVEs des Ubuntu-Kernels.

Die lokale Rechteausweitung auf Kernel-Ebene zielt auf lokale Schwachstellen im Linux-Kernel oder distributionsspezifische Patches ab. Diese Exploits können instabil sein, daher sind Versionsprüfung und Labortests vor der Ausführung wichtig.

## Vorgehensweise

* Identifizieren Sie den genauen Kernel, die Distribution, die Architektur und den Patch-Stand.
* Verwenden Sie Exploit-Vorschläge als Ausgangspunkt und überprüfen Sie dann die Anwendbarkeit des CVE manuell.
* Kompilieren und führen Sie Proof-of-Concept-Code erst aus, nachdem bestätigt wurde, dass das Ziel verwundbar ist.

## Schnellprüfungen

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

{% hint style="info" %}
Das Ausnutzen des Linux-Kernels missbraucht Schwachstellen im Kernel, um Code mit erhöhten Rechten auszuführen. Bestätigen Sie die Kernel- und Distributionsversion, bevor Sie einen Proof of Concept ausführen.
{% endhint %}

## Exploit-Recherche

Verwenden Sie automatische Vorschläge als Ausgangspunkt und bestätigen Sie dann manuell den genauen Kernel, den Patch-Stand der Distribution, die Architektur und die Anforderungen des Exploits.

```bash
searchsploit linux kernel <version>
searchsploit linux kernel ubuntu
searchsploit linux kernel overlayfs
```

Häufige lokale Kernel-Eskalationsfamilien, die sorgfältig validiert werden sollten:

| Exploit-Familie | Beispiel-CVE                     | Notizen                                                                                       |
| --------------- | -------------------------------- | --------------------------------------------------------------------------------------------- |
| Dirty COW       | `CVE-2016-5195`                  | Älterer Copy-on-Write-Fehler im Kernel; oft instabil und versionsabhängig.                    |
| OverlayFS       | `CVE-2021-3493`, `CVE-2023-0386` | Ubuntu-/kernel-spezifische OverlayFS-Pfade zur Rechteausweitung.                              |
| PTRACE\_TRACEME | `CVE-2019-13272`                 | Lokale Rechteausweitung, die einige Ubuntu-apport/pkexec-Abläufe betrifft.                    |
| Dirty Pipe      | `CVE-2022-0847`                  | Fehler in der Pipe-Verarbeitung des Kernels, der geschützte Dateien zur Laufzeit ändern kann. |

### Dirty-COW-Prüfung

```bash
grep -q "Ubuntu 16.04" /etc/issue && echo "System könnte für Dirty COW verwundbar sein"
```

Kompilieren und ausführen Sie nur, nachdem die Anwendbarkeit in einem Labor oder auf einem autorisierten Ziel bestätigt wurde:

```bash
gcc -pthread dirty.c -o dirty -lcrypt
./dirty password123
```

<table data-view="cards" data-full-width="false" data-search="false"><thead><tr><th></th><th></th><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><h3><i class="fa-microchip" style="color:$primary;">:microchip:</i></h3></td><td><h4>Linux Exploit Suggester</h4></td><td>Tool (Linux Exploit Suggester) - Hinweise zur Rechteausweitung unter Linux, mit Aufzählungsschritten, Exploit-Beispielen und auf Berichterstattung ausgerichteter Validierung.</td><td><a href="/de/privesc/kernel-exploitation/linux-exploit-suggester-linux-privilege-escalation.md">Linux Exploit Suggester - Privilegienerweiterung</a></td></tr><tr><td><h3><i class="fa-microchip" style="color:$primary;">:microchip:</i></h3></td><td><h4>Dirty-COW-Kernel-Exploit</h4></td><td>Hinweise zur Kernel-Ausnutzung (Dirty COW) für Linux-Rechteausweitung, mit Aufzählungsschritten, Exploit-Beispielen und auf Berichterstattung ausgerichteter Validierung.</td><td><a href="/de/privesc/kernel-exploitation/dirty-cow-kernel-exploit-linux-privilege-escalation.md">Kernel-Ausnutzung (Dirty COW) - Linux-Privilegienerweiterung</a></td></tr><tr><td><h3><i class="fa-microchip" style="color:$primary;">:microchip:</i></h3></td><td><h4>Ubuntu-23.04-Kernel-Exploit</h4></td><td>Hinweise zur Kernel-Ausnutzung (Ubuntu 23.04) für Linux-Rechteausweitung, mit Aufzählungsschritten, Exploit-Beispielen und auf Berichterstattung ausgerichteter Validierung.</td><td><a href="/de/privesc/kernel-exploitation/ubuntu-23.04-kernel-exploit-linux-privilege-escalation.md">Kernel-Ausnutzung (Ubuntu 23.04) - Linux-Privilegienerweiterung</a></td></tr><tr><td><h3><i class="fa-microchip" style="color:$primary;">:microchip:</i></h3></td><td><h4>OverlayFS-Kernel-Exploit</h4></td><td>Hinweise zur Kernel-Ausnutzung (OverlayFS) für Linux-Rechteausweitung, mit Aufzählungsschritten, Exploit-Beispielen und auf Berichterstattung ausgerichteter Validierung.</td><td><a href="/de/privesc/kernel-exploitation/overlayfs-kernel-exploit-linux-privilege-escalation.md">Kernel-Ausnutzung (OverlayFS) - Linux-Privilegienerweiterung</a></td></tr><tr><td><h3><i class="fa-microchip" style="color:$primary;">:microchip:</i></h3></td><td><h4>Copy Fail (CVE-2026-31431)</h4></td><td>Überprüfen Sie die Verwundbarkeit für die Rechteausweitung durch Copy Fail im Kernel und bestätigen Sie, ob das Zielsystem verwundbar ist.</td><td><a href="https://github.com/theori-io/copy-fail-CVE-2026-31431">https://github.com/theori-io/copy-fail-CVE-2026-31431</a></td></tr><tr><td><h3><i class="fa-microchip" style="color:$primary;">:microchip:</i></h3></td><td><h4>Ubuntu 16.04 Kernel 4.4.0-116</h4></td><td>Hinweise zu Linux-Kernel-Exploits für lokale Rechteausweitung, Versionsprüfung und sicheres Proof-of-Concept-Testing.</td><td><a href="/de/privesc/kernel-exploitation/ubuntu-16.04-kernel-4.4.0-116.md">Ubuntu 16.04 Kernel 4.4.0-116</a></td></tr></tbody></table>


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://hacking-notes.jord4n.pro/de/privesc/kernel-exploitation.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
