Rapid7 Vulnerability & Exploit Database

FreeBSD: VID-58750D49-7302-11EF-8C95-195D300202B3 (CVE-2024-7589): OpenSSH -- Pre-authentication async signal safety issue

Free InsightVM Trial No Credit Card Necessary
2024 Attack Intel Report Latest research by Rapid7 Labs
Back to Search

FreeBSD: VID-58750D49-7302-11EF-8C95-195D300202B3 (CVE-2024-7589): OpenSSH -- Pre-authentication async signal safety issue

Severity
4
CVSS
(AV:L/AC:M/Au:N/C:P/I:P/A:P)
Published
08/06/2024
Created
09/20/2024
Added
09/19/2024
Modified
09/22/2024

Description

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.

Solution(s)

  • freebsd-upgrade-base-13_3-release-p5
  • freebsd-upgrade-base-14_0-release-p9
  • freebsd-upgrade-base-14_1-release-p3
  • freebsd-upgrade-package-openssh-portable

With Rapid7 live dashboards, I have a clear view of all the assets on my network, which ones can be exploited, and what I need to do in order to reduce the risk in my environment in real-time. No other tool gives us that kind of value and insight.

– Scott Cheney, Manager of Information Security, Sierra View Medical Center

;