Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2025-5372

published medium CVSS 3.1 · 5.0

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

Published
04 Jul 2025, 06:01:27 UTC
Updated
26 Nov 2026, 04:43:26 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
libssh — libssh0 to < 0.11.2 · Other versions: unaffected Affected Not stated redhat
Red Hat Enterprise Linux 8 libssh0:0.9.6-16.el8_10 and later · Other versions: affected Unaffected Not stated redhat
Red Hat — libsshRed Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support · 0:0.9.4-2.el8_4.2 and later · Other versions: affected Unaffected Not stated redhat
Red Hat — libsshRed Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-On · 0:0.9.4-2.el8_4.2 and later · Other versions: affected Unaffected Not stated redhat
Amazon Linux AL2023 Release evaluation Not Affected Not required Amazon Linux assessment
AlmaLinux 8 libssh Advisory build 0.9.6-16.el8_10 ALSA-2025:21977
Alpine Linux edge libssh Fixed 0.11.2-r0 Package fix record
Debian bullseye libssh Advisory build 0.9.8-0+deb11u2 DLA-4385-1
Show 107 more entries
Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Red Hat — libsshRed Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support · 0:0.9.6-4.el8_6.2 and later · Other versions: affected Unaffected Not stated redhat
Red Hat — libsshRed Hat Enterprise Linux 8.6 Extended Update Support Long-Life Add-On · 0:0.9.6-4.el8_6.2 and later · Other versions: affected Unaffected Not stated redhat
Red Hat — libsshRed Hat Enterprise Linux 8.8 Telecommunications Update Service · 0:0.9.6-13.el8_8.2 and later · Other versions: affected Unaffected Not stated redhat
Red Hat — libsshRed Hat Enterprise Linux 8.8 Update Services for SAP Solutions · 0:0.9.6-13.el8_8.2 and later · Other versions: affected Unaffected Not stated redhat
Red Hat — libsshRed Hat Enterprise Linux 9.0 Update Services for SAP Solutions · 0:0.9.6-3.el9_0.2 and later · Other versions: affected Unaffected Not stated redhat
Red Hat Enterprise Linux 10 libssh Unaffected Not required redhat
Red Hat Enterprise Linux 6, 7 libssh2 Unknown Not stated redhat
Red Hat Enterprise Linux 9 libssh Affected Not stated redhat
Red Hat — openshift/ose-rhel-coreos-8Red Hat OpenShift Container Platform 4 Affected Not stated redhat
Red Hat — openshift/ose-rhel-coreos-9Red Hat OpenShift Container Platform 4 Unaffected Not required redhat
Oracle Linux 8 libsshaarch64 Advisory build 0:0.9.6-16.el8_10 ELSA-2025-21977
Red Hat Enterprise Linux RHEL-8 libsshaarch64 Advisory build 0.9.6-16.el8_10 RHSA-2025:21977
Ubuntu jammy libssh Advisory build 0.9.6-2ubuntu0.22.04.4 USN-7619-1
SUSE / openSUSE SLE-12-SP5 libssh-configaarch64 Advisory build 0.9.8-3.15.1 SUSE-SU-2025:02281-1
Alpine Linux v3.22 libssh Fixed 0.11.2-r0 Package fix record
Alpine Linux v3.23 libssh Fixed 0.11.2-r0 Package fix record
Alpine Linux v3.24 libssh Fixed 0.11.2-r0 Package fix record
Oracle Linux 8 libsshx86_64 Advisory build 0:0.9.6-16.el8_10 ELSA-2025-21977
Red Hat Enterprise Linux RHEL-8 libsshi686 Advisory build 0.9.4-2.el8_4.2 RHSA-2026:24349
Red Hat Enterprise Linux RHEL-8 libsshi686 Advisory build 0.9.6-13.el8_8.2 RHSA-2026:20610
Red Hat Enterprise Linux RHEL-8 libsshi686 Advisory build 0.9.6-16.el8_10 RHSA-2025:21977
Red Hat Enterprise Linux RHEL-8 libsshi686 Advisory build 0.9.6-4.el8_6.2 RHSA-2026:25911
Red Hat Enterprise Linux RHEL-8 libsshppc64le Advisory build 0.9.6-13.el8_8.2 RHSA-2026:20610
Red Hat Enterprise Linux RHEL-8 libsshppc64le Advisory build 0.9.6-16.el8_10 RHSA-2025:21977
Red Hat Enterprise Linux RHEL-8 libsshs390x Advisory build 0.9.6-16.el8_10 RHSA-2025:21977
Red Hat Enterprise Linux RHEL-8 libsshsrc Advisory build 0.9.4-2.el8_4.2 RHSA-2026:24349
Red Hat Enterprise Linux RHEL-8 libsshsrc Advisory build 0.9.6-13.el8_8.2 RHSA-2026:20610
Red Hat Enterprise Linux RHEL-8 libsshsrc Advisory build 0.9.6-16.el8_10 RHSA-2025:21977
Red Hat Enterprise Linux RHEL-8 libsshsrc Advisory build 0.9.6-4.el8_6.2 RHSA-2026:25911
Red Hat Enterprise Linux RHEL-8 libsshx86_64 Advisory build 0.9.4-2.el8_4.2 RHSA-2026:24349
Red Hat Enterprise Linux RHEL-8 libsshx86_64 Advisory build 0.9.6-13.el8_8.2 RHSA-2026:20610
Red Hat Enterprise Linux RHEL-8 libsshx86_64 Advisory build 0.9.6-16.el8_10 RHSA-2025:21977
Red Hat Enterprise Linux RHEL-8 libsshx86_64 Advisory build 0.9.6-4.el8_6.2 RHSA-2026:25911
Red Hat Enterprise Linux RHEL-9 libsshaarch64 Advisory build 0.9.6-3.el9_0.2 RHSA-2025:23024
Red Hat Enterprise Linux RHEL-9 libsshi686 Advisory build 0.9.6-3.el9_0.2 RHSA-2025:23024
Red Hat Enterprise Linux RHEL-9 libsshppc64le Advisory build 0.9.6-3.el9_0.2 RHSA-2025:23024
Red Hat Enterprise Linux RHEL-9 libsshs390x Advisory build 0.9.6-3.el9_0.2 RHSA-2025:23024
Red Hat Enterprise Linux RHEL-9 libsshsrc Advisory build 0.9.6-3.el9_0.2 RHSA-2025:23024
Red Hat Enterprise Linux RHEL-9 libsshx86_64 Advisory build 0.9.6-3.el9_0.2 RHSA-2025:23024
Ubuntu noble libssh Advisory build 0.10.6-2ubuntu0.1 USN-7619-1
AlmaLinux 8 libssh-config Advisory build 0.9.6-16.el8_10 ALSA-2025:21977
AlmaLinux 8 libssh-devel Advisory build 0.9.6-16.el8_10 ALSA-2025:21977
Oracle Linux 8 libssh-configaarch64 Advisory build 0:0.9.6-16.el8_10 ELSA-2025-21977
Oracle Linux 8 libssh-configx86_64 Advisory build 0:0.9.6-16.el8_10 ELSA-2025-21977
Oracle Linux 8 libssh-develaarch64 Advisory build 0:0.9.6-16.el8_10 ELSA-2025-21977
Oracle Linux 8 libssh-develx86_64 Advisory build 0:0.9.6-16.el8_10 ELSA-2025-21977
Red Hat Enterprise Linux RHEL-8 libssh-confignoarch Advisory build 0.9.4-2.el8_4.2 RHSA-2026:24349
Red Hat Enterprise Linux RHEL-8 libssh-confignoarch Advisory build 0.9.6-13.el8_8.2 RHSA-2026:20610
Red Hat Enterprise Linux RHEL-8 libssh-confignoarch Advisory build 0.9.6-16.el8_10 RHSA-2025:21977
Red Hat Enterprise Linux RHEL-8 libssh-confignoarch Advisory build 0.9.6-4.el8_6.2 RHSA-2026:25911
Red Hat Enterprise Linux RHEL-8 libssh-debuginfoaarch64 Advisory build 0.9.6-16.el8_10 RHSA-2025:21977
Red Hat Enterprise Linux RHEL-8 libssh-debuginfoi686 Advisory build 0.9.4-2.el8_4.2 RHSA-2026:24349
Red Hat Enterprise Linux RHEL-8 libssh-debuginfoi686 Advisory build 0.9.6-13.el8_8.2 RHSA-2026:20610
Red Hat Enterprise Linux RHEL-8 libssh-debuginfoi686 Advisory build 0.9.6-16.el8_10 RHSA-2025:21977
Red Hat Enterprise Linux RHEL-8 libssh-debuginfoi686 Advisory build 0.9.6-4.el8_6.2 RHSA-2026:25911
Red Hat Enterprise Linux RHEL-8 libssh-debuginfoppc64le Advisory build 0.9.6-13.el8_8.2 RHSA-2026:20610
Red Hat Enterprise Linux RHEL-8 libssh-debuginfoppc64le Advisory build 0.9.6-16.el8_10 RHSA-2025:21977
Red Hat Enterprise Linux RHEL-8 libssh-debuginfos390x Advisory build 0.9.6-16.el8_10 RHSA-2025:21977
Red Hat Enterprise Linux RHEL-8 libssh-debuginfox86_64 Advisory build 0.9.4-2.el8_4.2 RHSA-2026:24349
Red Hat Enterprise Linux RHEL-8 libssh-debuginfox86_64 Advisory build 0.9.6-13.el8_8.2 RHSA-2026:20610
Red Hat Enterprise Linux RHEL-8 libssh-debuginfox86_64 Advisory build 0.9.6-16.el8_10 RHSA-2025:21977
Red Hat Enterprise Linux RHEL-8 libssh-debuginfox86_64 Advisory build 0.9.6-4.el8_6.2 RHSA-2026:25911
Red Hat Enterprise Linux RHEL-8 libssh-debugsourceaarch64 Advisory build 0.9.6-16.el8_10 RHSA-2025:21977
Red Hat Enterprise Linux RHEL-8 libssh-debugsourcei686 Advisory build 0.9.4-2.el8_4.2 RHSA-2026:24349
Red Hat Enterprise Linux RHEL-8 libssh-debugsourcei686 Advisory build 0.9.6-13.el8_8.2 RHSA-2026:20610
Red Hat Enterprise Linux RHEL-8 libssh-debugsourcei686 Advisory build 0.9.6-16.el8_10 RHSA-2025:21977
Red Hat Enterprise Linux RHEL-8 libssh-debugsourcei686 Advisory build 0.9.6-4.el8_6.2 RHSA-2026:25911
Red Hat Enterprise Linux RHEL-8 libssh-debugsourceppc64le Advisory build 0.9.6-13.el8_8.2 RHSA-2026:20610
Red Hat Enterprise Linux RHEL-8 libssh-debugsourceppc64le Advisory build 0.9.6-16.el8_10 RHSA-2025:21977
Red Hat Enterprise Linux RHEL-8 libssh-debugsources390x Advisory build 0.9.6-16.el8_10 RHSA-2025:21977
Red Hat Enterprise Linux RHEL-8 libssh-debugsourcex86_64 Advisory build 0.9.4-2.el8_4.2 RHSA-2026:24349
Red Hat Enterprise Linux RHEL-8 libssh-debugsourcex86_64 Advisory build 0.9.6-13.el8_8.2 RHSA-2026:20610
Red Hat Enterprise Linux RHEL-8 libssh-debugsourcex86_64 Advisory build 0.9.6-16.el8_10 RHSA-2025:21977
Red Hat Enterprise Linux RHEL-8 libssh-debugsourcex86_64 Advisory build 0.9.6-4.el8_6.2 RHSA-2026:25911
Red Hat Enterprise Linux RHEL-8 libssh-develaarch64 Advisory build 0.9.6-16.el8_10 RHSA-2025:21977
Red Hat Enterprise Linux RHEL-8 libssh-develi686 Advisory build 0.9.4-2.el8_4.2 RHSA-2026:24349
Red Hat Enterprise Linux RHEL-8 libssh-develi686 Advisory build 0.9.6-13.el8_8.2 RHSA-2026:20610
Red Hat Enterprise Linux RHEL-8 libssh-develi686 Advisory build 0.9.6-16.el8_10 RHSA-2025:21977
Red Hat Enterprise Linux RHEL-8 libssh-develi686 Advisory build 0.9.6-4.el8_6.2 RHSA-2026:25911
Red Hat Enterprise Linux RHEL-8 libssh-develppc64le Advisory build 0.9.6-13.el8_8.2 RHSA-2026:20610
Red Hat Enterprise Linux RHEL-8 libssh-develppc64le Advisory build 0.9.6-16.el8_10 RHSA-2025:21977
Red Hat Enterprise Linux RHEL-8 libssh-devels390x Advisory build 0.9.6-16.el8_10 RHSA-2025:21977
Red Hat Enterprise Linux RHEL-8 libssh-develx86_64 Advisory build 0.9.4-2.el8_4.2 RHSA-2026:24349
Red Hat Enterprise Linux RHEL-8 libssh-develx86_64 Advisory build 0.9.6-13.el8_8.2 RHSA-2026:20610
Red Hat Enterprise Linux RHEL-8 libssh-develx86_64 Advisory build 0.9.6-16.el8_10 RHSA-2025:21977
Red Hat Enterprise Linux RHEL-8 libssh-develx86_64 Advisory build 0.9.6-4.el8_6.2 RHSA-2026:25911
Red Hat Enterprise Linux RHEL-9 libssh-confignoarch Advisory build 0.9.6-3.el9_0.2 RHSA-2025:23024
Red Hat Enterprise Linux RHEL-9 libssh-debuginfoaarch64 Advisory build 0.9.6-3.el9_0.2 RHSA-2025:23024
Red Hat Enterprise Linux RHEL-9 libssh-debuginfoi686 Advisory build 0.9.6-3.el9_0.2 RHSA-2025:23024
Red Hat Enterprise Linux RHEL-9 libssh-debuginfoppc64le Advisory build 0.9.6-3.el9_0.2 RHSA-2025:23024
Red Hat Enterprise Linux RHEL-9 libssh-debuginfos390x Advisory build 0.9.6-3.el9_0.2 RHSA-2025:23024
Red Hat Enterprise Linux RHEL-9 libssh-debuginfox86_64 Advisory build 0.9.6-3.el9_0.2 RHSA-2025:23024
Red Hat Enterprise Linux RHEL-9 libssh-debugsourceaarch64 Advisory build 0.9.6-3.el9_0.2 RHSA-2025:23024
Red Hat Enterprise Linux RHEL-9 libssh-debugsourcei686 Advisory build 0.9.6-3.el9_0.2 RHSA-2025:23024
Red Hat Enterprise Linux RHEL-9 libssh-debugsourceppc64le Advisory build 0.9.6-3.el9_0.2 RHSA-2025:23024
Red Hat Enterprise Linux RHEL-9 libssh-debugsources390x Advisory build 0.9.6-3.el9_0.2 RHSA-2025:23024
Red Hat Enterprise Linux RHEL-9 libssh-debugsourcex86_64 Advisory build 0.9.6-3.el9_0.2 RHSA-2025:23024
Red Hat Enterprise Linux RHEL-9 libssh-develaarch64 Advisory build 0.9.6-3.el9_0.2 RHSA-2025:23024
Red Hat Enterprise Linux RHEL-9 libssh-develi686 Advisory build 0.9.6-3.el9_0.2 RHSA-2025:23024
Red Hat Enterprise Linux RHEL-9 libssh-develppc64le Advisory build 0.9.6-3.el9_0.2 RHSA-2025:23024
Red Hat Enterprise Linux RHEL-9 libssh-devels390x Advisory build 0.9.6-3.el9_0.2 RHSA-2025:23024
Red Hat Enterprise Linux RHEL-9 libssh-develx86_64 Advisory build 0.9.6-3.el9_0.2 RHSA-2025:23024
SUSE / openSUSE SLE-12-SP5 libssh-configppc64le Advisory build 0.9.8-3.15.1 SUSE-SU-2025:02281-1
SUSE / openSUSE SLE-12-SP5 libssh-configs390x Advisory build 0.9.8-3.15.1 SUSE-SU-2025:02281-1
SUSE / openSUSE SLE-12-SP5 libssh-configx86_64 Advisory build 0.9.8-3.15.1 SUSE-SU-2025:02281-1
SUSE / openSUSE SLE-12-SP5 libssh-develaarch64 Advisory build 0.9.8-3.15.1 SUSE-SU-2025:02281-1
SUSE / openSUSE SLE-12-SP5 libssh-develppc64le Advisory build 0.9.8-3.15.1 SUSE-SU-2025:02281-1

