Mitigation and Remediation

Mitigation: Modify LoginGraceTime Configuration

Organizations could potentially mitigate the vulnerability by adjusting the LoginGraceTime ssh daemon configuration setting to be a non-default value.

Security best practices, such as the United States' Defense Information Systems Agency (DISA) Security Technical Implementation Guidelines, cites that a secure setting for this value is less than or equal to 1 minute.

Note:

The referenced STIG is for macOS but references the setting for OpenSSH.

Ubuntu indicates in their security advisory that setting this value to 0 will mitigate the vulnerability but makes sshd vulnerable to denial of service through an exhaustion of all MaxStartups connections.

Mitigation: Modify SSHD’s Use of syslog()

In another possible mitigation, SUSE has suggested a workaround that leverages modifying how the default logging behavior of sshd to avoid the use of syslog() entirely. They explain that in sshd’s options, The -e option will not use the affected syslog() function to the journal, but instead log to stderr to systemd and so in turn to journald. You should thoroughly test the expected logging output of using this mitigation on production systems.

To apply this mitigation, in /etc/sysconfig/ssh, add the following to the SSHD_OPTS line, then restart the sshd.service:

SSHD_OPTS="-e"

Note:

These possible mitigations do not negate the need to deploy the patched version of OpenSSH Server. Further, organizations should thoroughly test these configuration change before production deployment.

Remediation

Organizations should deploy the latest version of OpenSSH Server in accordance with organizational policies and procedures. Customers that own Tanium Patch can utilize this module for supported operating systems as the patch becomes available. Additional instructions are available here.