Skip to content
OpenAdvisories

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.

Affected products

VendorProductAffectedFixed
libssh libssh < 0.11.2 0.11.2
Red Hat Red Hat Enterprise Linux 8 — —
Red Hat Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support — —
Red Hat Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-On — —
Red Hat Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support — —
Red Hat Red Hat Enterprise Linux 8.6 Extended Update Support Long-Life Add-On — —
Red Hat Red Hat Enterprise Linux 8.8 Telecommunications Update Service — —
Red Hat Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions — —
Red Hat Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions — —
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 — —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 libssh 0.11.2-1 —
Debian 13 libssh 0.11.2-1 —
Debian 12 libssh 0.10.6-0+deb12u2 —
Debian 11 libssh 0.9.8-0+deb11u2 DLA-4385-1
ReleasePackageFixed inAdvisory
Ubuntu 24.04 LTS libssh 0.10.6-2ubuntu0.1 USN-7619-1
Ubuntu 22.04 LTS libssh 0.9.6-2ubuntu0.22.04.4 USN-7619-1
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 20.04 LTS libssh No fix yet —
Ubuntu Pro 18.04 LTS libssh No fix yet —
Ubuntu Pro 16.04 LTS libssh No fix yet —
ReleasePackageFixed inAdvisory
RHEL 8 libssh +2 0.9.6-16.el8_10 RHSA-2025:21977
Show 7 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
RHEL 9.0 E4S libssh +2 0.9.6-3.el9_0.2 RHSA-2025:23024
RHEL 8.8 TUS libssh +2 0.9.6-13.el8_8.2 RHSA-2026:20610
RHEL 8.8 E4S libssh +2 0.9.6-13.el8_8.2 RHSA-2026:20610
RHEL 8.6 EUS Long Life libssh +2 0.9.6-4.el8_6.2 RHSA-2026:25911
RHEL 8.6 AUS libssh +2 0.9.6-4.el8_6.2 RHSA-2026:25911
RHEL 8.4 EUS Long Life libssh +2 0.9.4-2.el8_4.2 RHSA-2026:24349
RHEL 8.4 AUS libssh +2 0.9.4-2.el8_4.2 RHSA-2026:24349

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 8 libssh +2 0.9.6-16.el8_10 ALSA-2025:21977

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 8 libssh 0.9.6-16.el8_10 RLSA-2025:21977
ReleasePackageFixed inAdvisory
SLES 15 SP7 libssh 0.9.8-150600.11.3.1 SUSE-SU-2025:02229-1
SLES 15 SP6 libssh 0.9.8-150600.11.3.1 SUSE-SU-2025:02229-1
SLES 15 SP5 libssh 0.9.8-150400.3.9.1 SUSE-SU-2025:02278-1
SLES 15 SP4 libssh 0.9.8-150400.3.9.1 SUSE-SU-2025:02278-1
SLES 15 SP3 libssh 0.9.8-150200.13.9.1 SUSE-SU-2025:02279-1
Show 17 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES 12 SP5 libssh 0.9.8-3.15.1 SUSE-SU-2025:02281-1
SLES for SAP 15 SP5 libssh 0.9.8-150400.3.9.1 SUSE-SU-2025:02278-1
SLES for SAP 15 SP4 libssh 0.9.8-150400.3.9.1 SUSE-SU-2025:02278-1
SLES for SAP 15 SP3 libssh 0.9.8-150200.13.9.1 SUSE-SU-2025:02279-1
SLE Micro 6.1 libssh 0.10.6-slfo.1.1_2.1 SUSE-SU-2025:20596-1
SLE Micro 6.0 libssh 0.10.6-2.1 SUSE-SU-2025:20557-1
SLE Micro 5.5 libssh 0.9.8-150400.3.9.1 SUSE-SU-2025:02278-1
SLE Micro 5.4 libssh 0.9.8-150400.3.9.1 SUSE-SU-2025:02278-1
SLE Micro 5.3 libssh 0.9.8-150400.3.9.1 SUSE-SU-2025:02278-1
SLE Micro 5.2 libssh 0.9.8-150200.13.9.1 SUSE-SU-2025:02279-1
SLE Micro 5.1 libssh 0.9.8-150200.13.9.1 SUSE-SU-2025:02279-1
SLE HPC 15 SP5 libssh 0.9.8-150400.3.9.1 SUSE-SU-2025:02278-1
SLE HPC 15 SP4 libssh 0.9.8-150400.3.9.1 SUSE-SU-2025:02278-1
SLE HPC 15 SP3 libssh 0.9.8-150200.13.9.1 SUSE-SU-2025:02279-1
SUSE Manager Server 4.3 libssh 0.9.8-150400.3.9.1 SUSE-SU-2025:02278-1
SUSE Manager Proxy 4.3 libssh 0.9.8-150400.3.9.1 SUSE-SU-2025:02278-1
SUSE Enterprise Storage 7.1 libssh 0.9.8-150200.13.9.1 SUSE-SU-2025:02279-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed libssh 0.11.2-1.1 openSUSE-SU-2025:15243-1
openSUSE Leap 15.6 libssh 0.9.8-150600.11.3.1 SUSE-SU-2025:02229-1
ReleasePackageFixed inAdvisory
Alpine v3.24 libssh 0.11.2-r0 —
Alpine v3.23 libssh 0.11.2-r0 —
Alpine v3.22 libssh 0.11.2-r0 —

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 libssh 0.10.6-2 —
Azure Linux 2 (CBL-Mariner) libssh 0.10.6-2 —

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 8 libssh +2 0.9.6-16.el8_10 ELSA-2025-21977

Advisories 22

References