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

Medium 4.7 Published Updated

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 SP5All versions0.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.

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.

Is CVE-2025-8114 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free