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
CVE-2024-0582 — Data-only exploit for CVE-2024-0582 | Kitploit
Tools/GitHubGitHub/kuzeyardabulut/cve-2024-0582
Privilege EscalationVulnerability AnalysisExploitationPayload DevelopmentBinary Exploitation
GitHubkuzeyardabulut/cve-2024-0582

CVE-2024-0582

Data-only exploit for CVE-2024-0582

View Repository
132551 year agoNot yet reviewed
Share
Website

Introduction

This exploit implements a Dirty Cred attack method to gain unauthorized write access to /etc/passwd. Unlike many similar exploits that create numerous pages or aggressively spray file descriptors, this approach takes a more targeted route to corrupt the necessary kernel structures.

Exploit Flow (High-Level)

  • Set CPU Affinity & Increase FD Limit
    Ensures stable performance and enough file descriptors for the spray.

  • Initialize io_uring
    Creates an io_uring instance and registers a buffer ring for kernel memory usage.

  • Unregister the Buffer Ring
    Triggers the vulnerability, leaving the kernel data structures in an exploitable state.

  • File Descriptor Spray
    Opens numerous FDs to /etc/passwd, hoping to corrupt the desired kernel object.

  • Modify File Mode
    Corrupts the f_mode flags so /etc/passwd becomes writable.

  • Write Backdoor Entry
    Inserts evil::0:0:root:/root:/bin/bash into /etc/passwd.

Requirements

  • Linux Kernel with a vulnerable io_uring implementation (tested on a kernel with the CVE-2024-0582 bug).
  • Rust Toolchain (if compiling the .rs source files).
  • EXT4_FOPS_OFFSET:
    You may need to adjust the EXT4_FOPS_OFFSET value in main.rs (default is set to 0x122b3c0) depending on your Linux version. Mismatch can cause the exploit to fail or behave incorrectly.

Determining the Correct Offset Values

If your kernel exports symbol information and you have the right permissions (often this is restricted on production systems), you can read from /proc/kallsyms:

  1. Get the address of _text:

    grep " _text" /proc/kallsyms
    

    Let’s call the resulting address TEXT_ADDR.

  2. Get the address of ext4_file_operations:

    grep ext4_file_operations /proc/kallsyms
    

    Let’s call the resulting address EXT4_FOPS_ADDR.

  3. Subtract:

    EXT4_FOPS_OFFSET = EXT4_FOPS_ADDR – TEXT_ADDR
    
Download Tool

Most Popular

View all →

Discover the most used tools by our community.

  • 1

    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.

    837
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    GhostLock One-Tap Execution App (CVE-2026-43499)

    536
  • 3

    ARTEX

    baarai/artex

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

    424
  • 4

    redforge

    cybersecurity91/redforge

    Browser-side red team toolkit with 102 offline tools for recon, payload generation, credential attacks, crypto, encoding and engagement reporting.

    355
  • 5

    looking-glass

    anonghosty/looking-glass

    CSIRT platform that ingests Shadowserver reports into MongoDB and replays them as interactive maps, analysis, findings, advisories and executive dashboards.

    294
  • 6

    CyberStrikeAI

    ed1s0nz/cyberstrikeai

    The system of action for AI-native cybersecurity—where intent becomes governed execution, evidence becomes operational memory, and every operation improves the next.

    276

Explore all tools

Browse our collection of tools

View all tools →