summaryrefslogtreecommitdiffstats
path: root/meta/recipes-support
diff options
context:
space:
mode:
authorMaxin B. John <maxin.john@intel.com>2016-08-22 14:15:41 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-09-02 08:48:29 +0100
commitaad7166704021d82ad3a5ec468552f8f10360d41 (patch)
treeb708fafcd6fa08da7322dee0013cdae032919ee5 /meta/recipes-support
parent6980d4fa2feba6147013933a173621513ec2dcd0 (diff)
downloadpoky-aad7166704021d82ad3a5ec468552f8f10360d41.tar.gz
curl: security fix for CVE-2016-5421
Affected versions: libcurl 7.32.0 to and including 7.50.0 (From OE-Core rev: 2a9f4823483b6f5decc6d504858f06f66ab9e06c) Signed-off-by: Maxin B. John <maxin.john@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-support')
-rw-r--r--meta/recipes-support/curl/curl/CVE-2016-5421.patch36
-rw-r--r--meta/recipes-support/curl/curl_7.47.1.bb1
2 files changed, 37 insertions, 0 deletions
diff --git a/meta/recipes-support/curl/curl/CVE-2016-5421.patch b/meta/recipes-support/curl/curl/CVE-2016-5421.patch
new file mode 100644
index 0000000000..862da757db
--- /dev/null
+++ b/meta/recipes-support/curl/curl/CVE-2016-5421.patch
@@ -0,0 +1,36 @@
1From 75dc096e01ef1e21b6c57690d99371dedb2c0b80 Mon Sep 17 00:00:00 2001
2From: Daniel Stenberg <daniel@haxx.se>
3Date: Sun, 31 Jul 2016 01:09:04 +0200
4Subject: [PATCH] curl_multi_cleanup: clear connection pointer for easy handles
5MIME-Version: 1.0
6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit
8
9Bug: https://curl.haxx.se/docs/adv_20160803C.html
10Reported-by: Marcelo Echeverria and Fernando Muñoz
11
12Upstream-Status: Backport
13https://curl.haxx.se/CVE-2016-5421.patch
14
15CVE: CVE-2016-5421
16Signed-off-by: Maxin B. John <maxin.john@intel.com>
17---
18 lib/multi.c | 2 ++
19 1 file changed, 2 insertions(+)
20
21diff --git a/lib/multi.c b/lib/multi.c
22index 9ee3523..8bb9366 100644
23--- a/lib/multi.c
24+++ b/lib/multi.c
25@@ -2157,6 +2157,8 @@ static void close_all_connections(struct Curl_multi *multi)
26 conn->data = multi->closure_handle;
27
28 sigpipe_ignore(conn->data, &pipe_st);
29+ conn->data->easy_conn = NULL; /* clear the easy handle's connection
30+ pointer */
31 /* This will remove the connection from the cache */
32 (void)Curl_disconnect(conn, FALSE);
33 sigpipe_restore(&pipe_st);
34--
352.4.0
36
diff --git a/meta/recipes-support/curl/curl_7.47.1.bb b/meta/recipes-support/curl/curl_7.47.1.bb
index 8d459c75d6..6c71760e49 100644
--- a/meta/recipes-support/curl/curl_7.47.1.bb
+++ b/meta/recipes-support/curl/curl_7.47.1.bb
@@ -13,6 +13,7 @@ SRC_URI = "http://curl.haxx.se/download/curl-${PV}.tar.bz2"
13SRC_URI += " file://configure_ac.patch \ 13SRC_URI += " file://configure_ac.patch \
14 file://CVE-2016-5419.patch \ 14 file://CVE-2016-5419.patch \
15 file://CVE-2016-5420.patch \ 15 file://CVE-2016-5420.patch \
16 file://CVE-2016-5421.patch \
16 " 17 "
17 18
18SRC_URI[md5sum] = "9ea3123449439bbd960cd25cf98796fb" 19SRC_URI[md5sum] = "9ea3123449439bbd960cd25cf98796fb"