Skip to contentSkip to conversation

libcurl: Incorrect fix for CVE-2016-8625

PATCH New Jeroen Roovers 2 participants 4 messages Nov 3, 2016

lore
Share & tools
lore
#0 lore raw

v2 cover libcurl: Incorrect fix for CVE-2016-8625

CVE-2016-8625 was fixed by switching from libidn to libidn2.

Jeroen Roovers (2):
libidn2: new package
libcurl: Use libidn2 instead of libidn

 package/Config.in            |  1 +
 package/libcurl/libcurl.mk   |  2 +-
 package/libidn2/Config.in    |  4 ++++
 package/libidn2/libidn2.hash |  2 ++
 package/libidn2/libidn2.mk   | 11 +++++++++++
 5 files changed, 19 insertions(+), 1 deletion(-)
 create mode 100644 package/libidn2/Config.in
 create mode 100644 package/libidn2/libidn2.hash
 create mode 100644 package/libidn2/libidn2.mk
Signature · 1 line
2.10.2
#1 lore raw

PATCH v2 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    |  4 ++++
 package/libidn2/libidn2.hash |  2 ++
 package/libidn2/libidn2.mk   | 11 +++++++++++
 4 files changed, 18 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 +4 -0
new file mode 100644
index 0000000..991a4aa
@@ -0,0 +1,4 @@
+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..a9e5295
@@ -0,0 +1,2 @@
+# Calculated locally after checking signature
+sha256  5d397bdc258b372b8a25c8fb5240430d6fae28f9d790d3670f4b6012fa87bfff  libidn2-0.11.tar.gz
package/libidn2/libidn2.mk new file +11 -0
new file mode 100644
index 0000000..40221f3
@@ -0,0 +1,11 @@
+################################################################################
+#
+# libidn2
+#
+################################################################################
+
+LIBIDN2_VERSION = 0.11
+LIBIDN2_SITE = ftp://alpha.gnu.org/gnu/libidn
+LIBIDN2_INSTALL_STAGING = YES
+
+$(eval $(autotools-package))
Signature · 1 line
2.10.2
#3 lore raw

PATCH v2 2/2 libcurl: Use libidn2 instead of libidn

In reply to Jeroen Roovers

CVE-2016-8625 (IDNA 2003 makes curl use wrong host) was fixed by switching from libidn to libidn2. The advisory[1] does not mention this but the related commit[2] does.

[1] https://curl.haxx.se/docs/adv_20161102K.html
[2] https://github.com/curl/curl/commit/9c91ec778104ae3b744b39444d544e82d5ee9ece

---
 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
#2 lore raw

PATCH v2 1/2 libidn2: new package

In reply to Jeroen Roovers

Hi Jeroen,

Quoted 2 lines · Jeroen Roovers

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

Your sign-off is missing.

baruch

Signature · 3 lines
     http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -