Bug 2507411 - CVE-2026-66035 libssh2: libssh2: Arbitrary code execution via heap buffer overflow during SSH negotiation [fedora-all]
Summary: CVE-2026-66035 libssh2: libssh2: Arbitrary code execution via heap buffer ove...
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: libssh2
Version: 45
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
Assignee: Paul Howarth
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: {"flaws": ["cc924207-24ff-493a-9b2e-e...
Depends On:
Blocks: CVE-2026-66035
TreeView+ depends on / blocked
 
Reported: 2026-07-27 08:52 UTC by Srikanth Balasubramanian
Modified: 2026-08-17 15:37 UTC (History)
2 users (show)

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


Attachments (Terms of Use)

Description Srikanth Balasubramanian 2026-07-27 08:52:09 UTC
Disclaimer: Community trackers are created by Red Hat Product Security team on a best effort basis. Package maintainers are required to ascertain if the flaw indeed affects their package, before starting the update process.

libssh2 through 1.11.1, fixed in commit 42e33d8, contains a pre-authentication heap buffer overflow vulnerability that allows a malicious SSH server to corrupt heap metadata in any connecting client by sending a packet with a packet_length smaller than the cipher's block size during Encrypt-then-MAC cipher negotiation. In the fullpacket() function in src/transport.c, the ETM path allocates a buffer of packet_length bytes but copies blocksize minus one bytes via memcpy, causing an overflow that on 32-bit glibc writes attacker-controlled bytes into an adjacent chunk's SIZE field, enabling tcache bin confusion, overlapping live objects, and function pointer overwrite during the session handshake before authentication.

Comment 1 Aoife Moloney 2026-08-17 15:37:25 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 45 development cycle.
Changing version to 45.


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