Skip to content

CVE-2025-8114 Libssh: null pointer dereference in libssh kex session id calculation

MediumCVSS 4.7 EPSS 0.26%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: partial
Technology
UbuntuDebianRed Hat

Description

A flaw was found in libssh, a library that implements the SSH protocol. When calculating the session ID during the key exchange (KEX) process, an allocation failure in cryptographic functions may lead to a NULL pointer dereference. This issue can cause the client or server to crash.

Upgrade path

14 packages: 9 fixed, 3 partially fixed, 1 with no fix yet.

PackageAffectedFixed inStatus
redhat openshift All versions No fix listed No fix yet
azure linux libssh(Azure Linux 3.0) < 0.10.6-5; All versions 0.10.6-5 Partially fixed
cbl-mariner libssh(CBL-Mariner 2.0) < 0.10.6-5; All versions 0.10.6-5 Partially fixed
redhat enterprise linux < 0:0.10.4-18.el9; All versions 0:0.10.4-18.el9 Partially fixed
alpine/libssh(Alpine v3.23) < 0.11.3-r0 0.11.3-r0 Fixed
alpine/libssh(Alpine v3.24) < 0.11.3-r0 0.11.3-r0 Fixed
debian/libssh(Debian 12) < 0.10.6-0+deb12u2; = 0.10.5-2; = 0.10.5-3; = 0.10.5-3+hurd.1 +1 more 0.10.6-0+deb12u2 Fixed
debian/libssh(Debian 13) < 0.11.2-1+deb13u1; = 0.11.2-1 0.11.2-1+deb13u1 Fixed
debian/libssh(Debian 14) < 0.11.3-1; = 0.11.2-1 0.11.3-1 Fixed
libssh < 0.11.3 0.11.3 Fixed
libssh <= 0.11.2 after 0.11.2 Fixed
ubuntu/libssh(Ubuntu 22.04) < 0.9.6-2ubuntu0.22.04.5 0.9.6-2ubuntu0.22.04.5 Fixed
ubuntu/libssh(Ubuntu 24.04) < 0.10.6-2ubuntu0.2 0.10.6-2ubuntu0.2 Fixed
redhat rhel els = 6; = 7 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
azure linux libssh(Azure Linux:3.0) All versions No fix listed
cbl-mariner libssh(CBL-Mariner:2.0) All versions No fix listed
azure linux libssh(Azure Linux:3.0) < 0.10.6-5 0.10.6-5
cbl-mariner libssh(CBL-Mariner:2.0) < 0.10.6-5 0.10.6-5
debian/libssh(Debian:12) < 0.10.6-0+deb12u2 0.10.6-0+deb12u2
debian/libssh(Debian:12) = 0.10.5-2 No fix listed
debian/libssh(Debian:12) = 0.10.5-3 No fix listed
debian/libssh(Debian:12) = 0.10.5-3+hurd.1 No fix listed
debian/libssh(Debian:12) = 0.10.6-0+deb12u1 No fix listed
debian/libssh(Debian:13) < 0.11.2-1+deb13u1 0.11.2-1+deb13u1
debian/libssh(Debian:13) = 0.11.2-1 No fix listed
debian/libssh(Debian:14) < 0.11.3-1 0.11.3-1
debian/libssh(Debian:14) = 0.11.2-1 No fix listed
libssh < 0.11.3 0.11.3
redhat enterprise linux < 0:0.10.4-18.el9 0:0.10.4-18.el9
redhat enterprise linux All versions No fix listed
redhat rhel els = 6 No fix listed
redhat rhel els = 7 No fix listed
redhat openshift All versions No fix listed
ubuntu/libssh(Ubuntu:22.04) < 0.9.6-2ubuntu0.22.04.5 0.9.6-2ubuntu0.22.04.5
alpine/libssh(Alpine:v3.23) < 0.11.3-r0 0.11.3-r0
alpine/libssh(Alpine:v3.24) < 0.11.3-r0 0.11.3-r0
ubuntu/libssh(Ubuntu:24.04) < 0.10.6-2ubuntu0.2 0.10.6-2ubuntu0.2
libssh <= 0.11.2 No fix listed

References