Debian DSA-4965-1 : libssh - security update

medium Nessus Plugin ID 152967

Synopsis

The remote Debian host is missing a security-related update.

Description

The remote Debian 11 host has packages installed that are affected by a vulnerability as referenced in the dsa-4965 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

Upgrade the libssh packages.

For the stable distribution (bullseye), this problem has been fixed in version 0.9.5-1+deb11u1.

See Also

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=993046

https://security-tracker.debian.org/tracker/source-package/libssh

https://www.debian.org/security/2021/dsa-4965

https://security-tracker.debian.org/tracker/CVE-2021-3634

https://packages.debian.org/source/bullseye/libssh

Plugin Details

Severity: Medium

ID: 152967

File Name: debian_DSA-4965.nasl

Version: 1.5

Type: local

Agent: unix

Published: 9/2/2021

Updated: 10/6/2023

Supported Sensors: Frictionless Assessment Agent, Nessus Agent, Agentless Assessment, Continuous Assessment, Nessus

Risk Information

VPR

Risk Factor: Low

Score: 3.6

CVSS v2

Risk Factor: Medium

Base Score: 4

Temporal Score: 3

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

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: CVSS:3.0/E:U/RL:O/RC:C

Vulnerability Information

CPE: cpe:/o:debian:debian_linux:11.0, p-cpe:/a:debian:debian_linux:libssh-gcrypt-4, p-cpe:/a:debian:debian_linux:libssh-doc, p-cpe:/a:debian:debian_linux:libssh-gcrypt-dev, p-cpe:/a:debian:debian_linux:libssh-dev, p-cpe:/a:debian:debian_linux:libssh-4

Required KB Items: Host/local_checks_enabled, Host/Debian/release, Host/Debian/dpkg-l

Exploit Ease: No known exploits are available

Patch Publication Date: 8/31/2021

Vulnerability Publication Date: 8/31/2021

Reference Information

CVE: CVE-2021-3634

IAVA: 2022-A-0041-S