Package entries are limited to the first 100 builds and 100 linked advisories.

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.

en · redhat · cna

Vendor advisories explicitly linked to this CVE.

25

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
5.0 / 10
Severity
medium
Provider
redhat · cna
Vector string
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
libssh libssh 0 to < 0.11.2 (affected · semver)Default: unaffected redhat · cna
Red Hat Red Hat Enterprise Linux 8 0:0.9.6-16.el8_10 and later (unaffected · rpm)Default: affected redhat · cna
Red Hat Red Hat Enterprise Linux 8 0:0.9.6-16.el8_10 and later (unaffected · rpm)Default: affected redhat · cna
Red Hat Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support 0:0.9.4-2.el8_4.2 and later (unaffected · rpm)Default: affected redhat · cna
Red Hat Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-On 0:0.9.4-2.el8_4.2 and later (unaffected · rpm)Default: affected redhat · cna
Red Hat Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support 0:0.9.6-4.el8_6.2 and later (unaffected · rpm)Default: affected redhat · cna
Red Hat Red Hat Enterprise Linux 8.6 Extended Update Support Long-Life Add-On 0:0.9.6-4.el8_6.2 and later (unaffected · rpm)Default: affected redhat · cna
Red Hat Red Hat Enterprise Linux 8.8 Telecommunications Update Service 0:0.9.6-13.el8_8.2 and later (unaffected · rpm)Default: affected redhat · cna
Red Hat Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions 0:0.9.6-13.el8_8.2 and later (unaffected · rpm)Default: affected redhat · cna
Red Hat Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions 0:0.9.6-3.el9_0.2 and later (unaffected · rpm)Default: affected redhat · cna
Red Hat Red Hat Enterprise Linux 10 Default: unaffected redhat · cna
Red Hat Red Hat Enterprise Linux 6 Default: unknown redhat · cna
Red Hat Red Hat Enterprise Linux 7 Default: unknown redhat · cna
Red Hat Red Hat Enterprise Linux 9 Default: affected redhat · cna
Red Hat Red Hat OpenShift Container Platform 4 Default: affected redhat · cna
Red Hat Red Hat OpenShift Container Platform 4 Default: unaffected redhat · cna

