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

# استغلال النواة

تستهدف عملية تصعيد امتيازات النواة الثغرات المحلية في نواة لينكس أو التصحيحات الخاصة بالتوزيعة. قد تكون هذه الاستغلالات غير مستقرة، لذا فإن التحقق من الإصدار والاختبار في المختبر مهمان قبل التنفيذ.

## المنهجية

* حدِّد نواة النظام والتوزيعة والمعمارية ومستوى التصحيح بدقة.
* استخدم أدوات اقتراح الاستغلال كنقطة بداية، ثم تحقّق يدويًا من انطباق CVE.
* قم بترجمة وتشغيل شيفرة إثبات المفهوم فقط بعد التأكد من أن الهدف قابل للاستغلال.

## فحوصات سريعة

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

{% hint style="info" %}
يستغلّ استغلال نواة لينكس الثغرات في النواة لتنفيذ تعليمات برمجية بامتيازات مرتفعة. أكِّد إصدار النواة والتوزيعة قبل تشغيل إثبات المفهوم.
{% 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 في أوبونتو/النواة.                                |
| PTRACE\_TRACEME | `CVE-2019-13272`                 | تصعيد امتيازات محلي يؤثر في بعض تدفقات apport/pkexec في أوبونتو.                              |
| Dirty Pipe      | `CVE-2022-0847`                  | خلل في معالجة pipe في النواة يمكنه تعديل الملفات المحمية أثناء التشغيل.                       |

### فحص Dirty COW

```bash
grep -q "Ubuntu 16.04" /etc/issue && echo "قد يكون النظام عرضةً لثغرة 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) - ملاحظات حول تصعيد الامتيازات في لينكس، مع خطوات الجرد، وأمثلة على الاستغلال، والتحقق الموجّه نحو التقارير.</td><td><a href="/pages/5a9308281bae293f2dcbc92f5fa0526b2988c611">/pages/5a9308281bae293f2dcbc92f5fa0526b2988c611</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) لتصعيد الامتيازات في لينكس، مع خطوات الجرد، وأمثلة على الاستغلال، والتحقق الموجّه نحو التقارير.</td><td><a href="/pages/a0092207c0a07642e425960487d27c900656b352">/pages/a0092207c0a07642e425960487d27c900656b352</a></td></tr><tr><td><h3><i class="fa-microchip" style="color:$primary;">:microchip:</i></h3></td><td><h4>استغلال نواة أوبونتو 23.04</h4></td><td>ملاحظات حول استغلال النواة (أوبونتو 23.04) لتصعيد الامتيازات في لينكس، مع خطوات الجرد، وأمثلة على الاستغلال، والتحقق الموجّه نحو التقارير.</td><td><a href="/pages/c4dc63296b7fcbdceca99211333245f421ee6daf">/pages/c4dc63296b7fcbdceca99211333245f421ee6daf</a></td></tr><tr><td><h3><i class="fa-microchip" style="color:$primary;">:microchip:</i></h3></td><td><h4>استغلال نواة OverlayFS</h4></td><td>ملاحظات حول استغلال النواة (OverlayFS) لتصعيد الامتيازات في لينكس، مع خطوات الجرد، وأمثلة على الاستغلال، والتحقق الموجّه نحو التقارير.</td><td><a href="/pages/e096382124436ac8c8f93328c40f575977f5dc57">/pages/e096382124436ac8c8f93328c40f575977f5dc57</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></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/ar/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.
