CVE-2025-5987
CVE-2025-5987 · Libssh: invalid return code for chacha20 poly1305 with openssl backend
This page contains facts from public vulnerability sources. Check the original advisory before updating.
A flaw was found in libssh when using the ChaCha20 cipher with the OpenSSL library. If an attacker manages to exhaust the heap space, this error is not detected and may lead to libssh using a partially initialized cipher context. This occurs because the OpenSSL error code returned aliases with the SSH_OK code, resulting in libssh not properly detecting the error returned by the OpenSSL library. This issue can lead to undefined behavior, including compromised data confidentiality and integrity or crashes.
CVSS 8.1 · High · EPSS 1.7% · Fix available
- Published
- Updated
Stack: system
Affected products and versions
red hat enterprise linux 10
- Versions
- ≥ 0:0.11.1-5.el10_1: Not affected (rpm)
No fix published
red hat enterprise linux 10.0 extended update support
- Versions
- ≥ 0:0.11.1-4.el10_0.1: Not affected (rpm)
No fix published
red hat enterprise linux 9
- Versions
- ≥ 0:0.10.4-17.el9_7: Not affected (rpm)
No fix published
red hat enterprise linux 9.2 update services for sap solutions
- Versions
- ≥ 0:0.10.4-9.el9_2.2: Not affected (rpm)
No fix published
red hat enterprise linux 9.4 extended update support
- Versions
- ≥ 0:0.10.4-13.el9_4.2: Not affected (rpm)
No fix published
red hat enterprise linux 9.6 extended update support
- Versions
- ≥ 0:0.10.4-15.el9_6.1: Not affected (rpm)
No fix published
red hat openshift container platform 4.13
- Versions
- ≥ 413.92.202602240113-0: Not affected (rpm)
No fix published
red hat openshift container platform 4.14
- Versions
- ≥ 414.92.202601191325-0: Not affected (rpm)
No fix published
red hat openshift container platform 4.15
- Versions
- ≥ 415.92.202601271320-0: Not affected (rpm)
No fix published
red hat openshift container platform 4.16
- Versions
- ≥ 416.94.202601160124-0: Not affected (rpm)
No fix published
red hat openshift container platform 4.17
- Versions
- ≥ 417.94.202601120213-0: Not affected (rpm)
No fix published
red hat openshift container platform 4.18
- Versions
- ≥ 418.94.202601202224-0: Not affected (rpm)
No fix published
red hat openshift container platform 4.19
- Versions
- ≥ 4.19.9.6.202601260820-0: Not affected (rpm)
No fix published
red hat openshift container platform 4.20
- Versions
- ≥ 4.20.9.6.202601211057-0: Not affected (rpm)
No fix published
red hat enterprise linux 6
No fix published
red hat enterprise linux 7
No fix published
red hat enterprise linux 8
No fix published
red hat openshift container platform 4
No fix published
libssh Debian:12
- Versions
- 0.10.5-2
- 0.10.5-3
- 0.10.5-3+hurd.1
- 0.10.6-0+deb12u1
- Affected ranges
- ECOSYSTEM: < 0.10.6-0+deb12u2
Update to 0.10.6-0+deb12u2
libssh Debian:13
- Affected ranges
- ECOSYSTEM: < 0.11.2-1
Update to 0.11.2-1
libssh Debian:14
- Affected ranges
- ECOSYSTEM: < 0.11.2-1
Update to 0.11.2-1
libssh Ubuntu:24.04:LTS
- Versions
- 0.10.5-3ubuntu1
- 0.10.5-3ubuntu2
- 0.10.6-2
- 0.10.6-2build1
- 0.10.6-2build2
- Affected ranges
- ECOSYSTEM: < 0.10.6-2ubuntu0.1
Update to 0.10.6-2ubuntu0.1
Original sources
- https://access.redhat.com/errata/RHSA-2025:23483
- https://access.redhat.com/errata/RHSA-2025:23484
- https://access.redhat.com/errata/RHSA-2026:0427
- https://access.redhat.com/errata/RHSA-2026:0428
- https://access.redhat.com/errata/RHSA-2026:0430
- https://access.redhat.com/errata/RHSA-2026:0431
- https://access.redhat.com/errata/RHSA-2026:0702
- https://access.redhat.com/errata/RHSA-2026:0978
- https://access.redhat.com/errata/RHSA-2026:0980
- https://access.redhat.com/errata/RHSA-2026:0985
- https://access.redhat.com/errata/RHSA-2026:0996
- https://access.redhat.com/errata/RHSA-2026:1539
- https://access.redhat.com/errata/RHSA-2026:1541
- https://access.redhat.com/errata/RHSA-2026:3415
- https://access.redhat.com/security/cve/CVE-2025-5987
- https://bugzilla.redhat.com/show_bug.cgi?id=2376219
- https://www.libssh.org/security/advisories/CVE-2025-5987.txt
- https://nvd.nist.gov/vuln/detail/CVE-2025-5987