We use these services and cookies to improve your user experience. You may opt out if you wish, however, this may limit some features on this site.

Please see our statement on Data Privacy.

Crisp.chat (Helpdesk and Chat)

Ok

THREATINT
PUBLISHED

CVE-2025-5372

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



Description

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.

Reserved 2025-05-30 | Published 2025-07-04 | Updated 2025-07-04 | Assigner redhat


MEDIUM: 5.0CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L

Problem types

Incorrect Calculation

Product status

Default status
affected

Default status
unknown

Default status
unknown

Default status
affected

Default status
affected

Default status
affected

Timeline

2025-05-30:Reported to Red Hat.
2025-06-24:Made public.

References

access.redhat.com/security/cve/CVE-2025-5372 vdb-entry

bugzilla.redhat.com/show_bug.cgi?id=2369388 (RHBZ#2369388) issue-tracking

cve.org (CVE-2025-5372)

nvd.nist.gov (CVE-2025-5372)

Download JSON

Share this page
https://cve.threatint.eu/CVE/CVE-2025-5372

Support options

Helpdesk Chat, Email, Knowledgebase