CVE-2024-6409Openssh: possible remote code execution due to a race condition in signal handling…
A race condition vulnerability was discovered in how signals are handled by OpenSSH's server (sshd). If a remote attacker does not authenticate within a set time period, then sshd's SIGALRM handler is called asynchronously. However, this signal handler calls various functions that are not async-signal-safe, for example, syslog(). As a consequence of a successful attack, in the worst case scenario, an attacker may be able to perform a remote code execution (RCE) as an unprivileged user running the sshd server.
What to do
Fixed builds are available from AlmaLinux, Red Hat, Rocky Linux: see the table below for the fixed version per release.
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 | Fixed | 0:8.7p1-38.el9_4.4 | RHSA-2024:4457 |
| Red Hat Enterprise Linux 9 | openssh-askpass | Fixed | 0:8.7p1-38.el9_4.4 | RHSA-2024:4457 |
| Red Hat Enterprise Linux 9 | openssh-clients | Fixed | 0:8.7p1-38.el9_4.4 | RHSA-2024:4457 |
| Red Hat Enterprise Linux 9 | openssh-keycat | Fixed | 0:8.7p1-38.el9_4.4 | RHSA-2024:4457 |
| Red Hat Enterprise Linux 9 | openssh-server | Fixed | 0:8.7p1-38.el9_4.4 | RHSA-2024:4457 |
| Red Hat Enterprise Linux 9 | pam_ssh_agent_auth | Fixed | 0:0.10.4-5.38.el9_4.4 | RHSA-2024:4457 |
| 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 | ||
| AlmaLinux 9 | openssh | Fixed | 8.7p1-38.el9_4.4 | ALSA-2024:4457 |
| AlmaLinux 9 | openssh-askpass | Fixed | 8.7p1-38.el9_4.4 | ALSA-2024:4457 |
| AlmaLinux 9 | openssh-clients | Fixed | 8.7p1-38.el9_4.4 | ALSA-2024:4457 |
| AlmaLinux 9 | openssh-keycat | Fixed | 8.7p1-38.el9_4.4 | ALSA-2024:4457 |
| AlmaLinux 9 | openssh-server | Fixed | 8.7p1-38.el9_4.4 | ALSA-2024:4457 |
| AlmaLinux 9 | pam_ssh_agent_auth | Fixed | 0.10.4-5.38.el9_4.4 | ALSA-2024:4457 |
| Rocky Linux 9 | openssh | Fixed | 0:8.7p1-38.el9_4.4 | RLSA-2024:4457 |
What the vendor says
As published in the CVE record by redhat, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- OpenSSH
- Red Hat Enterprise Linux 9
- Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions
- Red Hat Enterprise Linux 9.2 Extended Update Support
- Red Hat OpenShift Container Platform 4.13
- Red Hat OpenShift Container Platform 4.14
- Red Hat OpenShift Container Platform 4.15
- Red Hat OpenShift Container Platform 4.16
- Red Hat Enterprise Linux 10
- Red Hat Enterprise Linux 6
- Red Hat Enterprise Linux 7
- Red Hat Enterprise Linux 8
Workaround: The process is identical to CVE-2024-6387, by disabling LoginGraceTime. See that CVE page for additional details.
Vendor advisories:
- https://access.redhat.com/errata/RHSA-2024:4457 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2024:4613 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2024:4716 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2024:4910 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2024:4955 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2024:4960 (vendor-advisory)
References
- https://access.redhat.com/errata/RHSA-2024:4457
- https://access.redhat.com/errata/RHSA-2024:4613
- https://access.redhat.com/errata/RHSA-2024:4716
- https://access.redhat.com/errata/RHSA-2024:4910
- https://access.redhat.com/errata/RHSA-2024:4955
- https://access.redhat.com/errata/RHSA-2024:4960
- https://access.redhat.com/errata/RHSA-2024:5444
- https://access.redhat.com/security/cve/CVE-2024-6409
- https://bugzilla.redhat.com/show_bug.cgi?id=2295085
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.