CVE-2025-8114 Libssh: null pointer dereference in libssh kex session id calculation
An allocation failure during SSH key exchange causes a null pointer dereference, crashing the client or server.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2025-8114?
CVE-2025-8114 is a medium-severity vulnerability in Red Hat Enterprise Linux 10, published on 24 Jul 2025. It can only be exploited from the same machine or local network, with no action from the victim.
Official 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.
Weakness: CWE-476
Which versions are affected by CVE-2025-8114?
It affects 1 product.
Linux distribution packages (1)
libssh SUSE:Linux Enterprise Server LTSS Extended Security 12 SP5 | All versions | 0.6.3-12.21.1 |
Products include Libssh Libssh.
How do I fix CVE-2025-8114?
Apply the vendor's patch.
Is CVE-2025-8114 being exploited?
There is no known exploitation of CVE-2025-8114 in the wild and no public exploit code.
Other vulnerabilities in Red Hat Enterprise Linux 10
- CVE-2026-59851 Libssh: libssh: authentication bypass via missing gssapi principal check
- CVE-2025-5987 Libssh: invalid return code for chacha20 poly1305 with openssl backend
- CVE-2025-14821 Libssh: libssh: insecure default configuration leads to local man-in-the-middle attacks on windows
- CVE-2012-4560 Memory corruption in n/a
- CVE-2012-4562 Integer overflow in n/a
Sources
Also known as AZL-66255, AZL-66267, BELL-CVE-2025-8114, DEBIAN-CVE-2025-8114, GHSA-fpr2-pgq7-qwg4, JLSEC-2025-99 and 5 more.