Skip to contentSkip to conversation

package/libssh2: security bump to version 1.9.0

PATCH New Fabrice Fontaine 4 participants 5 messages Aug 17, 2019 – Sep 2, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/libssh2: security bump to version 1.9.0

Fix CVE-2019-13115: In libssh2 before 1.9.0, kex_method_diffie_hellman_group_exchange_sha256_key_exchange in kex.c has an integer overflow that could lead to an out-of-bounds read in the way packets are read from the server. A remote attacker who compromises a 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. This is related to an _libssh2_check_length mistake, and is different from the various issues fixed in 1.8.1, such as CVE-2019-3855.

---
 package/libssh2/libssh2.hash | 2 +-
 package/libssh2/libssh2.mk   | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)
package/libssh2/libssh2.hash +1 -1
index c4732a2c07..58aba4ad71 100644
@@ -1,3 +1,3 @@
 # Locally calculated
-sha256 468e7a81a8121c06cb099eef2e17106b0b8c2e1d890b1c0e34e1951f182babb1  libssh2-1b3cbaff518f32e5b70650d4b7b52361b1410d37.tar.gz
+sha256 db257d41754b16518c3bd0c3b8dd08940ccbee5fc44cef7bfb052d930bcbbda3  libssh2-1.9.0.tar.gz
 sha256 e15ed284a15e80115467d6d7f030f0d89d8fabbecd78fb6e0f861f0cfc128fd9  COPYING
package/libssh2/libssh2.mk +2 -2
index abee1f8c77..824e208033 100644
@@ -4,8 +4,8 @@
 #
 ################################################################################
 
-LIBSSH2_VERSION = 1b3cbaff518f32e5b70650d4b7b52361b1410d37
-LIBSSH2_SITE = $(call github,libssh2,libssh2,$(LIBSSH2_VERSION))
+LIBSSH2_VERSION = 1.9.0
+LIBSSH2_SITE = $(call github,libssh2,libssh2,libssh2-$(LIBSSH2_VERSION))
 LIBSSH2_LICENSE = BSD
 LIBSSH2_LICENSE_FILES = COPYING
 LIBSSH2_INSTALL_STAGING = YES
Signature · 1 line
2.20.1
#1 lore raw

PATCH 1/1 package/libssh2: security bump to version 1.9.0

Quoted 9 lines · On Sat, 17 Aug 2019 21:30:50 +0200 Fabrice Fontaine…

Fix CVE-2019-13115: In libssh2 before 1.9.0, kex_method_diffie_hellman_group_exchange_sha256_key_exchange in kex.c has an integer overflow that could lead to an out-of-bounds read in the way packets are read from the server. A remote attacker who compromises a 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. This is related to an _libssh2_check_length mistake, and is different from the various issues fixed in 1.8.1, such as CVE-2019-3855.

Quoted 5 lines
---
 package/libssh2/libssh2.hash | 2 +-
 package/libssh2/libssh2.mk   | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

Applied to master, thanks.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
#2 lore raw

PATCH 1/1 package/libssh2: security bump to version 1.9.0

In reply to Fabrice Fontaine

Fabrice,

Quoted 32 lines · Fabrice Fontaine

Fix CVE-2019-13115: In libssh2 before 1.9.0, kex_method_diffie_hellman_group_exchange_sha256_key_exchange in kex.c has an integer overflow that could lead to an out-of-bounds read in the way packets are read from the server. A remote attacker who compromises a 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. This is related to an _libssh2_check_length mistake, and is different from the various issues fixed in 1.8.1, such as CVE-2019-3855.

---
 package/libssh2/libssh2.hash | 2 +-
 package/libssh2/libssh2.mk   | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)
package/libssh2/libssh2.hash +0 -1
index c4732a2c07..58aba4ad71 100644
@@ -1,3 +1,3 @@
 # Locally calculated
-sha256 468e7a81a8121c06cb099eef2e17106b0b8c2e1d890b1c0e34e1951f182babb1

libssh2-1b3cbaff518f32e5b70650d4b7b52361b1410d37.tar.gz +sha256 db257d41754b16518c3bd0c3b8dd08940ccbee5fc44cef7bfb052d930bcbbda3 libssh2-1.9.0.tar.gz
sha256 e15ed284a15e80115467d6d7f030f0d89d8fabbecd78fb6e0f861f0cfc128fd9
COPYING

package/libssh2/libssh2.mk +0 -0
index abee1f8c77..824e208033 100644

package/libssh2/libssh2.mk line 9

Quoted 8 lines
package/libssh2/libssh2.mk +2 -2
@@ -4,8 +4,8 @@
 #
 ############################################################
 ####################
 
