PT-2026-64382 · Libssh2+2 · Libssh2+2
CVSS v4.0
7.7
High
| Vector | AV:N/AC:H/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N |
Name of the Vulnerable Software and Affected Versions
libssh2 versions prior to 1.11.1
Description
A pre-authentication heap buffer overflow occurs during Encrypt-then-MAC (ETM) cipher negotiation. A malicious SSH server can corrupt heap metadata in a connecting client by sending a packet where the
packet length is smaller than the cipher's block size. In the fullpacket() function within src/transport.c, the ETM path allocates a buffer based on packet length but copies blocksize minus one bytes using memcpy. On 32-bit glibc, this allows an attacker to write controlled bytes into the SIZE field of an adjacent chunk, potentially leading to tcache bin confusion, overlapping live objects, and function pointer overwrites during the session handshake.Recommendations
Update libssh2 to the version containing commit 42e33d8.
Exploit
Fix
Heap Based Buffer Overflow
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Linuxmint
Ubuntu
Libssh2