CVE-2024-7589

CVSS v3.1 8.1 (High)
81% Progress
EPSS 0.06 % (28th)
0.06% Progress
Affected Products 1
NVD Status Analyzed

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.

Weaknesses
CWE-362
Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')
CWE-364
Signal Handler Race Condition
Related CVEs
CVE Status
PUBLISHED
NVD Status
Analyzed
CNA
FreeBSD
Published Date
2024-08-12 13:38:44
(5 weeks ago)
Updated Date
2024-08-13 16:58:08
(4 weeks ago)

Affected Products

Loading...
Loading...
Loading...

Configuration #1

    CPE23 From Up To
  Freebsd prior 13.0 version cpe:2.3:o:freebsd:freebsd < 13.0
  Freebsd from 13.1 version and prior 13.3 version cpe:2.3:o:freebsd:freebsd >= 13.1 < 13.3
  Freebsd 13.3 P1 cpe:2.3:o:freebsd:freebsd:13.3:p1
  Freebsd 13.3 P2 cpe:2.3:o:freebsd:freebsd:13.3:p2
  Freebsd 13.3 P3 cpe:2.3:o:freebsd:freebsd:13.3:p3
  Freebsd 13.3 P4 cpe:2.3:o:freebsd:freebsd:13.3:p4
  Freebsd 14.0 Beta5 cpe:2.3:o:freebsd:freebsd:14.0:beta5
  Freebsd 14.0 P1 cpe:2.3:o:freebsd:freebsd:14.0:p1
  Freebsd 14.0 P2 cpe:2.3:o:freebsd:freebsd:14.0:p2
  Freebsd 14.0 P3 cpe:2.3:o:freebsd:freebsd:14.0:p3
  Freebsd 14.0 P4 cpe:2.3:o:freebsd:freebsd:14.0:p4
  Freebsd 14.0 P5 cpe:2.3:o:freebsd:freebsd:14.0:p5
  Freebsd 14.0 P6 cpe:2.3:o:freebsd:freebsd:14.0:p6
  Freebsd 14.0 P7 cpe:2.3:o:freebsd:freebsd:14.0:p7
  Freebsd 14.0 P8 cpe:2.3:o:freebsd:freebsd:14.0:p8
  Freebsd 14.0 Rc3 cpe:2.3:o:freebsd:freebsd:14.0:rc3
  Freebsd 14.0 Rc4-p1 cpe:2.3:o:freebsd:freebsd:14.0:rc4-p1
  Freebsd 14.1 P1 cpe:2.3:o:freebsd:freebsd:14.1:p1
  Freebsd 14.1 P2 cpe:2.3:o:freebsd:freebsd:14.1:p2
Loading...
Loading...
Loading...
Loading...
Loading...