-LIBSSH2_VERSION = 1b3cbaff518f32e5b70650d4b7b52361b1410d37
-LIBSSH2_SITE = $(call github,libssh2,libssh2,$(LIBSSH2_VERSION))
+LIBSSH2_VERSION = 1.9.0
+LIBSSH2_SITE = $(call github,libssh2,libssh2,libssh2-$(LIBSSH2_VERSION))

The archive that I get with this recipe has a different hash and contents than the 1.9.0 tarball on the libssh2 website:
http://www.libssh2.org/download/libssh2-1.9.0.tar.gz

The one from the libssh2 website has LIBSSH2_VERSION set to ?1.9.0?. The one from git hub says ?1.9.0_DEV?. (Amongst other differences.)

Danomi -

Quoted 11 lines
package/libssh2/libssh2.mk +0 -0
 LIBSSH2_LICENSE = BSD
 LIBSSH2_LICENSE_FILES = COPYING

LIBSSH2_INSTALL_STAGING = YES
--
2.20.1

_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20190819/b6f58367/attachment.html>

#3 lore raw

PATCH 1/1 package/libssh2: security bump to version 1.9.0

Hello,

Le lun. 19 ao?t 2019 ? 15:52, Danomi Manchego
<[email protected]> a ?crit :

Quoted 45 lines

Fabrice,

Quoted 30 lines · Fabrice Fontaine

Fix CVE-2019-13115: In libssh2 before 1.9.0, kex_method_diffie_hellman_group_exchange_sha256_key_exchange in kex.c has an integer overflow that could lead to an out-of-bounds read in the way packets are read from the server. A remote attacker who compromises a 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. This is related to an _libssh2_check_length mistake, and is different from the various issues fixed in 1.8.1, such as CVE-2019-3855.

---
 package/libssh2/libssh2.hash | 2 +-
 package/libssh2/libssh2.mk   | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)
package/libssh2/libssh2.hash +1 -1
index c4732a2c07..58aba4ad71 100644
@@ -1,3 +1,3 @@
 # Locally calculated
-sha256 468e7a81a8121c06cb099eef2e17106b0b8c2e1d890b1c0e34e1951f182babb1  libssh2-1b3cbaff518f32e5b70650d4b7b52361b1410d37.tar.gz
+sha256 db257d41754b16518c3bd0c3b8dd08940ccbee5fc44cef7bfb052d930bcbbda3  libssh2-1.9.0.tar.gz
 sha256 e15ed284a15e80115467d6d7f030f0d89d8fabbecd78fb6e0f861f0cfc128fd9  COPYING
package/libssh2/libssh2.mk +0 -0
index abee1f8c77..824e208033 100644

package/libssh2/libssh2.mk line 8

Quoted 7 lines
package/libssh2/libssh2.mk +2 -2
@@ -4,8 +4,8 @@
 #
 ################################################################################
 
-LIBSSH2_VERSION = 1b3cbaff518f32e5b70650d4b7b52361b1410d37
-LIBSSH2_SITE = $(call github,libssh2,libssh2,$(LIBSSH2_VERSION))
+LIBSSH2_VERSION = 1.9.0
+LIBSSH2_SITE = $(call github,libssh2,libssh2,libssh2-$(LIBSSH2_VERSION))

The archive that I get with this recipe has a different hash and contents than the 1.9.0 tarball on the libssh2 website: http://www.libssh2.org/download/libssh2-1.9.0.tar.gz

Quoted 1 line

The one from the libssh2 website has LIBSSH2_VERSION set to ?1.9.0?. The one from git hub says ?1.9.0_DEV?. (Amongst other differences.)

OK, I'll send a patch to move from github to libssh2.org.

Quoted 15 lines

Danomi -

Quoted 11 lines
package/libssh2/libssh2.mk +0 -1
 LIBSSH2_LICENSE = BSD
 LIBSSH2_LICENSE_FILES = COPYING
 LIBSSH2_INSTALL_STAGING = YES
--

2.20.1

_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot

Best Regards,

Fabrice

#4 lore raw

PATCH 1/1 package/libssh2: security bump to version 1.9.0

In reply to Fabrice Fontaine
Quoted 11 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Fabrice" == Fabrice Fontaine <[email protected]> writes:

Fix CVE-2019-13115: In libssh2 before 1.9.0, kex_method_diffie_hellman_group_exchange_sha256_key_exchange in kex.c has an integer overflow that could lead to an out-of-bounds read in the way packets are read from the server. A remote attacker who compromises a 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. This is related to an _libssh2_check_length mistake, and is different from the various issues fixed in 1.8.1, such as CVE-2019-3855.

Quoted 1 line

Committed to 2019.02.x and 2019.05.x, thanks.

Signature · 1 line
Bye, Peter Korsgaard