cve.bz

CVE-2024-6409 Openssh: possible remote code execution due to a race condition in signal handling affecting red hat enterprise linux 9

7.0 highEPSS 6.8%Fix available

High (7.0) in red hat. EPSS 6.8% estimated probability of exploitation activity in the next 30 days.

On this page
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 3.1

7.0 high
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:H
EPSS
6.8% (down from 28% a week ago; 28% 30 days ago) estimated probability of exploitation activity in the next 30 days; 95th percentile. Scored 2026-11-30. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2024-07-12. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-364 Signal Handler Race Condition
Published
Modified
Assigned by
redhat (CNA)
NVD analysis
Deferred: the NVD does not plan to analyze it
Record from
the NVD, synced

Fix and patched versions

  • Red Hat Red Hat Enterprise Linux 9: fixed in 0:8.7p1-38.el9_4.4
  • Red Hat Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions: fixed in 0:8.7p1-12.el9_0.3
  • Red Hat Red Hat Enterprise Linux 9.2 Extended Update Support: fixed in 0:8.7p1-30.el9_2.7
  • Red Hat Red Hat OpenShift Container Platform 4.13: fixed in 413.92.202408122222-0
  • Red Hat Red Hat OpenShift Container Platform 4.14: fixed in 414.92.202407300859-0
  • Red Hat Red Hat OpenShift Container Platform 4.15: fixed in 415.92.202407301159-0
  • Red Hat Red Hat OpenShift Container Platform 4.16: fixed in 416.94.202407171205-0
  • Red Hat, AlmaLinux, Rocky Linux: fixed package versions per release

Ask an AI about this CVE

Show the promptExplain CVE-2024-6409 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2024-6409?via=ask-ai-copy and https://cve.bz/cve/CVE-2024-6409?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2024-6409 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

Fixed in

ProductFixed in
Red Hat Enterprise Linux 90:8.7p1-38.el9_4.4
Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions0:8.7p1-12.el9_0.3
Red Hat Enterprise Linux 9.2 Extended Update Support0:8.7p1-30.el9_2.7
Red Hat OpenShift Container Platform 4.13413.92.202408122222-0
Red Hat OpenShift Container Platform 4.14414.92.202407300859-0
Red Hat OpenShift Container Platform 4.15415.92.202407301159-0
Red Hat OpenShift Container Platform 4.16416.94.202407171205-0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Red Hatenterprise_linux:9::appstreamopenssh-askpass, openssh-debuginfo, openssh-debugsource and 5 more0:8.7p1-38.el9_4.4RHSA-2024:4457
Red Hatenterprise_linux:9::appstreampam_ssh_agent_auth, pam_ssh_agent_auth-debuginfo0:0.10.4-5.38.el9_4.4RHSA-2024:4457
Red Hatenterprise_linux:9::baseosopenssh, openssh-keycat, openssh-server and 8 more0:8.7p1-38.el9_4.4RHSA-2024:4457
Red Hatenterprise_linux:9::baseospam_ssh_agent_auth-debuginfo0:0.10.4-5.38.el9_4.4RHSA-2024:4457
Red Hatrhel_e4s:9.0::appstreamopenssh-askpass, openssh-debuginfo, openssh-debugsource and 4 more0:8.7p1-12.el9_0.3RHSA-2024:4910
Red Hatrhel_e4s:9.0::appstreampam_ssh_agent_auth, pam_ssh_agent_auth-debuginfo0:0.10.4-4.12.el9_0.3RHSA-2024:4910
Red Hatrhel_e4s:9.0::baseosopenssh, openssh-keycat, openssh-server and 7 more0:8.7p1-12.el9_0.3RHSA-2024:4910
Red Hatrhel_e4s:9.0::baseospam_ssh_agent_auth-debuginfo0:0.10.4-4.12.el9_0.3RHSA-2024:4910
Red Hatrhel_eus:9.2::appstreamopenssh-askpass, openssh-debuginfo, openssh-debugsource and 5 more0:8.7p1-30.el9_2.7RHSA-2024:4716
Red Hatrhel_eus:9.2::appstreampam_ssh_agent_auth, pam_ssh_agent_auth-debuginfo0:0.10.4-5.30.el9_2.7RHSA-2024:4716
Red Hatrhel_eus:9.2::baseosopenssh, openssh-keycat, openssh-server and 8 more0:8.7p1-30.el9_2.7RHSA-2024:4716
Red Hatrhel_eus:9.2::baseospam_ssh_agent_auth-debuginfo0:0.10.4-5.30.el9_2.7RHSA-2024:4716
AlmaLinux9openssh, openssh-keycat, openssh-server and 2 more8.7p1-38.el9_4.4ALSA-2024:4457
AlmaLinux9pam_ssh_agent_auth0.10.4-5.38.el9_4.4ALSA-2024:4457
Rocky Linux9openssh0:8.7p1-38.el9_4.4RLSA-2024:4457

From the distributions' data via OSV.dev: Red Hat Security Data © Red Hat, Inc., CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Red Hat.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

Red Hat rates the severity of this flaw as Moderate for both Red Hat Enterprise Linux (RHEL) and OpenShift Container Platform (OCP). While there are many similarities to CVE-2024-6387, the important difference is that any possible remote code execution is limited to an unprivileged child of the SSHD server. This additional restriction on access reduces the overall security impact.

This vulnerability only affects the versions of OpenSSH shipped with Red Hat Enterprise Linux 9. Upstream versions of sshd are not impacted by this flaw.

The affected versions of OCP are 4.13, 4.14, 4.15, and 4.16 while 4.12 and earlier versions of OCP are not affected.

Red Hat's mitigation

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

ProductPackageStateAdvisory
Red Hat Enterprise Linux 9openssh-0:8.7p1-38.el9_4.4Fixed 2024-07-10RHSA-2024:4457
Red Hat Enterprise Linux 9.0 Update Services for SAP Solutionsopenssh-0:8.7p1-12.el9_0.3Fixed 2024-07-30RHSA-2024:4910
Red Hat Enterprise Linux 9.2 Extended Update Supportopenssh-0:8.7p1-30.el9_2.7Fixed 2024-07-23RHSA-2024:4716
Red Hat OpenShift Container Platform 4.13openshift/ose-rhel-coreos-9:413.92.202408122222-0Fixed 2024-08-22RHSA-2024:5444
Red Hat OpenShift Container Platform 4.14openshift/ose-rhel-coreos-9:414.92.202407300859-0Fixed 2024-08-07RHSA-2024:4960
Red Hat OpenShift Container Platform 4.15openshift/ose-rhel-coreos-9:415.92.202407301159-0Fixed 2024-08-07RHSA-2024:4955
Red Hat OpenShift Container Platform 4.16openshift/ose-rhel-coreos-9:416.94.202407171205-0Fixed 2024-07-24RHSA-2024:4613
Red Hat Enterprise Linux 10opensshNot affected
Red Hat Enterprise Linux 6opensshNot affected
Red Hat Enterprise Linux 7opensshNot affected
Red Hat Enterprise Linux 8opensshNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2024-6409.

ICS advisories (CISA)

AdvisoryTitlePublishedSectorsAffectedFixed
ICSA-23-348-10Siemens SIMATIC S7-15002023-12-12Critical Manufacturing, Transportation Systems, Energy, Healthcare and Public Health, Financial Services, Government Services and FacilitiesSIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0), SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AC0), SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AB0) and 2 morenone listed

From CISA's ICS advisories (CSAF), provided under CISA's notification. Only the facts are shown; each advisory is on CISA's page. Credits.

Detection rules

Ways to detect this CVE, not exploit code: the nuclei template that checks a system for it, and the Suricata and Snort rules that name it. A rule set may ship a rule turned off, so check yours by its sid.

  • Emerging Threats Open ET INFO Server Responded with Vulnerable OpenSSH Version (CVE-2024-6409) sid 2054407

History

  1. EPSS fell to 6.8% (below 10%)

Changes since this site first stored the record. The same for every record: /api/public/changes.

References

Check your stackJSON