Skip to content
KitploitKITPLOIT
ToolsBlog
Log in
Submit
ToolsBlog
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-2025-6019 — Proof-of-concept exploit for CVE-2025-6019, a local privilege escalation in libblockdev/udisks. Creates an XFS image with SUID bash to gain root shell on vulnerable Linux systems. | Kitploit
Tools/GitHubGitHub/guinea-offensive-security/cve-2025-6019
Privilege EscalationVulnerability AnalysisExploitationPenetration TestingLearning & EducationBinary Exploitation
GitHubguinea-offensive-security/cve-2025-6019

CVE-2025-6019

Share

Proof-of-concept exploit for CVE-2025-6019, a local privilege escalation in libblockdev/udisks. Creates an XFS image with SUID bash to gain root shell on vulnerable Linux systems.

View Repository
7116401 year agoReviewed by Kitploit

CVE-2025-6019 Proof of Concept (PoC)

This repository contains a Proof of Concept (PoC) script for CVE-2025-6019, a Local Privilege Escalation (LPE) vulnerability in libblockdev and udisks. The script creates an XFS filesystem image with an SUID bash binary and exploits the vulnerability to mount it without the nosuid option, allowing a root shell.

WARNING: This PoC is for educational and testing purposes only. Use it only on systems you are authorized to test. Unauthorized use is illegal and unethical.

Exploit Demo

Features

  • Local Mode: Creates a 300 MB XFS image with an SUID bash binary (requires root).
  • Target Mode: Exploits the vulnerability on a target system to gain a root shell.
  • Robust Error Handling: Includes retries for filesystem resize and SUID checks, with detailed debugging output.
  • Persistent Mount on Success: Keeps the filesystem mounted with a background process if the exploit succeeds, preserving the SUID binary.
  • Cleanup: Removes temporary files, loop devices, and mounts on failure; manual cleanup required on success.

Prerequisites

Operating System:

  • Tested on:
    • openSUSE Leap 15.6
    • Kali GNU/Linux Rolling 2023.4 (kernel 6.6.15-amd64); may work on other Linux distributions with vulnerable udisks2/libblockdev versions (e.g., Kali Linux).
  • Dependencies:
    • dd, mkfs.xfs, mount, umount, udisksctl, gdbus, killall, grep, chmod, cp
    • Install on Debian-based systems: sudo apt-get install coreutils xfsprogs udisks2 libblockdev-utils
    • Install on RPM-based systems: sudo zypper install coreutils xfsprogs udisks2 libblockdev
  • Root Access: Required for [L]ocal mode to create the XFS image.
  • Vulnerable System: A system with a vulnerable version of udisks2/libblockdev (specific versions for CVE-2025-6019 are unknown; verify manually).

Usage

$ git clone https://github.com/guinea-offensive-security/CVE-2025-6019
$ cd CVE-2025-6019
$ chmod +x exploit.sh
$ bash exploit.sh

Then generate the xfs.image and transfert it into your victim Machine with the exploit.sh & then execute it with the C flag

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.

    871
  • 2

    ghostlock-app

    yukonga/ghostlock-app

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

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

    383
  • 4

    redforge

    cybersecurity91/redforge

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

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

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

    280

Explore all tools

Browse our collection of tools

View all tools →