Skip to contentSkip to conversation

libcurl: bump version to 7.51.0 (security)

Buildroot New Thomas Petazzoni 2 participants 4 messages Nov 2, 2016 – Nov 3, 2016

lore
Share & tools
lore
#0 lore raw

commit: https://git.buildroot.net/buildroot/commit/?id=afdb102bd5a9bc35dde2fe0309da88f0d89210d3
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master

List of fixed CVEs:

CVE-2016-8615: cookie injection for other servers
CVE-2016-8616: case insensitive password comparison
CVE-2016-8617: OOB write via unchecked multiplication
CVE-2016-8618: double-free in curl_maprintf
CVE-2016-8619: double-free in krb5 code
CVE-2016-8620: glob parser write/read out of bounds
CVE-2016-8621: curl_getdate read out of bounds
CVE-2016-8622: URL unescape heap overflow via integer truncation
CVE-2016-8623: Use-after-free via shared cookies
CVE-2016-8624: invalid URL parsing with '#'
CVE-2016-8625: IDNA 2003 makes curl use wrong host

Full ChangeLog:

https://curl.haxx.se/changes.html#7_51_0

---
 package/libcurl/libcurl.hash | 2 +-
 package/libcurl/libcurl.mk   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
package/libcurl/libcurl.hash +1 -1
index e2f2ecd..e128335 100644
@@ -1,2 +1,2 @@
 # Locally calculated after checking pgp signature
-sha256 7b7347d976661d02c84a1f4d6daf40dee377efdc45b9e2c77dedb8acf140d8ec  curl-7.50.3.tar.bz2
+sha256 7f8240048907e5030f67be0a6129bc4b333783b9cca1391026d700835a788dde  curl-7.51.0.tar.bz2
package/libcurl/libcurl.mk +1 -1
index 32a3022..d60000a 100644
@@ -4,7 +4,7 @@
 #
 ################################################################################
 
-LIBCURL_VERSION = 7.50.3
+LIBCURL_VERSION = 7.51.0
 LIBCURL_SOURCE = curl-$(LIBCURL_VERSION).tar.bz2
 LIBCURL_SITE = http://curl.haxx.se/download
 LIBCURL_DEPENDENCIES = host-pkgconf \
#1 lore raw

cover libcurl: Incorrect fix for CVE-2016-8625

CVE-2016-8625 (IDNA 2003 makes curl use wrong host) was fixed by switching from libidn to libidn2.

#2 lore raw

PATCH 1/2 libidn2: new package

An implementation of the IDNA2008 specifications (RFC 5890, RFC 5891, RFC 5892, RFC 5893)

---
 package/Config.in            |  1 +
 package/libidn2/Config.in    |  5 +++++
 package/libidn2/libidn2.hash |  2 ++
 package/libidn2/libidn2.mk   | 12 ++++++++++++
 4 files changed, 20 insertions(+)
 create mode 100644 package/libidn2/Config.in
 create mode 100644 package/libidn2/libidn2.hash
 create mode 100644 package/libidn2/libidn2.mk
package/Config.in +1 -0
index 9ed296f..7ffb756 100644
@@ -1198,6 +1198,7 @@ menu "Networking"
 	source "package/libgsasl/Config.in"
 	source "package/libhttpparser/Config.in"
 	source "package/libidn/Config.in"
+	source "package/libidn2/Config.in"
 	source "package/libiscsi/Config.in"
 	source "package/libldns/Config.in"
 	source "package/libmbus/Config.in"
package/libidn2/Config.in new file +5 -0
new file mode 100644
index 0000000..ce0a841
@@ -0,0 +1,5 @@
+config BR2_PACKAGE_LIBIDN2
+	bool "libidn2"
+
+	help
+	  An implementation of the IDNA2008 specifications (RFCs 5890, 5891, 5892, 5893)
package/libidn2/libidn2.hash new file +2 -0
new file mode 100644
index 0000000..5aedde0
@@ -0,0 +1,2 @@
+# Calculated locally after checking signature
+sha256  3d301890bdbb137424f5ea495f82730a4b85b6a2549e47de3a34afebeac3e0e3  libidn2-0.10.tar.gz
package/libidn2/libidn2.mk new file +12 -0
new file mode 100644
index 0000000..7adc1d8
@@ -0,0 +1,12 @@
+################################################################################
+#
+# libidn2
+#
+################################################################################
+
+LIBIDN2_VERSION = 0.10
+LIBIDN2_SITE = ftp://alpha.gnu.org/gnu/libidn
+LIBIDN2_SOURCE = libidn2-$(LIBIDN2_VERSION).tar.gz
+LIBIDN2_INSTALL_STAGING = YES
+
+$(eval $(autotools-package))
Signature · 1 line
2.10.2
#3 lore raw

PATCH 2/2 libcurl: Use libidn2 instead of libidn

In reply to Jeroen Roovers

Since 7.51.0 libcurl uses libidn2 instead of libidn

---
 package/libcurl/libcurl.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
package/libcurl/libcurl.mk +1 -1
index d60000a..f5433ef 100644
@@ -9,7 +9,7 @@ LIBCURL_SOURCE = curl-$(LIBCURL_VERSION).tar.bz2
 LIBCURL_SITE = http://curl.haxx.se/download
 LIBCURL_DEPENDENCIES = host-pkgconf \
 	$(if $(BR2_PACKAGE_ZLIB),zlib) \
-	$(if $(BR2_PACKAGE_LIBIDN),libidn) \
+	$(if $(BR2_PACKAGE_LIBIDN2),libidn2) \
 	$(if $(BR2_PACKAGE_RTMPDUMP),rtmpdump)
 LIBCURL_LICENSE = ISC
 LIBCURL_LICENSE_FILES = COPYING
Signature · 1 line
2.10.2