CVE-2024-7589

A signal handler in sshd(8) may call a logging function that is not async-signal-safe.  The signal handler is invoked when a client does not authenticate within the LoginGraceTime seconds (120 by default).  This signal handler executes in the context of the sshd(8)'s privileged code, which is not sandboxed and runs with full root privileges.

This issue is another instance of the problem in CVE-2024-6387 addressed by FreeBSD-SA-24:04.openssh.  The faulty code in this case is from the integration of blacklistd in OpenSSH in FreeBSD.

As a result of calling functions that are not async-signal-safe in the privileged sshd(8) context, a race condition exists that a determined attacker may be able to exploit to allow an unauthenticated remote code execution as root.
Race Condition
ProviderTypeBase ScoreAtk. VectorAtk. ComplexityPriv. RequiredVector
NISTNIST
8.1 HIGH
NETWORK
HIGH
NONE
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
freebsdCNA
---
---
CISA-ADPADP
8.1 HIGH
NETWORK
HIGH
NONE
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
CVEADP
---
---
Base Score
CVSS 3.x
EPSS Score
Percentile: 79%
VendorProductVersion
freebsdfreebsd
𝑥
< 13.0
freebsdfreebsd
13.1 ≤
𝑥
< 13.3
freebsdfreebsd
13.3:p1
freebsdfreebsd
13.3:p2
freebsdfreebsd
13.3:p3
freebsdfreebsd
13.3:p4
freebsdfreebsd
14.0:beta5
freebsdfreebsd
14.0:p1
freebsdfreebsd
14.0:p2
freebsdfreebsd
14.0:p3
freebsdfreebsd
14.0:p4
freebsdfreebsd
14.0:p5
freebsdfreebsd
14.0:p6
freebsdfreebsd
14.0:p7
freebsdfreebsd
14.0:p8
freebsdfreebsd
14.0:rc3
freebsdfreebsd
14.0:rc4-p1
freebsdfreebsd
14.1:p1
freebsdfreebsd
14.1:p2
𝑥
= Vulnerable software versions
Debian logo
Debian Releases
Debian Product
Codename
openssh
bullseye
1:8.4p1-5+deb11u3
fixed
bullseye (security)
1:8.4p1-5+deb11u5
fixed
bookworm
1:9.2p1-2+deb12u6
fixed
bookworm (security)
1:9.2p1-2+deb12u5
fixed
sid
1:10.0p1-5
fixed
trixie
1:10.0p1-5
fixed
Ubuntu logo
Ubuntu Releases
Ubuntu Product
Codename
openssh
noble
not-affected
jammy
not-affected
focal
not-affected
bionic
not-affected
xenial
not-affected
trusty
not-affected
openssh-ssh1
noble
not-affected
jammy
not-affected
focal
not-affected
bionic
not-affected