Skip to content
KitploitKITPLOIT
StrumentiExploitsBlog
Log in
Invia
StrumentiExploitsBlog
Invia

Strumenti di Hacking, PenTest e Cybersecurity per il tuo Arsenale di Sicurezza!

Kitploit è una directory di strumenti di hacking, cybersecurity e pentesting. Scopri gli ultimi aggiornamenti dei progetti per trovare vulnerabilità, analizzare sistemi, automatizzare i test e rafforzare la tua sicurezza.

FeedContattoPrivacy© 2026 Kitploit

Directory degli strumenti

Categorie

Vedi tutte le categorie
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
Strumenti/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

Vedi Repository
26 nov 2026Non ancora revisionato
Condividi
Contenuto non disponibile nella lingua richiesta. Visualizzazione della versione inglese.

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
Scarica lo strumento

Strumenti correlati

  • PEASS-ng

    PEASS - Suite di Script Fantastici per l'Escalation dei Privilegi (con colori)

  • PrivescCheck

    Script di enumerazione per escalation dei privilegi per Windows

  • LinEnum

    Enumeration locale Linux scriptata e controlli di escalation dei privilegi

Più Popolari

Vedi tutti →

Scopri gli strumenti più utilizzati dalla nostra community.

  • 1

    Callisto

    jetp1ane/callisto

    Strumento automatizzato di analisi delle vulnerabilità binarie che decompila eseguibili tramite Ghidra, esegue la scansione del pseudo-codice C con Semgrep e convalida i risultati utilizzando GPT-3.5-Turbo per ridurre i falsi positivi.

    796
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    # App di esecuzione con un tocco GhostLock (CVE-2026-43499)

    735
  • 3

    IMSIcatcher

    28zaaky/imsicatcher

    Piattaforma IMSI Catcher che distribuisce una cella GSM rogue per intercettare SMS, iniettare messaggi e tracciare dispositivi mobili

    721
  • 4

    opencti

    opencti-platform/opencti

    Piattaforma aperta di intelligence sulle minacce informatiche

    535
  • 5

    ARTEX

    baarai/artex

    Piattaforma di penetration testing autonoma multi-agente basata su LLM con agenti planner/worker, grafi di asset e di esplorazione, registrazione del traffico MITM e retesting delle vulnerabilità.

    424
  • 6

    DFRoot

    a2333c/dfroot

    Strumento di root per Android per Samsung Galaxy S25 Ultra (SM-S938B) che concatena DirtyFrag CVE-2026-43284 e CVE-2026-43499 per ottenere i privilegi di root automaticamente all'avvio tramite KernelSU.

    419

Esplora tutti gli strumenti

Sfoglia la nostra collezione di strumenti

Vedi tutti gli strumenti →