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
ptrace_may_dream — CVE-2026-31431-killed page-cache exploit — code exec into containers sharing the same image layer | Kitploit
Tools/GitHubGitHub/sgkdev/ptrace_may_dream
Privilege EscalationVulnerability AnalysisExploitationPenetration TestingRed TeamingContainer EscapeBinary Exploitation
GitHubsgkdev/ptrace_may_dream

ptrace_may_dream

CVE-2026-31431-killed page-cache exploit — code exec into containers sharing the same image layer

View Repository
204296 months agoReviewed by Kitploit
Share

ptrace_may_dream

CVE-2026-46333

Local privilege escalation exploit for the ptrace_may_access() mm=NULL race condition in pidfd_getfd(2).

When a process is dying and its mm has already been released, the kernel skips the ptrace access check entirely. By racing pidfd_getfd() against process exit, an unprivileged user can steal open file descriptors from a privileged process.

This exploit targets accounts-daemon: it triggers a short-lived child (via SetIconFile), wins the race to grab the daemon's D-Bus socket FD, then sends SetShell, SetAccountType, and SetPassword calls to promote the calling user to a password-known admin account.

The exploit sets the target user's password to a hardcoded value — edit it in the source before building :)

Tested on RHEL 10 and Fedora 44 with dbus-broker (D-Bus socket at FD 5).

Build and usage

make
./ptrace_may_dream [--retries N] [--nthreads N] [fd-slot]

"The process is dead, long live the process." - the kernel, probably

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.

    524
  • 2

    ghostlock-app

    yukonga/ghostlock-app

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

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

    357
  • 4

    redforge

    cybersecurity91/redforge

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

    317
  • 5

    estorides

    grisuno/estorides

    Aggregates 99+ free OSINT sources in parallel, resolves entities into a knowledge graph, and exports STIX 2.1, MISP, or GraphML with LLM-assisted analysis.

    305
  • 6

    opencti

    opencti-platform/opencti

    Open Cyber Threat Intelligence Platform

    275

Explore all tools

Browse our collection of tools

View all tools →