Lobste.rs

linux 0-day, access root-owned files as an unprivileged user

Linux Kernel Flaw Lets Attackers Read Root Files

ssh-keysign-pwn “It is a fearful thing to fall into the hands of the living God.” — Hebrews 10:31 Read root-owned files as an unprivileged user. Pre-31e62c2ebbfd kernels (everything in stable as of 2026-05-14). The bug __ptrace_may_access() skips the dumpable check when task->mm == NULL. do_exit() runs exit_mm() before exit_files() — no mm, fds still there. pidfd_getfd(2) succeeds in that window when the caller’s uid matches the target’s. Reported by Qualys, fixed by Linus 2026-05-14. Jann Horn flagged the FD-theft shape in October 2020. Six years. Targets sshkeysign_pwn — pulls /etc/ssh/ssh_host_{ecdsa,ed25519,rsa}_key. ssh-keysign.c opens them (mode 0600) before permanently_set_uid(), then bails on EnableSSHKeysign=no with the fds still open. Same shape since 2002. chage_pwn…

Continue reading at Lobste.rs github.com
Advertisement