CVEfocus › CVE database › CVE-2024-6409

CVE-2024-6409Openssh: possible remote code execution due to a race condition in signal handling…

CVSS 7.0 HighEPSS 6.8% (higher than 95% of CVEs)Published 2024-07-08Updated 2026-11-24Assigner: redhat

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.

CWE-364

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

13Fixed
34Not affected

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.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 24.04opensshNot affected
vulnerable_code_not_present
Ubuntu 24.04openssh-ssh1Not affected
vulnerable_code_not_present
Ubuntu 22.04opensshNot affected
vulnerable_code_not_present
Ubuntu 22.04openssh-ssh1Not affected
vulnerable_code_not_present
Ubuntu 20.04openssh-ssh1Not affected
vulnerable_code_not_present
Red Hat Enterprise Linux 10opensshNot affected
Red Hat Enterprise Linux 10openssh-askpassNot affected
Red Hat Enterprise Linux 10openssh-clientsNot affected
Red Hat Enterprise Linux 10openssh-keycatNot affected
Red Hat Enterprise Linux 10openssh-keysignNot affected
Red Hat Enterprise Linux 10openssh-serverNot affected
Red Hat Enterprise Linux 9opensshFixed0:8.7p1-38.el9_4.4RHSA-2024:4457
Red Hat Enterprise Linux 9openssh-askpassFixed0:8.7p1-38.el9_4.4RHSA-2024:4457
Red Hat Enterprise Linux 9openssh-clientsFixed0:8.7p1-38.el9_4.4RHSA-2024:4457
Red Hat Enterprise Linux 9openssh-keycatFixed0:8.7p1-38.el9_4.4RHSA-2024:4457
Red Hat Enterprise Linux 9openssh-serverFixed0:8.7p1-38.el9_4.4RHSA-2024:4457
Red Hat Enterprise Linux 9pam_ssh_agent_authFixed0:0.10.4-5.38.el9_4.4RHSA-2024:4457
Red Hat Enterprise Linux 8opensshNot affected
Red Hat Enterprise Linux 8openssh-askpassNot affected
Red Hat Enterprise Linux 8openssh-cavsNot affected
Red Hat Enterprise Linux 8openssh-clientsNot affected
Red Hat Enterprise Linux 8openssh-keycatNot affected
Red Hat Enterprise Linux 8openssh-ldapNot affected
Red Hat Enterprise Linux 8openssh-serverNot affected
Red Hat Enterprise Linux 8pam_ssh_agent_authNot affected
Red Hat Enterprise Linux 7opensshNot affected
Red Hat Enterprise Linux 7openssh-askpassNot affected
Red Hat Enterprise Linux 7openssh-cavsNot affected
Red Hat Enterprise Linux 7openssh-clientsNot affected
Red Hat Enterprise Linux 7openssh-keycatNot affected
Red Hat Enterprise Linux 7openssh-ldapNot affected
Red Hat Enterprise Linux 7openssh-serverNot affected
Red Hat Enterprise Linux 7openssh-server-sysvinitNot affected
Red Hat Enterprise Linux 7pam_ssh_agent_authNot affected
Red Hat Enterprise Linux 6opensshNot affected
Red Hat Enterprise Linux 6openssh-askpassNot affected
Red Hat Enterprise Linux 6openssh-clientsNot affected
Red Hat Enterprise Linux 6openssh-ldapNot affected
Red Hat Enterprise Linux 6openssh-serverNot affected
Red Hat Enterprise Linux 6pam_ssh_agent_authNot affected
AlmaLinux 9opensshFixed8.7p1-38.el9_4.4ALSA-2024:4457
AlmaLinux 9openssh-askpassFixed8.7p1-38.el9_4.4ALSA-2024:4457
AlmaLinux 9openssh-clientsFixed8.7p1-38.el9_4.4ALSA-2024:4457
AlmaLinux 9openssh-keycatFixed8.7p1-38.el9_4.4ALSA-2024:4457
AlmaLinux 9openssh-serverFixed8.7p1-38.el9_4.4ALSA-2024:4457
AlmaLinux 9pam_ssh_agent_authFixed0.10.4-5.38.el9_4.4ALSA-2024:4457
Rocky Linux 9opensshFixed0:8.7p1-38.el9_4.4RLSA-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.

Workaround: The process is identical to CVE-2024-6387, by disabling LoginGraceTime. See that CVE page for additional details.

Vendor advisories:

References

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.