# dirtyc0w

Considering the number of boxes I've encountered that have used this, I've actually documented this.

```
# affects all versions since 2.6.22
# the vulnerability has been patched in kernel versions 4.8.3, 4.7.9, 4.4.26 and newer.
```

1. `/etc/passwd` based
   1. Firefart: [FireFart/dirtycow/dirty.c](https://github.com/FireFart/dirtycow/blob/master/dirty.c)
   2. CPP: [gbonacini/CVE-2016-5195](https://github.com/gbonacini/CVE-2016-5195)
2. `SUID-based root`
   1. cowroot.c: [rverton/e9d4ff65d703a9084e85fa9df083c679](https://gist.github.com/rverton/e9d4ff65d703a9084e85fa9df083c679)


---

# Agent Instructions: 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:

```
GET https://kashz.gitbook.io/kashz-jewels/os-linux/linux-privilege-escalation/dirtyc0w.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
