Skip to content
KitploitKITPLOIT
工具漏洞利用博客
Log in
提交
工具漏洞利用博客
提交

黑客、渗透测试和网络安全工具,武装您的安全武器库!

Kitploit 是一个黑客、网络安全和渗透测试工具的目录。发现最新的项目更新,查找漏洞、分析系统、自动化测试并加强你的安全。

订阅源联系隐私© 2026 Kitploit

工具目录

分类

查看所有分类
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
工具/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

查看仓库
2026年11月26日尚未审核
分享
内容在请求的语言中不可用。显示英文版本。

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
下载工具

相关工具

  • PEASS-ng

    PEASS - 权限提升 Awesome 脚本套件(带颜色)

  • PrivescCheck

    Windows 权限提升枚举脚本

  • LinEnum

    脚本化的本地 Linux 信息收集与权限提升检查

最受欢迎

查看全部 →

发现我们社区最常用的工具。

  • 1

    ghostlock-app

    yukonga/ghostlock-app

    针对 CVE-2026-43499 的一键式 Android 内核漏洞利用应用,通过内核模块加载实现权限提升,并提供偏移提取与设备端分析工具。

    745
  • 2

    IMSIcatcher

    28zaaky/imsicatcher

    IMSI Catcher 平台,可部署伪基站 GSM 小区以拦截短信、注入消息并追踪移动设备

    732
  • 3

    Callisto

    jetp1ane/callisto

    自动化二进制漏洞分析工具,通过Ghidra反编译可执行文件,使用Semgrep扫描伪C代码,并利用GPT-3.5-Turbo验证发现以减少误报。

    610
  • 4

    opencti

    opencti-platform/opencti

    开放式网络威胁情报平台

    546
  • 5

    ARTEX

    baarai/artex

    基于LLM的多智能体自主渗透测试平台,具备规划器/执行器智能体、资产与探索图谱、MITM流量记录以及漏洞复测功能。

    414
  • 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.

    413

探索所有工具

浏览我们的工具集合

查看所有工具 →