Weaknesses

1
  • CWE-682 Incorrect Calculation (redhat · cna)

References

7
  • RHSA-2025:21977 https://access.redhat.com/errata/RHSA-2025:21977 vendor-advisory, x_refsource_REDHAT Contributors: redhat (cna)
  • RHSA-2025:23024 https://access.redhat.com/errata/RHSA-2025:23024 vendor-advisory, x_refsource_REDHAT Contributors: redhat (cna)
  • RHSA-2026:20610 https://access.redhat.com/errata/RHSA-2026:20610 vendor-advisory, x_refsource_REDHAT Contributors: redhat (cna)
  • RHSA-2026:24349 https://access.redhat.com/errata/RHSA-2026:24349 vendor-advisory, x_refsource_REDHAT Contributors: redhat (cna)
  • RHSA-2026:25911 https://access.redhat.com/errata/RHSA-2026:25911 vendor-advisory, x_refsource_REDHAT Contributors: redhat (cna)
  • https://access.redhat.com/security/cve/CVE-2025-5372 vdb-entry, x_refsource_REDHAT Contributors: redhat (cna)
  • RHBZ#2369388 https://bugzilla.redhat.com/show_bug.cgi?id=2369388 issue-tracking, x_refsource_REDHAT Contributors: redhat (cna)

Provider assertions

2

redhat · cna

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

CISA-ADP · adp

CISA ADP Vulnrichment

Provenance

Schema
5.2
Searchable
yes
Content hash
168f3186f67bacbb8ad3670cfad108ceaf208915db1ed9d76d5bd9895a22c447
Ingested
26 Nov 2026, 04:51:36 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected