CVE-2024-6409

7.0High

Published Jul 8, 2024 · NVD status: Deferred · AI triage by gemini-3.1-flash-lite

7.0CVSS

High

0CVSS v3.110

Attack vector
Network
Complexity
High
Privileges
None
User action
None
Impact
High impact on availability
Weakness
CWE-364

What an attacker gets

Remote attackers can achieve code execution as the sshd user. This requires the attacker to win a race condition during the authentication timeout window.

Root cause

The sshd SIGALRM handler calls non-async-signal-safe functions like syslog() asynchronously.

Affected versions

Versions not listed — check the vendor advisory for your specific distribution.

CVSS v3.1 · CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:H

Fix & remediation

Upgrade your openssh-server package to the version provided by your distribution vendor. As a temporary mitigation, set LoginGraceTime to 0 in /etc/ssh/sshd_config to disable the timeout, though this may increase vulnerability to resource exhaustion.

remediation — bash
$ sudo apt-get update && sudo apt-get install --only-upgrade openssh-server

AI-suggested. Run it in staging first and check it against the vendor advisory. Why?

NVD 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.

References

Source: nvd.nist.gov/vuln/detail/CVE-2024-6409

More fully triaged vulnerabilities you may want to check next.