> 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/ru/privesc/kernel-exploitation.md).

# Эксплуатация ядра

Заметки об эксплуатации ядра Linux для локальной эскалации привилегий, Linux Exploit Suggester, Dirty COW, OverlayFS и CVE ядра Ubuntu.

Повышение привилегий в ядре нацелено на локальные уязвимости в ядре Linux или в патчах, специфичных для дистрибутива. Такие эксплойты могут быть нестабильными, поэтому перед запуском важны проверка версии и тестирование в лаборатории.

## Методология

* Определите точное ядро, дистрибутив, архитектуру и уровень патчей.
* Используйте подсказчики эксплойтов как отправную точку, затем вручную проверьте применимость CVE.
* Компилируйте и запускайте код proof of concept только после подтверждения, что цель уязвима.

## Быстрые проверки

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

{% hint style="info" %}
Эксплуатация ядра Linux использует уязвимости в ядре для выполнения кода с повышенными привилегиями. Перед запуском proof of concept подтвердите версию ядра и дистрибутива.
{% endhint %}

## Исследование эксплойтов

Используйте автоматические подсказки как отправную точку, затем вручную подтвердите точные версию ядра, уровень патчей дистрибутива, архитектуру и требования эксплойта.

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

Распространённые семейства локального повышения привилегий в ядре, которые нужно тщательно проверять:

| Семейство эксплойта | Пример CVE                       | Заметки                                                                                    |
| ------------------- | -------------------------------- | ------------------------------------------------------------------------------------------ |
| Dirty COW           | `CVE-2016-5195`                  | Старая ошибка copy-on-write в ядре; часто нестабильна и зависит от версии.                 |
| OverlayFS           | `CVE-2021-3493`, `CVE-2023-0386` | Пути повышения привилегий в OverlayFS, специфичные для Ubuntu/ядра.                        |
| PTRACE\_TRACEME     | `CVE-2019-13272`                 | Локальное повышение привилегий, затрагивающее некоторые потоки apport/pkexec в Ubuntu.     |
| Dirty Pipe          | `CVE-2022-0847`                  | Ошибка обработки pipe в ядре, которая может изменять защищённые файлы во время выполнения. |

### Проверка Dirty COW

```bash
grep -q "Ubuntu 16.04" /etc/issue && echo "System might be vulnerable to Dirty COW"
```

Компилируйте и запускайте только после подтверждения применимости в лаборатории или на авторизованной цели:

```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>Инструмент (Linux Exploit Suggester) — заметки по повышению привилегий в Linux с этапами перечисления, примерами эксплуатации и проверкой, ориентированной на отчётность.</td><td><a href="/ru/privesc/kernel-exploitation/linux-exploit-suggester-linux-privilege-escalation.md">Linux Exploit Suggester - эскалация привилегий</a></td></tr><tr><td><h3><i class="fa-microchip" style="color:$primary;">:microchip:</i></h3></td><td><h4>Эксплойт ядра Dirty COW</h4></td><td>Заметки по эксплуатации ядра (Dirty COW) для повышения привилегий в Linux с этапами перечисления, примерами эксплуатации и проверкой, ориентированной на отчётность.</td><td><a href="/ru/privesc/kernel-exploitation/dirty-cow-kernel-exploit-linux-privilege-escalation.md">Эксплуатация ядра (Dirty COW) - эскалация привилегий в Linux</a></td></tr><tr><td><h3><i class="fa-microchip" style="color:$primary;">:microchip:</i></h3></td><td><h4>Эксплойт ядра Ubuntu 23.04</h4></td><td>Заметки по эксплуатации ядра (Ubuntu 23.04) для повышения привилегий в Linux с этапами перечисления, примерами эксплуатации и проверкой, ориентированной на отчётность.</td><td><a href="/ru/privesc/kernel-exploitation/ubuntu-23.04-kernel-exploit-linux-privilege-escalation.md">Эксплуатация ядра (Ubuntu 23.04) - эскалация привилегий в Linux</a></td></tr><tr><td><h3><i class="fa-microchip" style="color:$primary;">:microchip:</i></h3></td><td><h4>Эксплойт ядра OverlayFS</h4></td><td>Заметки по эксплуатации ядра (OverlayFS) для повышения привилегий в Linux с этапами перечисления, примерами эксплуатации и проверкой, ориентированной на отчётность.</td><td><a href="/ru/privesc/kernel-exploitation/overlayfs-kernel-exploit-linux-privilege-escalation.md">Эксплуатация ядра (OverlayFS) - эскалация привилегий в Linux</a></td></tr><tr><td><h3><i class="fa-microchip" style="color:$primary;">:microchip:</i></h3></td><td><h4>Сбой копирования (CVE-2026-31431)</h4></td><td>Проверьте наличие уязвимости повышения привилегий в ядре Copy Fail и подтвердите, уязвима ли целевая система.</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 4.4.0-116</h4></td><td>Заметки по эксплуатации ядра Linux для локального повышения привилегий, проверки версии и безопасного тестирования proof of concept.</td><td><a href="/ru/privesc/kernel-exploitation/ubuntu-16.04-kernel-4.4.0-116.md">Ядро Ubuntu 16.04 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/ru/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.
