CVE-2025-8277 Libssh: memory exhaustion via repeated key exchange in libssh
LowCVSS 3.1
EPSS 0.43%
- 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's handling of key exchange (KEX) processes when a client repeatedly sends incorrect KEX guesses. The library fails to free memory during these rekey operations, which can gradually exhaust system memory. This issue can lead to crashes on the client side, particularly when using libgcrypt, which impacts application stability and availability.
Upgrade path
11 packages: 7 fixed, 2 partially fixed, 2 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| redhat openshift | All versions | No fix listed | No fix yet |
| redhat rhel els | = 6; All versions | No fix listed | No fix yet |
| 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 |
| azure linux libssh(Azure Linux 3.0) | < 0.10.6-4 | 0.10.6-4 | 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.6.0, < 0.11.3 | 0.11.3 | Fixed |
| ubuntu/libssh(Ubuntu 22.04) | < 0.9.6-2ubuntu0.22.04.6 | 0.9.6-2ubuntu0.22.04.6 | Fixed |
| ubuntu/libssh(Ubuntu 24.04) | < 0.10.6-2ubuntu0.3 | 0.10.6-2ubuntu0.3 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| cbl-mariner libssh(CBL-Mariner:2.0) | All versions | No fix listed |
| azure linux libssh(Azure Linux:3.0) | < 0.10.6-4 | 0.10.6-4 |
| 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.6.0, < 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 | All versions | No fix listed |
| redhat openshift | All versions | No fix listed |
| ubuntu/libssh(Ubuntu:22.04) | < 0.9.6-2ubuntu0.22.04.6 | 0.9.6-2ubuntu0.22.04.6 |
| ubuntu/libssh(Ubuntu:24.04) | < 0.10.6-2ubuntu0.3 | 0.10.6-2ubuntu0.3 |
References
- MSRC Security Update Guide vendor-advisory
- CBL-Mariner Releases vendor-advisory
- Debian Security Tracker CVE-2025-8277 vendor-advisory
- RHSA-2026:18683 vendor-advisory
- access.redhat.com vdb-entry
- RHBZ#2383888 issue-tracking
- www.libssh.org
- Ubuntu CVE tracker vendor-advisory
- USN-8051-1 vendor-advisory
- USN-8051-2 vendor-advisory
- www.cve.org
- bugs.debian.org issue-tracking
- ENISA EUVD EUVD-2025-27246 third-party-advisory