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

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

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

订阅源联系隐私© 2026 Kitploit

工具目录

分类

查看所有分类
Loading categories
CVE-2021-22555 — Course lab reproducing CVE-2021-22555, a Linux netfilter heap out-of-bounds write: VM setup, pinned PoC build, root privilege escalation, Falco detection rules, and mitigation notes. | Kitploit
工具/GitHubGitHub/river-kris/cve-2021-22555
Privilege EscalationVulnerability AnalysisExploitationIntrusion DetectionPapers & ResearchLearning & EducationBinary ExploitationLabs & Practice
GitHubriver-kris/cve-2021-22555

CVE-2021-22555

Course lab reproducing CVE-2021-22555, a Linux netfilter heap out-of-bounds write: VM setup, pinned PoC build, root privilege escalation, Falco detection rules, and mitigation notes.

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

CVE-2021-22555 — Linux Netfilter Heap Out-of-Bounds Write

CMPE 410 course project (2026W1). Deliverable: a PDF report, due Dec 9, 11:59 p.m.

Safety: everything in this repo runs only inside an isolated VM that you own. Never run the exploit on your host, a shared machine, or a cloud box you do not control. Follow Section 2 ("Safety, Ethics, Responsibility, and Disclaimer") of the sample report.

The vulnerability in one paragraph

A heap out-of-bounds write in net/netfilter/x_tables.c (xt_compat_target_from_user / xt_compat_match_from_user). When a 32-bit process sends an iptables ruleset through the compat setsockopt(IPT_SO_SET_REPLACE) path, the kernel zero-pads each target/match to its aligned size and can write a few zero bytes past the end of the heap buffer. It was present from Linux 2.6.19 (2006) until 5.12-rc8 (2021). An unprivileged user can reach it through a user + network namespace (to get CAP_NET_ADMIN there). CVSS 7.8.

The PoC used here

The instructor-provided veritas501/CVE-2021-22555-PipeVersion exploit. It turns the 2-byte write into a msg_msg use-after-free, then uses the "pipe primitive" (the same effect as DirtyPipe) to overwrite the page cache of the SUID-root /usr/bin/mount and run it as root. It needs no KASLR leak and no ROP chain. Details in exploit/README.md and docs/notes.md.

Repo layout

PathPurpose
env/VM setup: install and pin the vulnerable kernel, check the environment
exploit/Fetch (pinned commit) and build the PoC, back up and restore /usr/bin/mount
detection/falco/Extended work: Falco rules that detect the exploit
mitigation/Extended work: upstream fix, patched-kernel comparison, workarounds
docs/notes.mdResearch notes: root cause, threat model, impact, exploit chain
docs/lab-journal.mdTimestamped log of every step you run (the TA must be able to replicate it)
docs/ai-usage.mdExtended work: how AI/LLMs were used
report/report.mdReport draft following the required structure; export to PDF
evidence/Screenshots and terminal logs referenced by the report

Quick start (inside the VM)

git clone https://github.com/river-kris/CVE-2021-22555.git && cd CVE-2021-22555
sudo ./env/install-vulnerable-kernel.sh    # installs + pins 5.8.0-48-generic, then reboot
./env/check-env.sh                          # confirms the VM is vulnerable and ready
./exploit/fetch-exploit.sh                  # downloads the PoC at a pinned commit, records its hash
./exploit/backup-target.sh                  # backs up /usr/bin/mount (the PoC overwrites it)
make -C exploit                             # gcc -m32 -static -no-pie -s
./exploit/exploit                           # run as an unprivileged user; expect a root shell
./exploit/cleanup.sh                        # in the root shell: restore mount (never kill the child!)
# then power off and restore the vulnerable-kernel snapshot. Results: docs/results.md

See env/README.md for creating the VM itself.

References

  • PoC (used): https://github.com/veritas501/CVE-2021-22555-PipeVersion
  • Pipe primitive technique: https://github.com/veritas501/pipe-primitive
  • Original writeup and PoC (Andy Nguyen, Google): https://google.github.io/security-research/pocs/linux/cve-2021-22555/writeup.html
  • Fix: upstream commit b29c457a6511435960115c0f548c4360d5f4801d ("netfilter: x_tables: fix compat match/target pad out-of-bound write")
  • NVD: https://nvd.nist.gov/vuln/detail/CVE-2021-22555
下载工具

相关工具

  • PEASS-ng

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

  • PrivescCheck

    Windows 权限提升枚举脚本

  • LinEnum

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

最受欢迎

查看全部 →

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

  • 1

    Callisto

    jetp1ane/callisto

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

    796
  • 2

    ghostlock-app

    yukonga/ghostlock-app

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

    735
  • 3

    IMSIcatcher

    28zaaky/imsicatcher

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

    721
  • 4

    opencti

    opencti-platform/opencti

    开放式网络威胁情报平台

    535
  • 5

    ARTEX

    baarai/artex

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

    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

探索所有工具

浏览我们的工具集合

查看所有工具 →