RHSA-2025:23024MediumCVSS 5.0

Red Hat Security Advisory: libssh security update

Published
December 10, 2025
Last Modified
September 1, 2026

🔗 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 E4S (v.9.0)
  • Red Hat Enterprise Linux BaseOS E4S (v.9.0)
  • libssh-0:0.9.6-3.el9_0.2.aarch64 as a component of Red Hat Enterprise Linux BaseOS E4S (v.9.0)
  • libssh-0:0.9.6-3.el9_0.2.i686 as a component of Red Hat Enterprise Linux BaseOS E4S (v.9.0)
  • libssh-0:0.9.6-3.el9_0.2.ppc64le as a component of Red Hat Enterprise Linux BaseOS E4S (v.9.0)
  • libssh-0:0.9.6-3.el9_0.2.s390x as a component of Red Hat Enterprise Linux BaseOS E4S (v.9.0)
  • libssh-0:0.9.6-3.el9_0.2.src as a component of Red Hat Enterprise Linux BaseOS E4S (v.9.0)
  • libssh-0:0.9.6-3.el9_0.2.x86_64 as a component of Red Hat Enterprise Linux BaseOS E4S (v.9.0)
  • libssh-config-0:0.9.6-3.el9_0.2.noarch as a component of Red Hat Enterprise Linux BaseOS E4S (v.9.0)
  • libssh-debuginfo-0:0.9.6-3.el9_0.2.aarch64 as a component of Red Hat Enterprise Linux AppStream E4S (v.9.0)
  • libssh-debuginfo-0:0.9.6-3.el9_0.2.aarch64 as a component of Red Hat Enterprise Linux BaseOS E4S (v.9.0)
  • libssh-debuginfo-0:0.9.6-3.el9_0.2.i686 as a component of Red Hat Enterprise Linux AppStream E4S (v.9.0)
  • libssh-debuginfo-0:0.9.6-3.el9_0.2.i686 as a component of Red Hat Enterprise Linux BaseOS E4S (v.9.0)
  • libssh-debuginfo-0:0.9.6-3.el9_0.2.ppc64le as a component of Red Hat Enterprise Linux AppStream E4S (v.9.0)
  • libssh-debuginfo-0:0.9.6-3.el9_0.2.ppc64le as a component of Red Hat Enterprise Linux BaseOS E4S (v.9.0)
  • libssh-debuginfo-0:0.9.6-3.el9_0.2.s390x as a component of Red Hat Enterprise Linux AppStream E4S (v.9.0)
  • libssh-debuginfo-0:0.9.6-3.el9_0.2.s390x as a component of Red Hat Enterprise Linux BaseOS E4S (v.9.0)
  • libssh-debuginfo-0:0.9.6-3.el9_0.2.x86_64 as a component of Red Hat Enterprise Linux AppStream E4S (v.9.0)
  • libssh-debuginfo-0:0.9.6-3.el9_0.2.x86_64 as a component of Red Hat Enterprise Linux BaseOS E4S (v.9.0)
  • libssh-debugsource-0:0.9.6-3.el9_0.2.aarch64 as a component of Red Hat Enterprise Linux AppStream E4S (v.9.0)
  • libssh-debugsource-0:0.9.6-3.el9_0.2.aarch64 as a component of Red Hat Enterprise Linux BaseOS E4S (v.9.0)
  • libssh-debugsource-0:0.9.6-3.el9_0.2.i686 as a component of Red Hat Enterprise Linux AppStream E4S (v.9.0)
  • libssh-debugsource-0:0.9.6-3.el9_0.2.i686 as a component of Red Hat Enterprise Linux BaseOS E4S (v.9.0)
  • libssh-debugsource-0:0.9.6-3.el9_0.2.ppc64le as a component of Red Hat Enterprise Linux AppStream E4S (v.9.0)
  • libssh-debugsource-0:0.9.6-3.el9_0.2.ppc64le as a component of Red Hat Enterprise Linux BaseOS E4S (v.9.0)
  • libssh-debugsource-0:0.9.6-3.el9_0.2.s390x as a component of Red Hat Enterprise Linux AppStream E4S (v.9.0)
  • libssh-debugsource-0:0.9.6-3.el9_0.2.s390x as a component of Red Hat Enterprise Linux BaseOS E4S (v.9.0)
  • libssh-debugsource-0:0.9.6-3.el9_0.2.x86_64 as a component of Red Hat Enterprise Linux AppStream E4S (v.9.0)
  • libssh-debugsource-0:0.9.6-3.el9_0.2.x86_64 as a component of Red Hat Enterprise Linux BaseOS E4S (v.9.0)
  • libssh-devel-0:0.9.6-3.el9_0.2.aarch64 as a component of Red Hat Enterprise Linux AppStream E4S (v.9.0)
  • +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.

🔗 References (4)