Bug 2498168 (CVE-2026-59842)

Summary: CVE-2026-59842 libssh: libssh: information disclosure via short GSSAPI Curve25519 public key
Product: [Other] Security Response Reporter: OSIDB Bzimport <bzimport>
Component: vulnerabilityAssignee: Product Security <prodsec-ir-bot>
Status: NEW --- QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: rhel-process-autobot, security-response-team, watson-tool-maintainers
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
A flaw was found in libssh. During server-side GSSAPI key exchange, a client-supplied Curve25519 public key shorter than the expected length is copied without proper length validation, leading to an out-of-bounds heap read. This could allow a remote unauthenticated attacker to disclose small amounts of server memory.
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2503656    
Bug Blocks:    

Description OSIDB Bzimport 2026-07-08 17:57:33 UTC
A flaw was found in libssh in the server-side GSSAPI Curve25519 key exchange path in src/kex-gss.c. In ssh_server_gss_kex_process_init(), a client-controlled SSH string is unpacked into client_pubkey and then copied with memcpy(..., CURVE25519_PUBKEY_SIZE) without validating ssh_string_len(client_pubkey). A remote unauthenticated client can send a short public key in SSH_MSG_KEXGSS_INIT and trigger an out-of-bounds heap read during handshake processing, disclosing small amounts of adjacent server memory.

Comment 3 errata-xmlrpc 2026-08-17 20:53:22 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 10

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