CVE-2024-7589OpenSSH pre-authentication async signal safety issue
A signal handler in sshd(8) may call a logging function that is not async-signal-safe. The signal handler is invoked when a client does not authenticate within the LoginGraceTime seconds (120 by default). This signal handler executes in the context of the sshd(8)'s privileged code, which is not sandboxed and runs with full root privileges. This issue is another instance of the problem in CVE-2024-6387 addressed by FreeBSD-SA-24:04.openssh. The faulty code in this case is from the integration of blacklistd in OpenSSH in FreeBSD. As a result of calling functions that are not async-signal-safe in the privileged sshd(8) context, a race condition exists that a determined attacker may be able to exploit to allow an unauthenticated remote code execution as root.
What to do
None of the Linux distributions or Windows releases we track list an affected package for this CVE. Check the vendor-reported products below.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 24.04 | openssh | Not affected vulnerable_code_not_present | ||
| Ubuntu 24.04 | openssh-ssh1 | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | openssh | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | openssh-ssh1 | Not affected vulnerable_code_not_present | ||
| Ubuntu 20.04 | openssh-ssh1 | Not affected vulnerable_code_not_present | ||
| Red Hat Enterprise Linux 10 | openssh | Not affected | ||
| Red Hat Enterprise Linux 10 | openssh-askpass | Not affected | ||
| Red Hat Enterprise Linux 10 | openssh-clients | Not affected | ||
| Red Hat Enterprise Linux 10 | openssh-keycat | Not affected | ||
| Red Hat Enterprise Linux 10 | openssh-keysign | Not affected | ||
| Red Hat Enterprise Linux 10 | openssh-server | Not affected | ||
| Red Hat Enterprise Linux 9 | openssh | Not affected | ||
| Red Hat Enterprise Linux 9 | openssh-askpass | Not affected | ||
| Red Hat Enterprise Linux 9 | openssh-clients | Not affected | ||
| Red Hat Enterprise Linux 9 | openssh-keycat | Not affected | ||
| Red Hat Enterprise Linux 9 | openssh-server | Not affected | ||
| Red Hat Enterprise Linux 9 | pam_ssh_agent_auth | Not affected | ||
| Red Hat Enterprise Linux 8 | openssh | Not affected | ||
| Red Hat Enterprise Linux 8 | openssh-askpass | Not affected | ||
| Red Hat Enterprise Linux 8 | openssh-cavs | Not affected | ||
| Red Hat Enterprise Linux 8 | openssh-clients | Not affected | ||
| Red Hat Enterprise Linux 8 | openssh-keycat | Not affected | ||
| Red Hat Enterprise Linux 8 | openssh-ldap | Not affected | ||
| Red Hat Enterprise Linux 8 | openssh-server | Not affected | ||
| Red Hat Enterprise Linux 8 | pam_ssh_agent_auth | Not affected | ||
| Red Hat Enterprise Linux 7 | openssh | Not affected | ||
| Red Hat Enterprise Linux 7 | openssh-askpass | Not affected | ||
| Red Hat Enterprise Linux 7 | openssh-cavs | Not affected | ||
| Red Hat Enterprise Linux 7 | openssh-clients | Not affected | ||
| Red Hat Enterprise Linux 7 | openssh-keycat | Not affected | ||
| Red Hat Enterprise Linux 7 | openssh-ldap | Not affected | ||
| Red Hat Enterprise Linux 7 | openssh-server | Not affected | ||
| Red Hat Enterprise Linux 7 | openssh-server-sysvinit | Not affected | ||
| Red Hat Enterprise Linux 7 | pam_ssh_agent_auth | Not affected | ||
| Red Hat Enterprise Linux 6 | openssh | Not affected | ||
| Red Hat Enterprise Linux 6 | openssh-askpass | Not affected | ||
| Red Hat Enterprise Linux 6 | openssh-clients | Not affected | ||
| Red Hat Enterprise Linux 6 | openssh-ldap | Not affected | ||
| Red Hat Enterprise Linux 6 | openssh-server | Not affected | ||
| Red Hat Enterprise Linux 6 | pam_ssh_agent_auth | Not affected |
What the vendor says
As published in the CVE record by freebsd, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- FreeBSD: affected: 14.1-RELEASE to before p3, 14.0-RELEASE to before p9, 13.3-RELEASE to before p5
Vendor advisories:
- https://security.freebsd.org/advisories/FreeBSD-SA-24:08.openssh.asc (vendor-advisory)
References
- https://security.freebsd.org/advisories/FreeBSD-SA-24:08.openssh.asc
- https://www.cve.org/CVERecord?id=CVE-2006-5051
- https://www.cve.org/CVERecord?id=CVE-2024-6387
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.