> 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

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

## Methodik

* Identifizieren Sie den genauen Kernel, die Distribution, die Architektur und den Patchstand.
* Verwenden Sie Exploit-Suggester als Ausgangspunkt und überprüfen Sie dann die CVE-Anwendbarkeit manuell.
* Kompilieren und führen Sie Proof-of-Concept-Code nur aus, nachdem Sie bestätigt haben, 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" %}
Linux-Kernel-Exploitation 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 automatisierte Vorschläge als Ausgangspunkt und bestätigen Sie dann manuell den genauen Kernel, den Distributions-Patchstand, die Architektur und die Exploit-Anforderungen.

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

Häufige lokale Kernel-Eskalationsfamilien, die sorgfältig überprüft 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-Privilegieneskalationspfade.                            |
| PTRACE\_TRACEME | `CVE-2019-13272`                 | Lokale Privilegieneskalation, die einige Ubuntu-apport-/pkexec-Abläufe betrifft.             |
| Dirty Pipe      | `CVE-2022-0847`                  | Fehler bei der Pipe-Verarbeitung im Kernel, 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 nur nach Bestätigung der Anwendbarkeit in einer Laborumgebung oder auf einem autorisierten Ziel:

```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 Linux-Privilegieneskalation, mit Enumerationsschritten, Exploit-Beispielen und reportorientierter Validierung.</td><td><a href="/pages/40ba647185fc3ac0af5fc7572a6c554e59c0db48">/pages/40ba647185fc3ac0af5fc7572a6c554e59c0db48</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-Exploitation (Dirty COW) für Linux-Privilegieneskalation, mit Enumerationsschritten, Exploit-Beispielen und reportorientierter Validierung.</td><td><a href="/pages/fc5fad5324c4bf052b0112f26084eb0b028a70e4">/pages/fc5fad5324c4bf052b0112f26084eb0b028a70e4</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-Exploitation (Ubuntu 23.04) für Linux-Privilegieneskalation, mit Enumerationsschritten, Exploit-Beispielen und reportorientierter Validierung.</td><td><a href="/pages/3a8668ae64cc95d5ecb8262331c14ba9b7920f3d">/pages/3a8668ae64cc95d5ecb8262331c14ba9b7920f3d</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-Exploitation (OverlayFS) für Linux-Privilegieneskalation, mit Enumerationsschritten, Exploit-Beispielen und reportorientierter Validierung.</td><td><a href="/pages/4298c480c053819dd54a7ffef6e69663db2bd9ef">/pages/4298c480c053819dd54a7ffef6e69663db2bd9ef</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>Validieren Sie die Exposition gegenüber der Kernel-Privilegieneskalation Copy Fail 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></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 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.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.
