regreSSHion
regreSSHion (CVE-2024-6387) is a pre-authentication signal-handler race condition in the OpenSSH server, sshd, that regresses the fix for CVE-2006-5051. When a client fails to authenticate within LoginGraceTime, the SIGALRM handler invokes functions that are not async-signal-safe, including syslog(). On affected glibc-based Linux systems, these calls can invoke malloc() or free() and interrupt heap operations, potentially causing exploitable heap corruption in the root-privileged server process. The modern upstream affected range is OpenSSH 8.5p1 through 9.7p1; OpenSSH 9.8p1 fixes the regression. Legacy releases before 4.4p1 may also be vulnerable without the applicable historical fixes. OpenBSD is unaffected. OpenSSH clients alone are not affected.
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
What an attacker gets, and what they’ve been doing with it.
Successful exploitation can allow unauthenticated remote execution of arbitrary code with root privileges, compromising system confidentiality, integrity, and availability. Attackers could access or alter sensitive data, install malware, create privileged accounts, establish persistence, and use the compromised host for lateral movement. Exploitation attempts can also crash the service or otherwise cause denial of service. Practical code execution was demonstrated on specific 32-bit glibc-based Linux systems with ASLR enabled; equivalent exploitability across all affected platforms is not established.
If you can’t patch tonight, do this now.
If patching is not immediately possible, set LoginGraceTime to 0 in the SSH server configuration and restart the service. This prevents the vulnerable authentication-timeout signal path but increases denial-of-service exposure because unauthenticated connections can exhaust MaxStartups capacity. Disable SSH where unnecessary; otherwise restrict access to trusted hosts or management networks using firewall rules or ACLs, and remove direct internet exposure. Monitor for unusually large numbers of authentication timeouts and repeated unauthenticated connections. Connection-abuse controls can reduce attempts but do not replace patching.
Patch, then assume compromise.
Upgrade upstream OpenSSH to 9.8p1 or later, or install the operating-system or appliance vendor's fixed package or firmware containing the backported correction. The fix removes unsafe operations from the asynchronous SIGALRM handling path. Restart the SSH service after applying updates as required by the vendor. Assess exposure using distribution-specific package and build information rather than upstream version strings alone, because vendor backports can fix older-numbered releases. Replace or update legacy releases lacking the fixes for CVE-2006-5051 and CVE-2008-4109. Prioritize internet-accessible servers and management interfaces.
26 exploits validated by Mallory's analysis. Hidden: 34 rejected by Mallory's analysis as not a working exploit; 5 not yet analyzed, such as Exploit-DB entries. Showing the 25 most capable, earliest first.
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
83 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.