Skip to content
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:H

Exploitable 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
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

Timeline

  1. Published
  2. Last modified
The 1454 CVEs of Red Hat Enterprise Linux 10 →
Track this CVE