← CVE Intelligence

CVE-2025-5372

Libssh: incorrect return code handling in ssh_kdf() in libssh PUBLISHED

Description (CNA)

A flaw was found in libssh versions built with OpenSSL versions older than 3.0, specifically in the ssh_kdf() function responsible for key derivation. Due to inconsistent interpretation of return values where OpenSSL uses 0 to indicate failure and libssh uses 0 for success—the function may mistakenly return a success status even when key derivation fails. This results in uninitialized cryptographic key buffers being used in subsequent communication, potentially compromising SSH sessions' confidentiality, integrity, and availability.

Affected (CNA)

Vendor / productVersions
libssh / libsshaffected 0 before 0.11.2
Red Hat / Red Hat Enterprise Linux 8unaffected 0:0.9.6-16.el8_10 before *
Red Hat / Red Hat Enterprise Linux 8unaffected 0:0.9.6-16.el8_10 before *
Red Hat / Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Supportunaffected 0:0.9.4-2.el8_4.2 before *
Red Hat / Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-Onunaffected 0:0.9.4-2.el8_4.2 before *
Red Hat / Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Supportunaffected 0:0.9.6-4.el8_6.2 before *
Red Hat / Red Hat Enterprise Linux 8.6 Extended Update Support Long-Life Add-Onunaffected 0:0.9.6-4.el8_6.2 before *
Red Hat / Red Hat Enterprise Linux 8.8 Telecommunications Update Serviceunaffected 0:0.9.6-13.el8_8.2 before *
Red Hat / Red Hat Enterprise Linux 8.8 Update Services for SAP Solutionsunaffected 0:0.9.6-13.el8_8.2 before *
Red Hat / Red Hat Enterprise Linux 9.0 Update Services for SAP Solutionsunaffected 0:0.9.6-3.el9_0.2 before *
Red Hat / Red Hat Enterprise Linux 10unaffected
Red Hat / Red Hat Enterprise Linux 6unknown
Red Hat / Red Hat Enterprise Linux 7unknown
Red Hat / Red Hat Enterprise Linux 9affected
Red Hat / Red Hat OpenShift Container Platform 4affected
Red Hat / Red Hat OpenShift Container Platform 4unaffected

CWE

CWE-682

References

ADP enrichment

CISA-ADP

No English description supplied.

No references supplied.