Skip to content
Threat Brief

← All advisories

CVE-2025-5372

High 8.8No known exploitationFix available

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

Record last updated

CVSS score

8.8

High on a 0 to 10 scale

EPSS, chance of exploitation in 30 days

0.5%

Higher than 44% of scored CVEs. A prediction, not evidence.

CISA remediation deadline

None

Not in the KEV catalog

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.

Weakness: CWE-682

Patching and mitigation

Patch status
Fix available (source: CVE record (redhat))
Fix documented (source date)
Mitigation
To mitigate this issue, administrators should ensure that libssh is built against OpenSSL version 3.0 or later. This change eliminates the return code mismatch and prevents the erroneous use of uninitialized key material. It is also strongly recommended to apply vendor supplied patches or update to the latest libssh security release as soon as possible. Source (opens in a new tab)
Vendor guidance
access.redhat.com (opens in a new tab)

Affected products

VendorProductAffected versionsFixed inPer
Red HatRed Hat Enterprise Linux 9Not documentedNot documentedCVE Program
Red HatRed Hat OpenShift Container Platform 4Not documentedNot documentedCVE Program
libsshlibsshall versions before 0.11.20.11.2CVE Program
libsshlibsshall versions before 0.11.20.11.2NIST NVD
redhatenterprise_linux10.0Not documentedNIST NVD
redhatenterprise_linux6.0Not documentedNIST NVD
redhatenterprise_linux7.0Not documentedNIST NVD
redhatenterprise_linux8.0Not documentedNIST NVD
redhatenterprise_linux9.0Not documentedNIST NVD
redhatopenshift_container_platform4.0Not documentedNIST NVD
Red HatRed Hat Enterprise Linux 10 (status unknown)Not documentedNot documentedCVE Program
Red HatRed Hat Enterprise Linux 6 (status unknown)Not documentedNot documentedCVE Program
Red HatRed Hat Enterprise Linux 7 (status unknown)Not documentedNot documentedCVE Program
Red HatRed Hat Enterprise Linux 8 (unaffected)0:0.9.6-16.el8_10Not documentedCVE Program
Red HatRed Hat Enterprise Linux 8 (unaffected)0:0.9.6-16.el8_10Not documentedCVE Program
Red HatRed Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support (unaffected)0:0.9.4-2.el8_4.2Not documentedCVE Program
Red HatRed Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-On (unaffected)0:0.9.4-2.el8_4.2Not documentedCVE Program
Red HatRed Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support (unaffected)0:0.9.6-4.el8_6.2Not documentedCVE Program
Red HatRed Hat Enterprise Linux 8.6 Extended Update Support Long-Life Add-On (unaffected)0:0.9.6-4.el8_6.2Not documentedCVE Program
Red HatRed Hat Enterprise Linux 8.8 Telecommunications Update Service (unaffected)0:0.9.6-13.el8_8.2Not documentedCVE Program
Red HatRed Hat Enterprise Linux 8.8 Update Services for SAP Solutions (unaffected)0:0.9.6-13.el8_8.2Not documentedCVE Program
Red HatRed Hat Enterprise Linux 9.0 Update Services for SAP Solutions (unaffected)0:0.9.6-3.el9_0.2Not documentedCVE Program
Red HatRed Hat OpenShift Container Platform 4 (status unknown)Not documentedNot documentedCVE Program

Timeline

  1. Disclosure

    CVE record published by redhat

    Source: CVE Program (opens in a new tab)

  2. Patch

    Fix documented by CVE record (redhat)

    Source: CVE record (redhat) (opens in a new tab)

Vendor guidance and references

CVE-2025-5372: Libssh: incorrect return code handling in ssh_kdf() in libssh · Threat Brief