summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/wget
diff options
context:
space:
mode:
authorZhixiong Chi <zhixiong.chi@windriver.com>2017-10-31 17:52:29 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-11-08 22:24:04 +0000
commit30961f99599de5934d843efdccd5a2401789036e (patch)
treefbba8d57d15531a5223be7fd07905efeefd2a9ce /meta/recipes-extended/wget
parent70b3fffe5a9f337994c6444a6b6612237056a37f (diff)
downloadpoky-30961f99599de5934d843efdccd5a2401789036e.tar.gz
wget: Upgrade 1.19.1 -> 1.19.2
Among other things, fix CVE-2017-13089 CVE-2017-13090 CVE-2017-6508 External References: https://nvd.nist.gov/vuln/detail/CVE-2017-13089 https://nvd.nist.gov/vuln/detail/CVE-2017-13090 https://nvd.nist.gov/vuln/detail/CVE-2017-6508 (From OE-Core rev: 97717693042e30ade6a568e45c333159eea43cbb) Signed-off-by: Zhixiong Chi <zhixiong.chi@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/wget')
-rw-r--r--meta/recipes-extended/wget/wget/CVE-2017-6508.patch44
-rw-r--r--meta/recipes-extended/wget/wget_1.19.1.bb9
-rw-r--r--meta/recipes-extended/wget/wget_1.19.2.bb8
3 files changed, 8 insertions, 53 deletions
diff --git a/meta/recipes-extended/wget/wget/CVE-2017-6508.patch b/meta/recipes-extended/wget/wget/CVE-2017-6508.patch
deleted file mode 100644
index b9c290f656..0000000000
--- a/meta/recipes-extended/wget/wget/CVE-2017-6508.patch
+++ /dev/null
@@ -1,44 +0,0 @@
1From 4d729e322fae359a1aefaafec1144764a54e8ad4 Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?Tim=20R=C3=BChsen?= <tim.ruehsen@gmx.de>
3Date: Mon, 6 Mar 2017 10:04:22 +0100
4Subject: [PATCH] Fix CRLF injection in Wget host part
5
6* src/url.c (url_parse): Reject control characters in host part of URL
7
8Reported-by: Orange Tsai
9
10Upstream-Status: Backport
11[http://git.savannah.gnu.org/cgit/wget.git/commit/?id=4d729e322fae359a1aefaafec1144764a54e8ad4]
12
13CVE: CVE-2017-6508
14
15Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
16---
17 src/url.c | 11 +++++++++++
18 1 file changed, 11 insertions(+)
19
20diff --git a/src/url.c b/src/url.c
21index 8f8ff0b..7d36b27 100644
22--- a/src/url.c
23+++ b/src/url.c
24@@ -925,6 +925,17 @@ url_parse (const char *url, int *error, struct iri *iri, bool percent_encode)
25 url_unescape (u->host);
26 host_modified = true;
27
28+ /* check for invalid control characters in host name */
29+ for (p = u->host; *p; p++)
30+ {
31+ if (c_iscntrl(*p))
32+ {
33+ url_free(u);
34+ error_code = PE_INVALID_HOST_NAME;
35+ goto error;
36+ }
37+ }
38+
39 /* Apply IDNA regardless of iri->utf8_encode status */
40 if (opt.enable_iri && iri)
41 {
42--
432.7.4
44
diff --git a/meta/recipes-extended/wget/wget_1.19.1.bb b/meta/recipes-extended/wget/wget_1.19.1.bb
deleted file mode 100644
index 78bde95951..0000000000
--- a/meta/recipes-extended/wget/wget_1.19.1.bb
+++ /dev/null
@@ -1,9 +0,0 @@
1SRC_URI = "${GNU_MIRROR}/wget/wget-${PV}.tar.gz \
2 file://0001-Unset-need_charset_alias-when-building-for-musl.patch \
3 file://CVE-2017-6508.patch \
4 "
5
6SRC_URI[md5sum] = "87cea36b7161fd43e3fd51a4e8b89689"
7SRC_URI[sha256sum] = "9e4f12da38cc6167d0752d934abe27c7b1599a9af294e73829be7ac7b5b4da40"
8
9require wget.inc
diff --git a/meta/recipes-extended/wget/wget_1.19.2.bb b/meta/recipes-extended/wget/wget_1.19.2.bb
new file mode 100644
index 0000000000..bdafa70bfd
--- /dev/null
+++ b/meta/recipes-extended/wget/wget_1.19.2.bb
@@ -0,0 +1,8 @@
1SRC_URI = "${GNU_MIRROR}/wget/wget-${PV}.tar.gz \
2 file://0001-Unset-need_charset_alias-when-building-for-musl.patch \
3 "
4
5SRC_URI[md5sum] = "caabf9727fa429626316619a6369fffa"
6SRC_URI[sha256sum] = "4f4a673b6d466efa50fbfba796bd84a46ae24e370fa562ede5b21ab53c11a920"
7
8require wget.inc