RHSA-2025:21977MediumCVSS 5.0
Red Hat Security Advisory: libssh security update
🔗 CVE IDs covered (1)
📋 Description
CVE-2025-5372 — libssh: Incorrect Return Code Handling in ssh_kdf() in libssh
🎯 Affected products34
- Red Hat Enterprise Linux AppStream (v. 8)
- Red Hat Enterprise Linux BaseOS (v. 8)
- libssh-0:0.9.6-16.el8_10.aarch64 as a component of Red Hat Enterprise Linux BaseOS (v. 8)
- libssh-0:0.9.6-16.el8_10.i686 as a component of Red Hat Enterprise Linux BaseOS (v. 8)
- libssh-0:0.9.6-16.el8_10.ppc64le as a component of Red Hat Enterprise Linux BaseOS (v. 8)
- libssh-0:0.9.6-16.el8_10.s390x as a component of Red Hat Enterprise Linux BaseOS (v. 8)
- libssh-0:0.9.6-16.el8_10.src as a component of Red Hat Enterprise Linux BaseOS (v. 8)
- libssh-0:0.9.6-16.el8_10.x86_64 as a component of Red Hat Enterprise Linux BaseOS (v. 8)
- libssh-config-0:0.9.6-16.el8_10.noarch as a component of Red Hat Enterprise Linux BaseOS (v. 8)
- libssh-debuginfo-0:0.9.6-16.el8_10.aarch64 as a component of Red Hat Enterprise Linux AppStream (v. 8)
- libssh-debuginfo-0:0.9.6-16.el8_10.aarch64 as a component of Red Hat Enterprise Linux BaseOS (v. 8)
- libssh-debuginfo-0:0.9.6-16.el8_10.i686 as a component of Red Hat Enterprise Linux AppStream (v. 8)
- libssh-debuginfo-0:0.9.6-16.el8_10.i686 as a component of Red Hat Enterprise Linux BaseOS (v. 8)
- libssh-debuginfo-0:0.9.6-16.el8_10.ppc64le as a component of Red Hat Enterprise Linux AppStream (v. 8)
- libssh-debuginfo-0:0.9.6-16.el8_10.ppc64le as a component of Red Hat Enterprise Linux BaseOS (v. 8)
- libssh-debuginfo-0:0.9.6-16.el8_10.s390x as a component of Red Hat Enterprise Linux AppStream (v. 8)
- libssh-debuginfo-0:0.9.6-16.el8_10.s390x as a component of Red Hat Enterprise Linux BaseOS (v. 8)
- libssh-debuginfo-0:0.9.6-16.el8_10.x86_64 as a component of Red Hat Enterprise Linux AppStream (v. 8)
- libssh-debuginfo-0:0.9.6-16.el8_10.x86_64 as a component of Red Hat Enterprise Linux BaseOS (v. 8)
- libssh-debugsource-0:0.9.6-16.el8_10.aarch64 as a component of Red Hat Enterprise Linux AppStream (v. 8)
- libssh-debugsource-0:0.9.6-16.el8_10.aarch64 as a component of Red Hat Enterprise Linux BaseOS (v. 8)
- libssh-debugsource-0:0.9.6-16.el8_10.i686 as a component of Red Hat Enterprise Linux AppStream (v. 8)
- libssh-debugsource-0:0.9.6-16.el8_10.i686 as a component of Red Hat Enterprise Linux BaseOS (v. 8)
- libssh-debugsource-0:0.9.6-16.el8_10.ppc64le as a component of Red Hat Enterprise Linux AppStream (v. 8)
- libssh-debugsource-0:0.9.6-16.el8_10.ppc64le as a component of Red Hat Enterprise Linux BaseOS (v. 8)
- libssh-debugsource-0:0.9.6-16.el8_10.s390x as a component of Red Hat Enterprise Linux AppStream (v. 8)
- libssh-debugsource-0:0.9.6-16.el8_10.s390x as a component of Red Hat Enterprise Linux BaseOS (v. 8)
- libssh-debugsource-0:0.9.6-16.el8_10.x86_64 as a component of Red Hat Enterprise Linux AppStream (v. 8)
- libssh-debugsource-0:0.9.6-16.el8_10.x86_64 as a component of Red Hat Enterprise Linux BaseOS (v. 8)
- libssh-devel-0:0.9.6-16.el8_10.aarch64 as a component of Red Hat Enterprise Linux AppStream (v. 8)
- +4 more not shown
✅ Remediation
For details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258 Workaround: 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.