Skip to content
KitploitKITPLOIT
OutilsExploitsBlog
Log in
Soumettre
OutilsExploitsBlog
Soumettre

Outils de Hacking, PenTest et Cybersécurité pour votre Arsenal de Sécurité !

Kitploit est un répertoire d'outils de hacking, de cybersécurité et de pentesting. Découvrez les dernières mises à jour des projets pour trouver des vulnérabilités, analyser des systèmes, automatiser les tests et renforcer votre sécurité.

FluxContactConfidentialité© 2026 Kitploit

Répertoire d'outils

Catégories

Voir toutes les catégories
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
Outils/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

Voir le dépôt
26 nov. 2026Pas encore vérifié
Partager
Contenu non disponible dans la langue demandée. Affichage de la version anglaise.

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
Télécharger l’outil

Outils similaires

  • PEASS-ng

    PEASS - Suite de scripts impressionnants pour l'escalade de privilèges (avec couleurs)

  • PrivescCheck

    Script d'énumération d'escalade de privilèges pour Windows

  • LinEnum

    Scripts de vérification d'énumération locale Linux et d'escalade de privilèges

Populaires

Voir tout →

Découvrez les outils les plus utilisés par notre communauté.

  • 1

    Callisto

    jetp1ane/callisto

    Outil automatisé d'analyse de vulnérabilités binaires qui décompile des exécutables via Ghidra, analyse du pseudo-code C avec Semgrep, et valide les résultats en utilisant GPT-3.5-Turbo pour réduire les faux positifs.

    796
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    # Application d'exécution en un clic GhostLock (CVE-2026-43499)

    735
  • 3

    IMSIcatcher

    28zaaky/imsicatcher

    Plateforme IMSI Catcher qui déploie une cellule GSM frauduleuse pour intercepter les SMS, injecter des messages et suivre les appareils mobiles

    721
  • 4

    opencti

    opencti-platform/opencti

    Plateforme ouverte de renseignement sur les cybermenaces

    535
  • 5

    ARTEX

    baarai/artex

    Plateforme autonome de tests d'intrusion multi-agents basée sur des LLM, avec agents planificateur/ouvrier, graphes d'actifs et d'exploration, enregistrement du trafic MITM et retest des vulnérabilités.

    424
  • 6

    DFRoot

    a2333c/dfroot

    Outil de root Android pour Samsung Galaxy S25 Ultra (SM-S938B) qui enchaîne DirtyFrag CVE-2026-43284 et CVE-2026-43499 pour obtenir le root automatiquement au démarrage via KernelSU.

    419

Explorer tous les outils

Parcourez notre collection d'outils

Voir tous les outils →