CVE feed → CVE-2024-6387

CVE-2024-6387 — regreSSHion — OpenSSH signal-handler race

Race condition in sshd's SIGALRM handler that calls async-signal-unsafe functions, leaving the heap in an inconsistent state. With sufficient timing, an unauthenticated attacker can exploit this for remote code execution as root on glibc-based Linux. Disclosed by Qualys on 2024-07-01, patched in OpenSSH 9.8.

TL;DR

At a glance

CVE IDCVE-2024-6387
SeverityHigh (CVSS 8.1)
CVSS 3.1 score8.1
CVSS vectorAV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
CWECWE-364 (Signal Handler Race Condition)
EPSS (probability of exploit, 30-day)0.9+
CISA KEV listedNo (as of this writing — widely exploited in opportunistic scanning, but not yet added to CISA KEV)
Published2024-07-01
Last updated (NVD)2024-07-15

Affected versions and fix paths

Per-distro fix versions for the packages most homelab fleets run. Match the installed version on your host against the vulnerable column; upgrade to the fixed column.

Package / distro Vulnerable Fixed in
OpenSSH upstream8.5p1 — 9.7p19.8 (or distro backport)
Ubuntu 22.04 LTS1:8.9p1-3ubuntu0.10 and earlier1:8.9p1-3ubuntu0.10+esm2
Ubuntu 24.04 LTS1:9.6p1-3ubuntu13 and earlier1:9.6p1-3ubuntu13.3
Debian 12 (Bookworm)1:9.2p1-2+deb12u2 and earlier1:9.2p1-2+deb12u3
Rocky Linux 9 / RHEL 9openssh-server-8.7p1-38.el9 and earlieropenssh-server-8.7p1-38.el9_4.1
AlmaLinux 9openssh-server-8.7p1-38.el9 and earlieropenssh-server-8.7p1-38.el9_4.1
OpenBSDNot affected (different libc)n/a
OpenSSH < 4.4p1Not affected (bug introduced in 8.5p1 regression)n/a

Quick scan check

Run this on each homelab host to determine the installed version. Compare against the table above.

ssh -V 2>&1
# Compare to per-distro fix table above
# Or check the package version directly:
dpkg -s openssh-server 2>/dev/null | grep ^Version
rpm -q openssh-server

Anything below the per-distro fix version is vulnerable. On Debian/Ubuntu, the version string includes the security update's +esm2 / +deb12u3 suffix when patched.

What Noxen does about this

Noxen flags every SSH-server host running an unpatched OpenSSH version in the affected range. Because the affected package is openssh-server on every major distro, the SSH-key inventory probe doubles as the regreSSHion check — you don't need a separate setup step.

The deep-dive

For the full narrative — disclosure timeline, exploit mechanics, defence-in-depth context, and homelab-shape risk assessment — read regreSSHion (CVE-2024-6387) — what every homelab operator should know on the Noxen blog.

Authoritative sources

See what Noxen does about CVEs like this →   More on CVE management →