ALAS2023-2026-1966


Amazon Linux 2023 Security Advisory: ALAS2023-2026-1966
Advisory Released Date: 2026-07-20
Advisory Updated Date: 2026-07-20
Severity: Important

Issue Overview:

libssh2 through 1.11.1 reads an attacker-controlled 32-bit attribute count from a publickey-subsystem response and uses it in the allocation num_attrs * sizeof(libssh2_publickey_attribute) without bounds checking, so on 32-bit platforms the multiplication overflows to an undersized buffer. A malicious SSH server can then drive the attribute-parsing loop to write past the allocation, causing a heap buffer overflow in a connecting libssh2 client. (CVE-2026-58050)

libssh2 through 1.11.1 grows its publickey list with SSH2_REALLOC but does not zero-initialize new entries before parsing populates them, so a parse failure reaching the cleanup path leaves libssh2_publickey_list_free operating on an uninitialized entry. A malicious SSH server offering the publickey subsystem can use a malformed response to make cleanup free an uninitialized, attacker-influenceable attrs pointer in a connecting libssh2 client. (CVE-2026-58051)


Affected Packages:

libssh2


Issue Correction:
Run dnf update libssh2 --releasever 2023.12.20260720 or dnf update --advisory ALAS2023-2026-1966 --releasever 2023.12.20260720 to update your system.
More information on how to update your system can be found on this page: Amazon Linux 2023 documentation

New Packages:
aarch64:
    libssh2-debuginfo-1.10.0-1.amzn2023.0.5.aarch64
    libssh2-debugsource-1.10.0-1.amzn2023.0.5.aarch64
    libssh2-devel-1.10.0-1.amzn2023.0.5.aarch64
    libssh2-1.10.0-1.amzn2023.0.5.aarch64

noarch:
    libssh2-docs-1.10.0-1.amzn2023.0.5.noarch

src:
    libssh2-1.10.0-1.amzn2023.0.5.src

x86_64:
    libssh2-debugsource-1.10.0-1.amzn2023.0.5.x86_64
    libssh2-debuginfo-1.10.0-1.amzn2023.0.5.x86_64
    libssh2-1.10.0-1.amzn2023.0.5.x86_64
    libssh2-devel-1.10.0-1.amzn2023.0.5.x86_64