Description
This module exploits a race condition in the Linux kernel do_exit() teardown path affecting __ptrace_may_access().
During process termination, privileged file descriptors may remain accessible through pidfd_getfd() after task->mm becomes NULL, allowing sensitive file disclosure from privileged SUID binaries such as chage.
This module targets chage to disclose /etc/shadow.
This module performs information disclosure only and does not create a new session.
Module options
To display the available options, load the module within the Metasploit console and run the commands 'show options' or 'show advanced':
msf > use post/linux/gather/cve_2026_46333_chagemsf undefined(cve_2026_46333_chage) > show actions ...actions...msf undefined(cve_2026_46333_chage) > set ACTION < action-name >msf undefined(cve_2026_46333_chage) > show options ...show and set options...msf undefined(cve_2026_46333_chage) > runPrioritise with Active Threat Intelligence
With curated Threat Intelligence, you can see which vulnerabilities truly put you at risk, prioritize what matters most, and act before attackers do.
Explore Intelligence Hub