Skip to content
KitploitKITPLOIT
ToolsBlog
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.

··Feeds·Contact·Privacy·© 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
2043 months agoReviewed by Kitploit

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
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

root@kitploit:~
make
./ptrace_may_dream [--retries N] [--nthreads N] [fd-slot]

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

Download Tool