ssh-keysign-pwn stealing SSH host keys and /etc/shadow via p...#2309
Open
carlospolop wants to merge 1 commit into
Open
ssh-keysign-pwn stealing SSH host keys and /etc/shadow via p...#2309carlospolop wants to merge 1 commit into
carlospolop wants to merge 1 commit into
Conversation
Collaborator
Author
🔗 Additional ContextOriginal Blog Post: https://github.com/0xdeadbeefnetwork/ssh-keysign-pwn Content Categories: Based on the analysis, this content was categorized under "Linux Hardening -> Linux Privilege Escalation -> pidfd_getfd exiting-process file descriptor theft / CVE-2026-46333". Repository Maintenance:
Review Notes:
Bot Version: HackTricks News Bot v1.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🤖 Automated Content Update
This PR was automatically generated by the HackTricks News Bot based on a technical blog post.
📝 Source Information
🎯 Content Summary
ssh-keysign-pwn is a public Linux local exploit/PoC repository for CVE-2026-46333. It demonstrates how an unprivileged local user can read root-owned files by abusing a Linux kernel authorization flaw in
__ptrace_may_access()together withpidfd_getfd(2). The repository targets kernels before commit31e62c2ebbfd, described as affecting all stable kernels as of 2026-05-14. The repository links the issue to the NVD entry at pidfd_getfd(2) to duplicate file descriptors that would normally be protected.Abusing setuid helpers that open privileged files before dropping privileges: The reusable exploitation pattern is to find a setuid-root or privileged helper that opens a root-only file first, then fully drops privileges to the caller's UID while keeping the fd open until exit. Once the process UID matches the attacker's UID, the kernel bug allows the attacker to duplicate the privileged fd du...
🤖 Agent Actions
Done.
Updated:
src/linux-hardening/privilege-escalation/README.mdWhat I added:
pidfd_getfd(2)exit_mm()beforeexit_files()chage -l <user>disclosing/etc/shadowssh-keysignleaking/etc/ssh/ssh_host_*_keyValidation:
git diff --checkpassedmdbook buildcould not be run becausemdbookis not installed in this environmentThis PR was automatically created by the HackTricks Feed Bot. Please review the changes carefully before merging.