{"id":"CVE-2025-5372","summary":"Libssh: incorrect return code handling in ssh_kdf() in libssh","details":"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.","modified":"2026-05-28T04:10:56.357407159Z","published":"2025-07-04T06:01:27.954Z","related":["ALSA-2025:21977","SUSE-SU-2025:02229-1","SUSE-SU-2025:02278-1","SUSE-SU-2025:02279-1","SUSE-SU-2025:02281-1","SUSE-SU-2025:20557-1","SUSE-SU-2025:20596-1","openSUSE-SU-2025:15243-1"],"database_specific":{"cna_assigner":"redhat","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/5xxx/CVE-2025-5372.json","cwe_ids":["CWE-682"]},"references":[{"type":"WEB","url":"https://access.redhat.com/downloads/content/package-browser/"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2025:21977"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2025:23024"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2026:20610"},{"type":"ADVISORY","url":"https://access.redhat.com/security/cve/CVE-2025-5372"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/5xxx/CVE-2025-5372.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-5372"},{"type":"REPORT","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2369388"},{"type":"PACKAGE","url":"https://git.libssh.org/projects/libssh.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.libssh.org/projects/libssh.git","events":[{"introduced":"0"},{"fixed":"dff6c0821ed54f6fbf5b755af43f54cbb723b1b1"}],"database_specific":{"source":"AFFECTED_FIELD","extracted_events":[{"introduced":"0"},{"fixed":"0.11.2"}]}}],"versions":["libssh-0.11.1","libssh-0.11.0","libssh-0.8.0","release-0-3-0"],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-5372.json"}},{"ranges":[{"type":"GIT","repo":"https://gitlab.com/libssh/libssh-mirror","events":[{"introduced":"0"},{"fixed":"dff6c0821ed54f6fbf5b755af43f54cbb723b1b1"}],"database_specific":{"cpe":"cpe:2.3:a:libssh:libssh:*:*:*:*:*:*:*:*","source":"CPE_RANGE","extracted_events":[{"introduced":"0"},{"fixed":"0.11.2"}]}}],"versions":["libssh-0.11.1","libssh-0.11.0","libssh-0.8.0","release-0-3-0"],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-5372.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L"}]}