CVE-2025-5372
Libssh: incorrect return code handling in ssh_kdf() in libssh
Reported by redhat · Published July 4, 2025
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.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| libssh | libssh | 0 |
| Red Hat | Red Hat Enterprise Linux 8 | 0:0.9.6-16.el8_10 |
| Red Hat | Red Hat Enterprise Linux 8 | 0:0.9.6-16.el8_10 |
| Red Hat | Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support | 0:0.9.4-2.el8_4.2 |
| Red Hat | Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-On | 0:0.9.4-2.el8_4.2 |
| Red Hat | Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support | 0:0.9.6-4.el8_6.2 |
| Red Hat | Red Hat Enterprise Linux 8.6 Extended Update Support Long-Life Add-On | 0:0.9.6-4.el8_6.2 |
| Red Hat | Red Hat Enterprise Linux 8.8 Telecommunications Update Service | 0:0.9.6-13.el8_8.2 |
| Red Hat | Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions | 0:0.9.6-13.el8_8.2 |
| Red Hat | Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions | 0:0.9.6-3.el9_0.2 |
| Red Hat | Red Hat Enterprise Linux 10 | |
| Red Hat | Red Hat Enterprise Linux 6 | |
| Red Hat | Red Hat Enterprise Linux 7 | |
| Red Hat | Red Hat Enterprise Linux 9 | |
| Red Hat | Red Hat OpenShift Container Platform 4 | |
| Red Hat | Red Hat OpenShift Container Platform 4 | |
| Red Hat | Red Hat OpenShift Container Platform 4 | |
| Red Hat | Red Hat Enterprise Linux 10 | |
| Red Hat | Red Hat Enterprise Linux 6 | |
| Red Hat | Red Hat Enterprise Linux 8 | 0:0.9.6-16.el8_10 |
…and 13 more
Timeline
- Jun 29, 2025 CVE Published
- Jul 4, 2025 EPSS Score (30 in total, the first dated here)
- Mar 27, 2026 Coalition ESS Score (2 in total, the first dated here)
- May 26, 2026 Distribution Patch (43 in total, the first dated here)
- May 26, 2026 Security Advisory (44 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2025-5372
vulnetix vdb fixes CVE-2025-5372
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-5372/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- RHSA-2025:21977 vendor-advisoryx_refsource_REDHAT
- RHSA-2025:23024 vendor-advisoryx_refsource_REDHAT
- RHSA-2026:20610 vendor-advisoryx_refsource_REDHAT
- RHSA-2026:24349 vendor-advisoryx_refsource_REDHAT
- RHSA-2026:25911 vendor-advisoryx_refsource_REDHAT
- vdb-entryx_refsource_REDHAT
- RHBZ#2369388 issue-trackingx_refsource_REDHAT