5.0
Medium
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.
CVSS 3.1 detail
Vector CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:LExploitable remotely over the network, with an ordinary account and without any user action; the impact on data or service is limited.
- Attack vector
- Network
- Attack complexity
- High
- Privileges required
- Low
- Interaction
- None
- Scope
- Unchanged
- Confidentiality
- Low
- Integrity
- Low
- Availability
- Low
Affected products and versions
| Product | Affected versions | Fixed in |
|---|---|---|
| libssh 0.11 | earliest → < 0.11.2 | 0.11.2 |
| Red Hat Enterprise Linux 8 | Versions not published | |
| Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions | Versions not published | |
| Red Hat Enterprise Linux 10 | Versions not published | |
| Red Hat Enterprise Linux 6 | Versions not published | |
| Red Hat Enterprise Linux 7 | Versions not published | |
| Red Hat Enterprise Linux 9 | Versions not published | |
| Red Hat OpenShift Container Platform 4 | Versions not published | |
| Red Hat Enterprise Linux 8.8 Telecommunications Update Service | Versions not published |
Show the 5 other branches Hide the 5 other branches
| Product | Affected versions | Fixed in |
|---|---|---|
| Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions | Versions not published | |
| Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support | Versions not published | |
| Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-On | Versions not published | |
| Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support | Versions not published | |
| Red Hat Enterprise Linux 8.6 Extended Update Support Long-Life Add-On | Versions not published |
References
- RHSA-2025:21977 access.redhat.com
- RHSA-2025:23024 access.redhat.com
- RHSA-2026:20610 access.redhat.com
- RHSA-2026:24349 access.redhat.com
- RHSA-2026:25911 access.redhat.com
- access.redhat.com access.redhat.com
- RHBZ#2369388 bugzilla.redhat.com
Timeline
- Published
- Last modified