CVE-2019-17498

NameCVE-2019-17498
DescriptionIn libssh2 v1.9.0 and earlier versions, the SSH_MSG_DISCONNECT logic in packet.c has an integer overflow in a bounds check, enabling an attacker to specify an arbitrary (out-of-bounds) offset for a subsequent memory read. A crafted SSH server may be able to disclose sensitive information or cause a denial of service condition on the client system when a user connects to the server.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
ReferencesDLA-1991-1, DLA-2848-1, DLA-3559-1, ELA-186-1
Debian Bugs943562

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
libssh2 (PTS)jessie, jessie (lts)1.4.3-4.1+deb8u7fixed
stretch (security)1.7.0-1+deb9u2fixed
stretch (lts), stretch1.7.0-1+deb9u3fixed
buster (security), buster, buster (lts)1.8.0-2.1+deb10u1fixed
bullseye1.9.0-2+deb11u1fixed
bookworm1.10.0-3fixed
sid, trixie1.11.1-1fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
libssh2sourcewheezy1.4.2-1.1+deb7u8ELA-186-1
libssh2sourcejessie1.4.3-4.1+deb8u6DLA-1991-1
libssh2sourcestretch1.7.0-1+deb9u2DLA-2848-1
libssh2sourcebuster1.8.0-2.1+deb10u1DLA-3559-1
libssh2source(unstable)1.9.0-1low943562

Notes

https://github.com/libssh2/libssh2/commit/dedcbd106f8e52d5586b0205bc7677e4c9868f9c
https://securitylab.github.com/research/libssh2-integer-overflow-CVE-2019-17498/
Backported SUSE patch for versions <= 1.8.0 (including struct string_buf,
and the functions _libssh2_check_length(), _libssh2_get_u32() and
libssh2_get_string(), forming part of the fix):
https://bugzilla.suse.com/attachment.cgi?id=822416
Only exploitable with a malicious server

Search for package or bug name: Reporting problems