Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
libssh2 (1.11.1-1deepin4) unstable; urgency=medium

* Fix CVE-2026-58050: fix potential multiplication overflow in 32-bit
libssh2_publickey_list_fetch() when computing attribute allocation
size (upstream commit 34497525929b9a47f03dfb81887ac896202b7e12)

-- deepin-ci-robot <packages@deepin.org> Wed, 01 Jul 2026 13:40:42 +0800

libssh2 (1.11.1-1deepin2) unstable; urgency=medium

* Fix CVE-2026-7598: integer overflow in userauth_password
Expand Down
21 changes: 21 additions & 0 deletions debian/patches/CVE-2026-58050.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
Description: publickey: fix potential multiplication overflow in 32-bit
libssh2_publickey_list_fetch(). Cap list size at 1024 elements to
prevent integer overflow when computing attribute allocation size.
Origin: upstream, https://github.com/libssh2/libssh2/commit/34497525929b9a47f03dfb81887ac896202b7e12
Bug: https://github.com/libssh2/libssh2/pull/2128
Last-Update: 2026-07-01

--- a/src/publickey.c
+++ b/src/publickey.c
@@ -1048,6 +1048,11 @@ int libssh2_publickey_list_fetch(LIBSSH2_PUBLICKEY *pkey,
}

if(list[keys].num_attrs) {
+ if(list[keys].num_attrs > 1024) {
+ ssh2_err(session, LIBSSH2_ERROR_OUT_OF_BOUNDARY,
+ "Too many publickey attributes");
+ goto err_exit;
+ }
list[keys].attrs =
SSH2_ALLOC(session,
list[keys].num_attrs *
1 change: 1 addition & 0 deletions debian/patches/series
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@
#maxpathlen.patch
#openssh-9.8.patch
CVE-2026-7598.patch
CVE-2026-58050.patch
Loading