Bug 2376219 (CVE-2025-5987) - CVE-2025-5987 libssh: Invalid return code for chacha20 poly1305 with OpenSSL backend
Summary: CVE-2025-5987 libssh: Invalid return code for chacha20 poly1305 with OpenSSL ...
Keywords:
Status: NEW
Alias: CVE-2025-5987
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On: 2376229 2376223 2376224 2376225 2376226 2376227 2376228
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-07-03 21:58 UTC by OSIDB Bzimport
Modified: 2026-03-05 11:24 UTC (History)
7 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2025:23483 0 None None None 2025-12-18 07:49:51 UTC
Red Hat Product Errata RHSA-2025:23484 0 None None None 2025-12-17 18:30:57 UTC
Red Hat Product Errata RHSA-2026:0427 0 None None None 2026-01-12 02:03:20 UTC
Red Hat Product Errata RHSA-2026:0428 0 None None None 2026-01-12 02:19:53 UTC
Red Hat Product Errata RHSA-2026:0430 0 None None None 2026-01-12 02:01:16 UTC
Red Hat Product Errata RHSA-2026:0431 0 None None None 2026-01-12 03:42:33 UTC
Red Hat Product Errata RHSA-2026:0702 0 None None None 2026-01-22 19:07:30 UTC
Red Hat Product Errata RHSA-2026:0978 0 None None None 2026-01-27 17:39:16 UTC
Red Hat Product Errata RHSA-2026:0980 0 None None None 2026-02-03 21:01:39 UTC
Red Hat Product Errata RHSA-2026:0985 0 None None None 2026-01-30 13:56:26 UTC
Red Hat Product Errata RHSA-2026:0996 0 None None None 2026-01-30 14:19:36 UTC
Red Hat Product Errata RHSA-2026:1539 0 None None None 2026-02-04 18:41:27 UTC
Red Hat Product Errata RHSA-2026:1541 0 None None None 2026-02-05 16:24:32 UTC
Red Hat Product Errata RHSA-2026:3415 0 None None None 2026-03-05 11:24:30 UTC

Description OSIDB Bzimport 2025-07-03 21:58:14 UTC
If there is an error in initializing ChaCha20 cipher with OpenSSL, an invalid error code is returned. This can happen if there is an heap exhaustion.  This error is not correctly detected and could allow libssh to use partially
initialized cipher context. This is caused by the mismatch of return value meaning from OpenSSL and libssh, where OpenSSL error (rv=0) aliases with SSH_OK (0) and is returned directly from the function chacha20_poly1305_set_key(). This will likely cause error somewhere down the road.

Comment 2 errata-xmlrpc 2025-12-17 18:30:55 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 10

Via RHSA-2025:23484 https://access.redhat.com/errata/RHSA-2025:23484

Comment 3 errata-xmlrpc 2025-12-18 07:49:50 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

Via RHSA-2025:23483 https://access.redhat.com/errata/RHSA-2025:23483

Comment 4 errata-xmlrpc 2026-01-12 02:01:14 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions

Via RHSA-2026:0430 https://access.redhat.com/errata/RHSA-2026:0430

Comment 5 errata-xmlrpc 2026-01-12 02:03:18 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 10.0 Extended Update Support

Via RHSA-2026:0427 https://access.redhat.com/errata/RHSA-2026:0427

Comment 6 errata-xmlrpc 2026-01-12 02:19:52 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.6 Extended Update Support

Via RHSA-2026:0428 https://access.redhat.com/errata/RHSA-2026:0428

Comment 7 errata-xmlrpc 2026-01-12 03:42:32 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.4 Extended Update Support

Via RHSA-2026:0431 https://access.redhat.com/errata/RHSA-2026:0431

Comment 8 errata-xmlrpc 2026-01-22 19:07:28 UTC
This issue has been addressed in the following products:

  Red Hat OpenShift Container Platform 4.17

Via RHSA-2026:0702 https://access.redhat.com/errata/RHSA-2026:0702

Comment 9 errata-xmlrpc 2026-01-27 17:39:14 UTC
This issue has been addressed in the following products:

  Red Hat OpenShift Container Platform 4.20

Via RHSA-2026:0978 https://access.redhat.com/errata/RHSA-2026:0978

Comment 10 errata-xmlrpc 2026-01-30 13:56:25 UTC
This issue has been addressed in the following products:

  Red Hat OpenShift Container Platform 4.16

Via RHSA-2026:0985 https://access.redhat.com/errata/RHSA-2026:0985

Comment 11 errata-xmlrpc 2026-01-30 14:19:34 UTC
This issue has been addressed in the following products:

  Red Hat OpenShift Container Platform 4.14

Via RHSA-2026:0996 https://access.redhat.com/errata/RHSA-2026:0996

Comment 12 errata-xmlrpc 2026-02-03 21:01:37 UTC
This issue has been addressed in the following products:

  Red Hat OpenShift Container Platform 4.18

Via RHSA-2026:0980 https://access.redhat.com/errata/RHSA-2026:0980

Comment 13 errata-xmlrpc 2026-02-04 18:41:25 UTC
This issue has been addressed in the following products:

  Red Hat OpenShift Container Platform 4.19

Via RHSA-2026:1539 https://access.redhat.com/errata/RHSA-2026:1539

Comment 14 errata-xmlrpc 2026-02-05 16:24:31 UTC
This issue has been addressed in the following products:

  Red Hat OpenShift Container Platform 4.15

Via RHSA-2026:1541 https://access.redhat.com/errata/RHSA-2026:1541

Comment 15 errata-xmlrpc 2026-03-05 11:24:29 UTC
This issue has been addressed in the following products:

  Red Hat OpenShift Container Platform 4.13

Via RHSA-2026:3415 https://access.redhat.com/errata/RHSA-2026:3415


Note You need to log in before you can comment on or make changes to this bug.