CVE-2024-6409
Openssh: possible remote code execution due to a race condition in signal handling affecting red hat enterprise linux 9
Check your servers for CVE-2024-6409
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2024-6409 affects openssh, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
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.
Severity (CVSS)
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:H
- Attack vector
- network: an attacker can reach the vulnerable part over the network, often from the internet
- Attack complexity
- high: an attack depends on conditions outside the control of the attacker, such as a race
- Privileges required
- none: the attacker does not need an account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality low, integrity low, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 6.84%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 94.8% of all scored CVEs. Scores of 30 Nov 2026.
The assessment of CISA (SSVC, 12 Jul 2024):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- total: full control of the component or of its data
Weakness
- CWE-364 Signal Handler Race Condition
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
|
OpenSSH
package
OpenSSH |
unaffected the record does not list versions
|
|
Red Hat Enterprise Linux 9
package
openssh |
unaffected 0:8.7p1-38.el9_4.4 and later
Other versions: affected
|
|
Red Hat Enterprise Linux 9
package
openssh |
unaffected 0:8.7p1-38.el9_4.4 and later
Other versions: affected
|
|
Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions
package
openssh |
unaffected 0:8.7p1-12.el9_0.3 and later
Other versions: affected
|
|
Red Hat Enterprise Linux 9.2 Extended Update Support
package
openssh |
unaffected 0:8.7p1-30.el9_2.7 and later
Other versions: affected
|
|
Red Hat OpenShift Container Platform 4.13
package
openshift/ose-rhel-coreos-9 |
unaffected 413.92.202408122222-0 and later
Other versions: affected
|
|
Red Hat OpenShift Container Platform 4.14
package
openshift/ose-rhel-coreos-9 |
unaffected 414.92.202407300859-0 and later
Other versions: affected
|
|
Red Hat OpenShift Container Platform 4.15
package
openshift/ose-rhel-coreos-9 |
unaffected 415.92.202407301159-0 and later
Other versions: affected
|
|
Red Hat OpenShift Container Platform 4.16
package
openshift/ose-rhel-coreos-9 |
unaffected 416.94.202407171205-0 and later
Other versions: affected
|
|
Red Hat Enterprise Linux 10
package
openssh |
unaffected the record does not list versions
|
|
Red Hat Enterprise Linux 6
package
openssh |
unaffected the record does not list versions
|
|
Red Hat Enterprise Linux 7
package
openssh |
unaffected the record does not list versions
|
|
Red Hat Enterprise Linux 8
package
openssh |
unaffected the record does not list versions
|
Is my server affected?
Find the installed version of openssh and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.
Debian, Ubuntu
dpkg -l | grep -i openssh
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2024-6409 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2024-6409RHEL, Rocky, Alma, Fedora
rpm -q openssh
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2024-6409Alpine
apk list --installed | grep -i opensshWith Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2024-6409
trivy image --scanners vuln IMAGE | grep CVE-2024-6409
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Advisories
- RHSA-2024:4457 access.redhat.com · vendor advisory
- RHSA-2024:4613 access.redhat.com · vendor advisory
- RHSA-2024:4716 access.redhat.com · vendor advisory
- RHSA-2024:4910 access.redhat.com · vendor advisory
- RHSA-2024:4955 access.redhat.com · vendor advisory
- RHSA-2024:4960 access.redhat.com · vendor advisory
- RHSA-2024:5444 access.redhat.com · vendor advisory
- https://access.redhat.com/security/cve/CVE-2024-6409 access.redhat.com · vdb entry
- RHBZ#2295085 bugzilla.redhat.com · issue tracking
Other references
- http://www.openwall.com/lists/oss-security/2024/07/08/2 openwall.com
- http://www.openwall.com/lists/oss-security/2024/07/09/2 openwall.com
- http://www.openwall.com/lists/oss-security/2024/07/09/5 openwall.com
- http://www.openwall.com/lists/oss-security/2024/07/10/1 openwall.com
- http://www.openwall.com/lists/oss-security/2024/07/10/2 openwall.com
- https://almalinux.org/blog/2024-07-09-cve-2024-6409/ almalinux.org
- https://bugzilla.suse.com/show_bug.cgi?id=1227217 bugzilla.suse.com
- https://explore.alas.aws.amazon.com/CVE-2024-6409.html explore.alas.aws.amazon.com
- https://github.com/openela-main/openssh/commit/c00da7741d42029e49047dd89e266d91dcfbffa0 github.com
- https://security-tracker.debian.org/tracker/CVE-2024-6409 security-tracker.debian.org
- https://security.netapp.com/advisory/ntap-20240712-0003/ security.netapp.com
- https://sig-security.rocky.page/issues/CVE-2024-6409/ sig-security.rocky.page
- https://ubuntu.com/security/CVE-2024-6409 ubuntu.com
- https://www.suse.com/security/cve/CVE-2024-6409.html suse.com
- https://cert-portal.siemens.com/productcert/html/ssa-398330.html cert-portal.siemens.com
Source: the record CVE-2024-6409 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse