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.

3 दिस॰ 2026अभी तक समीक्षित नहीं
साझा करें
रिपॉजिटरी देखें
अनुरोधित भाषा में सामग्री उपलब्ध नहीं है। अंग्रेज़ी संस्करण दिखाया जा रहा है।

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 - विशेषाधिकार वृद्धि के लिए अद्भुत स्क्रिप्ट्स सूट (रंगों के साथ)

  • PrivescCheck

    विंडोज के लिए विशेषाधिकार वृद्धि गणना स्क्रिप्ट

  • LinEnum

    स्क्रिप्टेड स्थानीय लिनक्स गणना और विशेषाधिकार वृद्धि जांच

सबसे लोकप्रिय

सभी देखें →

हमारे समुदाय द्वारा सबसे अधिक उपयोग किए जाने वाले उपकरण खोजें।

  • 1

    Callisto

    jetp1ane/callisto

    स्वचालित बाइनरी भेद्यता विश्लेषण उपकरण जो Ghidra के माध्यम से निष्पादन योग्य फ़ाइलों को डीकंपाइल करता है, Semgrep के साथ स्यूडो-सी कोड को स्कैन करता है, और गलत सकारात्मकता को कम करने के लिए GPT-3.5-Turbo का उपयोग करके निष्कर्षों को मान्य करता है।

    796
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    # घोस्टलॉक वन-टैप निष्पादन ऐप (CVE-2026-43499)

    735
  • 3

    IMSIcatcher

    28zaaky/imsicatcher

    IMSI Catcher प्लेटफ़ॉर्म जो SMS को इंटरसेप्ट करने, संदेश इंजेक्ट करने और मोबाइल उपकरणों को ट्रैक करने के लिए एक रोगी GSM सेल तैनात करता है

    721
  • 4

    opencti

    opencti-platform/opencti

    खुला साइबर खतरा बुद्धिमत्ता प्लेटफॉर्म

    535
  • 5

    ARTEX

    baarai/artex

    प्लानर/वर्कर एजेंट, एसेट और एक्सप्लोरेशन ग्राफ़, MITM ट्रैफ़िक रिकॉर्डिंग, और भेद्यता पुनःपरीक्षण के साथ LLM मल्टी-एजेंट स्वायत्त पेनेट्रेशन टेस्टिंग प्लेटफ़ॉर्म।

    424
  • 6

    DFRoot

    a2333c/dfroot

    Samsung Galaxy S25 Ultra (SM-S938B) के लिए Android रूट टूल जो बूट पर KernelSU के माध्यम से स्वचालित रूप से रूट प्राप्त करने के लिए DirtyFrag CVE-2026-43284 और CVE-2026-43499 को चेन करता है।

    419

सभी उपकरण खोजें

हमारे उपकरणों का संग्रह ब्राउज़ करें

सभी उपकरण देखें →