8.1
High
CVE-2025-5987 Libssh: invalid return code for chacha20 poly1305 with openssl backend
Description
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 3.1 detail
Vector CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:HExploitable remotely over the network, without an account and without any user action; an attacker can seriously compromise confidentiality, integrity or availability.
- Attack vector
- Network
- Attack complexity
- High
- Privileges required
- None
- Interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Affected products and versions
| Product | Affected versions | Fixed in |
|---|---|---|
| Red Hat Enterprise Linux 10 | Versions not published | |
| Red Hat Enterprise Linux 9 | Versions not published | |
| Red Hat Enterprise Linux 6 | Versions not published | |
| Red Hat Enterprise Linux 7 | Versions not published | |
| Red Hat Enterprise Linux 8 | Versions not published | |
| Red Hat OpenShift Container Platform 4 | Versions not published | |
| Red Hat Enterprise Linux 10.0 Extended Update Support | Versions not published | |
| Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions | Versions not published | |
| Red Hat Enterprise Linux 9.4 Extended Update Support | Versions not published |
Show the 10 other branches Hide the 10 other branches
| Product | Affected versions | Fixed in |
|---|---|---|
| Red Hat Enterprise Linux 9.6 Extended Update Support | Versions not published | |
| Red Hat OpenShift Container Platform 4.17 417.94 | earliest → < 417.94.202601120213-0 | 417.94.202601120213-0 |
| Red Hat OpenShift Container Platform 4.20 4.20 | earliest → < 4.20.9.6.202601211057-0 | 4.20.9.6.202601211057-0 |
| Red Hat OpenShift Container Platform 4.16 416.94 | earliest → < 416.94.202601160124-0 | 416.94.202601160124-0 |
| Red Hat OpenShift Container Platform 4.14 414.92 | earliest → < 414.92.202601191325-0 | 414.92.202601191325-0 |
| Red Hat OpenShift Container Platform 4.18 418.94 | earliest → < 418.94.202601202224-0 | 418.94.202601202224-0 |
| Red Hat OpenShift Container Platform 4.19 4.19 | earliest → < 4.19.9.6.202601260820-0 | 4.19.9.6.202601260820-0 |
| Red Hat OpenShift Container Platform 4.15 415.92 | earliest → < 415.92.202601271320-0 | 415.92.202601271320-0 |
| Red Hat OpenShift Container Platform 4.13 413.92 | earliest → < 413.92.202602240113-0 | 413.92.202602240113-0 |
| Red Hat In-Vehicle Operating System 1 | Versions not published |
References
- RHSA-2025:23483 access.redhat.com
- RHSA-2025:23484 access.redhat.com
- RHSA-2026:0427 access.redhat.com
- RHSA-2026:0428 access.redhat.com
- RHSA-2026:0430 access.redhat.com
- RHSA-2026:0431 access.redhat.com
- RHSA-2026:0702 access.redhat.com
- RHSA-2026:0978 access.redhat.com
- RHSA-2026:0980 access.redhat.com
- RHSA-2026:0985 access.redhat.com
- RHSA-2026:0996 access.redhat.com
- RHSA-2026:1539 access.redhat.com
- RHSA-2026:1541 access.redhat.com
- RHSA-2026:3415 access.redhat.com
- access.redhat.com access.redhat.com
- RHBZ#2376219 bugzilla.redhat.com
- www.libssh.org www.libssh.org
Timeline
- Published
- Last modified
Other CVEs of Red Hat Enterprise Linux 10
The 1454 CVEs of Red Hat Enterprise Linux 10 →
CVE-2026-123151
Gdb: gdb: stack buffer overflow in parse_tsv_definition via stale rs->buf tail
Not rated
CVE-2026-121997
Gdb: gdbserver: heap buffer overflow in cmd_qtdpsrc via qtdpsrc declared/actual length mismatch
8.1
High
CVE-2026-121996
Gdb: gdbserver: heap disclosure and wild pointer in gdb_parse_agent_expr via untrusted agent-expression length
8.2
High
CVE-2026-121995
Gdb: gdb: stack buffer overflow in parse_tracepoint_definition via stale rs->buf tail
7.5
High