Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

FeedsContactPrivacy© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
CVE-2016-5195 — Dirty COW: a race in copy-on-write lets a local user write to a read-only mapping. Fixed in Linux 4.8.3. Differential: write on vuln, refused on fixed | Kitploit
Tools/GitHubGitHub/googlesky/cve-2016-5195
Privilege EscalationContainer SecurityExploitationSecurity VirtualizationPapers & ResearchLabs & Practice
GitHubgooglesky/cve-2016-5195

CVE-2016-5195

Dirty COW: a race in copy-on-write lets a local user write to a read-only mapping. Fixed in Linux 4.8.3. Differential: write on vuln, refused on fixed

View Repository
Nov 26, 2026Not yet reviewed
Share

CVE-2016-5195 — Dirty COW Linux kernel privilege escalation

License: MIT Research status: validated

CVECVE-2016-5195
ComponentLinux kernel — mm/gup.c copy-on-write
Affected2.x through 4.x before 4.8.3
Fixed in4.8.3
CWECWE-362 (Race Condition)
ImpactA race in the copy-on-write handling let a local user write to a read-only memory mapping, including setuid binaries, and gain root privileges.
Vectorlocal mmap/MADV_DONTNEED race
TriggerFOLL_WRITE on a read-only COW mapping

The vulnerable path:

# pre-fix (model from Linux kernel 4.8.3)
attacker input accepted without the required protection

The derived guard:

# derived from observed behaviour, not copied from a vendor fix
refuse FOLL_WRITE on a read-only COW mapping

1. Root cause

The GUP path allowed a write to take the COW path incorrectly. The fix corrects the flag handling.

2. Reproduction environment

serviceimagerole
dc-vulncve-2016-5195:vulnvulnerable behaviour present
dc-guardcve-2016-5195:guardfixed behaviour
poccve-2016-5195-poc:localstdlib-only Python driver

Both sides are Python 3.12 images. The vulnerable behaviour is modelled from Linux kernel 4.8.3; the guard is derived from the lab observation that the impact is reproduced. The fixed build applies the published upstream change.

3. Running the environment

./run-lab.sh build
./run-lab.sh up
./run-lab.sh sweep
./run-lab.sh down

The lab uses the isolated cve5195lab network and bounded containers.

4. The PoC

poc/poc.py takes a mode and an optional --host=...:

moderesult
checkexit 1 when the write succeeds, 0 when the write is refused
exploitruns the full chain and reports the observed impact
probeprints the write flag
mitigationexplains the derived guard

A standalone exploit ships at exploit/exploit.py:

python3 exploit/exploit.py --host=dc-vuln

It exits 1 on a confirmed finding and 0 on a guarded target.

5. Expected results

dc-vuln (pre-fix)dc-guard (derived)
crafted requestroot escalationrefused
ordinary requestworksworks

Captured runs are in evidence/check-*-run.txt, evidence/exploit-*-run.txt, evidence/probe-*-run.txt, evidence/mitigation-*-run.txt, evidence/exploit-standalone-run.txt, evidence/exploit-standalone-fixed-run.txt, evidence/versions.txt and evidence/0day-sweep.txt.

6. Environment preconditions

Podman or Docker with the cve5195lab network. No production system is involved. Real-world exploitation needs an affected installation.

7. Additional findings (0-day sweep on the guarded build)

Ordinary requests still succeed on the fixed build.

8. Repository layout

README.md             this write-up
run-lab.sh            environment driver (build / up / sweep / down)
Makefile              convenience targets
poc/poc.py            the PoC (check / exploit / probe / mitigation)
exploit/exploit.py    standalone exploit
lab/harness-*.py      vulnerable behaviour / derived guard
lab/lab.Dockerfile    builds both sides
lab/service.py        HTTP wrapper (POST /check)
evidence/             captured runs on both sides
TRACKING.md           working record, excluded from the repo

9. References

  • CVE record — https://www.cve.org/CVERecord?id=CVE-2016-5195
  • Upstream advisory Linux kernel 4.8.3 — https://nvd.nist.gov/vuln/detail/CVE-2016-5195
Download Tool

Related Tools

  • PEASS-ng

    PEASS - Privilege Escalation Awesome Scripts SUITE (with colors)

  • PrivescCheck

    Privilege Escalation Enumeration Script for Windows

  • LinEnum

    Scripted Local Linux Enumeration & Privilege Escalation Checks

Most Popular

View all →

Discover the most used tools by our community.

  • 1

    Callisto

    jetp1ane/callisto

    Automated binary vulnerability analysis tool that decompiles executables via Ghidra, scans pseudo-C code with Semgrep, and validates findings using GPT-3.5-Turbo to reduce false positives.

    796
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    One-tap Android kernel exploit app for CVE-2026-43499, providing privilege escalation via kernel module loading, with offset extraction and on-device analysis tools.

    735
  • 3

    IMSIcatcher

    28zaaky/imsicatcher

    IMSI Catcher platform that deploys a rogue GSM cell to intercept SMS, inject messages and track mobile devices

    721
  • 4

    opencti

    opencti-platform/opencti

    Open Cyber Threat Intelligence Platform

    535
  • 5

    ARTEX

    baarai/artex

    LLM multi-agent autonomous penetration testing platform with planner/worker agents, asset and exploration graphs, MITM traffic recording, and vulnerability retesting.

    424
  • 6

    DFRoot

    a2333c/dfroot

    Android root tool for Samsung Galaxy S25 Ultra (SM-S938B) that chains DirtyFrag CVE-2026-43284 and CVE-2026-43499 to gain root automatically at boot via KernelSU.

    419

Explore all tools

Browse our collection of tools

View all tools →