Rocky Linux 8 : libssh (RLSA-2022:2031)

medium Nessus Plugin ID 161351

Synopsis

The remote Rocky Linux host is missing a security update.

Description

The remote Rocky Linux 8 host has packages installed that are affected by a vulnerability as referenced in the RLSA-2022:2031 advisory.

- A flaw has been found in libssh in versions prior to 0.9.6. The SSH protocol keeps track of two shared secrets during the lifetime of the session. One of them is called secret_hash and the other session_id.
Initially, both of them are the same, but after key re-exchange, previous session_id is kept and used as an input to new secret_hash. Historically, both of these buffers had shared length variable, which worked as long as these buffers were same. But the key re-exchange operation can also change the key exchange method, which can be based on hash of different size, eventually creating secret_hash of different size than the session_id has. This becomes an issue when the session_id memory is zeroed or when it is used again during second key re-exchange. (CVE-2021-3634)

Note that Nessus has not tested for this issue but has instead relied only on the application's self-reported version number.

Solution

Update the affected packages.

See Also

https://errata.rockylinux.org/RLSA-2022:2031

https://bugzilla.redhat.com/show_bug.cgi?id=1896651

https://bugzilla.redhat.com/show_bug.cgi?id=1978810

https://bugzilla.redhat.com/show_bug.cgi?id=2020159

Plugin Details

Severity: Medium

ID: 161351

File Name: rocky_linux_RLSA-2022-2031.nasl

Version: 1.2

Type: local

Published: 5/18/2022

Updated: 5/18/2022

Risk Information

VPR

Risk Factor: Medium

Score: 4.4

CVSS v2

Risk Factor: Medium

Base Score: 4

Temporal Score: 3

Vector: AV:N/AC:L/Au:S/C:N/I:N/A:P

Temporal Vector: E:U/RL:OF/RC:C

CVSS Score Source: CVE-2021-3634

CVSS v3

Risk Factor: Medium

Base Score: 6.5

Temporal Score: 5.7

Vector: CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Temporal Vector: E:U/RL:O/RC:C

Vulnerability Information

CPE: p-cpe:/a:rocky:linux:libssh, p-cpe:/a:rocky:linux:libssh-config, p-cpe:/a:rocky:linux:libssh-debuginfo, p-cpe:/a:rocky:linux:libssh-debugsource, p-cpe:/a:rocky:linux:libssh-devel, cpe:/o:rocky:linux:8

Required KB Items: Host/local_checks_enabled, Host/RockyLinux/release, Host/RockyLinux/rpm-list, Host/cpu

Exploit Ease: No known exploits are available

Patch Publication Date: 5/18/2022

Vulnerability Publication Date: 8/31/2021

Reference Information

CVE: CVE-2021-3634

RLSA: 2022:2031

IAVA: 2022-A-0041