Amazon Linux 2023 Security Advisory: ALAS2023-2026-2056
Advisory Released Date: 2026-08-17
Advisory Updated Date: 2026-08-17
libssh2 through 1.11.1, fixed in commit 5e47761, contains a double-free vulnerability in the sftp_open() function in src/sftp.c that allows a malicious SSH server to corrupt the heap of any authenticated client opening an SFTP session. When a server responds to SSH_FXP_OPEN with SSH_FXP_STATUS containing FX_OK, the response data buffer is freed, and if a subsequent sftp_packet_require() call returns a specific error such as LIBSSH2_ERROR_CHANNEL_PACKET_EXCEEDED, the same pointer is freed a second time, enabling tcache dup conditions on glibc systems that allow overlapping allocations and function pointer overwrites. (CVE-2026-66032)
libssh2 through 1.11.1, fixed in commit a13bb6c, contains a missing bounds check vulnerability that allows a malicious SSH server to trigger an arbitrary-length heap out-of-bounds read and a free of an uninitialized pointer via the publickey subsystem. In libssh2_publickey_list_fetch(), the version 1 response parser reads a server-controlled comment_len value and advances the parse pointer without verifying sufficient bytes remain in the buffer, causing the out-of-bounds read to leak heap pointers from adjacent allocations defeating ASLR, followed by heap allocator state corruption when the error cleanup path frees an uninitialized pointer from a non-zeroed realloc() region. (CVE-2026-66034)
Affected Packages:
libssh2
Issue Correction:
Run dnf update libssh2 --releasever 2023.12.20260817 or dnf update --advisory ALAS2023-2026-2056 --releasever 2023.12.20260817 to update your system.
More information on how to update your system can be found on this page: Amazon Linux 2023 documentation
aarch64:
libssh2-debuginfo-1.10.0-1.amzn2023.0.6.aarch64
libssh2-1.10.0-1.amzn2023.0.6.aarch64
libssh2-debugsource-1.10.0-1.amzn2023.0.6.aarch64
libssh2-devel-1.10.0-1.amzn2023.0.6.aarch64
noarch:
libssh2-docs-1.10.0-1.amzn2023.0.6.noarch
src:
libssh2-1.10.0-1.amzn2023.0.6.src
x86_64:
libssh2-debugsource-1.10.0-1.amzn2023.0.6.x86_64
libssh2-1.10.0-1.amzn2023.0.6.x86_64
libssh2-debuginfo-1.10.0-1.amzn2023.0.6.x86_64
libssh2-devel-1.10.0-1.amzn2023.0.6.x86_64