CVE-2025-5987

Summary

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.

Affected Software

VendorProductVersion RangeStatus
0.10.0 < 0.11.2affected
Red HatRed Hat Enterprise Linux 100:0.11.1-5.el10_1 < *unaffected
Red HatRed Hat Enterprise Linux 10.0 Extended Update Support0:0.11.1-4.el10_0.1 < *unaffected
Red HatRed Hat Enterprise Linux 90:0.10.4-17.el9_7 < *unaffected
Red HatRed Hat Enterprise Linux 90:0.10.4-17.el9_7 < *unaffected
Red HatRed Hat Enterprise Linux 9.2 Update Services for SAP Solutions0:0.10.4-9.el9_2.2 < *unaffected
Red HatRed Hat Enterprise Linux 9.4 Extended Update Support0:0.10.4-13.el9_4.2 < *unaffected
Red HatRed Hat Enterprise Linux 9.6 Extended Update Support0:0.10.4-15.el9_6.1 < *unaffected
Red HatRed Hat OpenShift Container Platform 4.13413.92.202602240113-0 < *unaffected
Red HatRed Hat OpenShift Container Platform 4.14414.92.202601191325-0 < *unaffected
Red HatRed Hat OpenShift Container Platform 4.15415.92.202601271320-0 < *unaffected
Red HatRed Hat OpenShift Container Platform 4.16416.94.202601160124-0 < *unaffected
Red HatRed Hat OpenShift Container Platform 4.17417.94.202601120213-0 < *unaffected
Red HatRed Hat OpenShift Container Platform 4.18418.94.202601202224-0 < *unaffected
Red HatRed Hat OpenShift Container Platform 4.194.19.9.6.202601260820-0 < *unaffected
Red HatRed Hat OpenShift Container Platform 4.204.20.9.6.202601211057-0 < *unaffected

Weaknesses

  • CWE-393: Return of Wrong Status Code

ADP Enrichment

CISA ADP Vulnrichment

  • SSVC:
  • Exploitation: none
    • Automatable: no
    • Technical Impact: total

References