CVE Vulnerabilities

CVE-2023-6918

Unchecked Return Value

Published: Dec 19, 2023 | Modified: Sep 16, 2024
CVSS 3.x
5.3
MEDIUM
Source:
NVD
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
CVSS 2.x
RedHat/V2
RedHat/V3
3.7 LOW
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L
Ubuntu
MEDIUM

A flaw was found in the libssh implements abstract layer for message digest (MD) operations implemented by different supported crypto backends. The return values from these were not properly checked, which could cause low-memory situations failures, NULL dereferences, crashes, or usage of the uninitialized memory as an input for the KDF. In this case, non-matching keys will result in decryption/integrity failures, terminating the connection.

Weakness

The product does not check the return value from a method or function, which can prevent it from detecting unexpected states and conditions.

Affected Software

Name Vendor Start Version End Version
Libssh Libssh 0.9.0 (including) 0.9.8 (excluding)
Libssh Libssh 0.10.0 (including) 0.10.6 (excluding)
Red Hat Enterprise Linux 8 RedHat libssh-0:0.9.6-14.el8 *
Red Hat Enterprise Linux 8 RedHat libssh-0:0.9.6-14.el8 *
Red Hat Enterprise Linux 9 RedHat libssh-0:0.10.4-13.el9 *
Red Hat Enterprise Linux 9 RedHat libssh-0:0.10.4-13.el9 *
Libssh Ubuntu bionic *
Libssh Ubuntu esm-infra/bionic *
Libssh Ubuntu esm-infra/xenial *
Libssh Ubuntu focal *
Libssh Ubuntu jammy *
Libssh Ubuntu lunar *
Libssh Ubuntu mantic *
Libssh Ubuntu trusty *
Libssh Ubuntu upstream *
Libssh Ubuntu xenial *

Potential Mitigations

References