Skip to content
OpenAdvisories

Description

A flaw was found in the key export functionality of libssh. The issue occurs in the internal function responsible for converting cryptographic keys into serialized formats. During error handling, a memory structure is freed but not cleared, leading to a potential double free issue if an additional failure occurs later in the function. This condition may result in heap corruption or application instability in low-memory scenarios, posing a risk to system reliability where key export operations are performed.

Affected products

VendorProductAffectedFixed
libssh libssh 0.10.0 – < 0.11.2 0.11.2
Red Hat Red Hat Enterprise Linux 9 — —
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 8 — —
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 —
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
ReleasePackageFixed inAdvisory
RHEL 9 libssh +2 0.10.4-18.el9 RHSA-2026:18683

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 9 libssh +2 0.10.4-18.el9 ALSA-2026:18683

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 9 libssh 0.10.4-18.el9 RLSA-2026:18683
ReleasePackageFixed inAdvisory
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
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed libssh 0.11.2-1.1 openSUSE-SU-2025:15243-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 —

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2023 libssh +2 0.10.6-1.amzn2023.0.2 ALAS2023-2025-1155

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 9 libssh +2 0.10.4-18.el9 ELSA-2026-18683

Advisories 10

References