summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/recipes-support/curl/curl/0001-vtls-add-isproxy-argument-to-Curl_ssl_get-addsession.patch16
-rw-r--r--meta/recipes-support/curl/curl/0002-transfer-strip-credentials-from-the-auto-referer-hea.patch5
2 files changed, 12 insertions, 9 deletions
diff --git a/meta/recipes-support/curl/curl/0001-vtls-add-isproxy-argument-to-Curl_ssl_get-addsession.patch b/meta/recipes-support/curl/curl/0001-vtls-add-isproxy-argument-to-Curl_ssl_get-addsession.patch
index a0c7d68f33..1e0e18cf12 100644
--- a/meta/recipes-support/curl/curl/0001-vtls-add-isproxy-argument-to-Curl_ssl_get-addsession.patch
+++ b/meta/recipes-support/curl/curl/0001-vtls-add-isproxy-argument-to-Curl_ssl_get-addsession.patch
@@ -1,15 +1,14 @@
1From a2d3885223db9616283bfe33435fbe9b3140eac7 Mon Sep 17 00:00:00 2001 1From e499142d377b56c7606437d14c99d3cb27aba9fd Mon Sep 17 00:00:00 2001
2From: Trevor Gamblin <trevor.gamblin@windriver.com> 2From: Trevor Gamblin <trevor.gamblin@windriver.com>
3Date: Tue, 1 Jun 2021 09:50:20 -0400 3Date: Tue, 1 Jun 2021 09:50:20 -0400
4Subject: [PATCH 1/2] vtls: add 'isproxy' argument to 4Subject: [PATCH] vtls: add 'isproxy' argument to Curl_ssl_get/addsessionid()
5 Curl_ssl_get/addsessionid()
6 5
7To make sure we set and extract the correct session. 6To make sure we set and extract the correct session.
8 7
9Reported-by: Mingtao Yang 8Reported-by: Mingtao Yang
10Bug: https://curl.se/docs/CVE-2021-22890.html 9Bug: https://curl.se/docs/CVE-2021-22890.html
11 10
12CVE-2021-22890 11CVE: CVE-2021-22890
13 12
14Upstream-Status: Backport 13Upstream-Status: Backport
15(https://github.com/curl/curl/commit/b09c8ee15771c614c4bf3ddac893cdb12187c844) 14(https://github.com/curl/curl/commit/b09c8ee15771c614c4bf3ddac893cdb12187c844)
@@ -25,8 +24,8 @@ Signed-off-by: Trevor Gamblin <trevor.gamblin@windriver.com>
25 lib/vtls/sectransp.c | 10 ++++---- 24 lib/vtls/sectransp.c | 10 ++++----
26 lib/vtls/vtls.c | 12 +++++++--- 25 lib/vtls/vtls.c | 12 +++++++---
27 lib/vtls/vtls.h | 2 ++ 26 lib/vtls/vtls.h | 2 ++
28 lib/vtls/wolfssl.c | 28 +++++++++++++---------- 27 lib/vtls/wolfssl.c | 29 ++++++++++++++----------
29 10 files changed, 111 insertions(+), 51 deletions(-) 28 10 files changed, 112 insertions(+), 51 deletions(-)
30 29
31diff --git a/lib/vtls/bearssl.c b/lib/vtls/bearssl.c 30diff --git a/lib/vtls/bearssl.c b/lib/vtls/bearssl.c
32index 29b08c0e6..0432dfadc 100644 31index 29b08c0e6..0432dfadc 100644
@@ -463,7 +462,7 @@ index 9666682ec..4dc29794c 100644
463 size_t idsize, 462 size_t idsize,
464 int sockindex); 463 int sockindex);
465diff --git a/lib/vtls/wolfssl.c b/lib/vtls/wolfssl.c 464diff --git a/lib/vtls/wolfssl.c b/lib/vtls/wolfssl.c
466index e1fa45926..e4c70877f 100644 465index e1fa45926..f1b12b1d8 100644
467--- a/lib/vtls/wolfssl.c 466--- a/lib/vtls/wolfssl.c
468+++ b/lib/vtls/wolfssl.c 467+++ b/lib/vtls/wolfssl.c
469@@ -516,7 +516,9 @@ wolfssl_connect_step1(struct Curl_easy *data, struct connectdata *conn, 468@@ -516,7 +516,9 @@ wolfssl_connect_step1(struct Curl_easy *data, struct connectdata *conn,
@@ -477,7 +476,7 @@ index e1fa45926..e4c70877f 100644
477 /* we got a session id, use it! */ 476 /* we got a session id, use it! */
478 if(!SSL_set_session(backend->handle, ssl_sessionid)) { 477 if(!SSL_set_session(backend->handle, ssl_sessionid)) {
479 char error_buffer[WOLFSSL_MAX_ERROR_SZ]; 478 char error_buffer[WOLFSSL_MAX_ERROR_SZ];
480@@ -774,21 +776,23 @@ wolfssl_connect_step3(struct Curl_easy *data, struct connectdata *conn, 479@@ -774,21 +776,24 @@ wolfssl_connect_step3(struct Curl_easy *data, struct connectdata *conn,
481 void *old_ssl_sessionid = NULL; 480 void *old_ssl_sessionid = NULL;
482 481
483 our_ssl_sessionid = SSL_get_session(backend->handle); 482 our_ssl_sessionid = SSL_get_session(backend->handle);
@@ -501,6 +500,7 @@ index e1fa45926..e4c70877f 100644
501+ infof(data, "old SSL session ID is stale, removing\n"); 500+ infof(data, "old SSL session ID is stale, removing\n");
502+ Curl_ssl_delsessionid(data, old_ssl_sessionid); 501+ Curl_ssl_delsessionid(data, old_ssl_sessionid);
503+ incache = FALSE; 502+ incache = FALSE;
503+ }
504 } 504 }
505 } 505 }
506 506
diff --git a/meta/recipes-support/curl/curl/0002-transfer-strip-credentials-from-the-auto-referer-hea.patch b/meta/recipes-support/curl/curl/0002-transfer-strip-credentials-from-the-auto-referer-hea.patch
index 6c4f6f2f48..c02c9bed68 100644
--- a/meta/recipes-support/curl/curl/0002-transfer-strip-credentials-from-the-auto-referer-hea.patch
+++ b/meta/recipes-support/curl/curl/0002-transfer-strip-credentials-from-the-auto-referer-hea.patch
@@ -6,7 +6,10 @@ Subject: [PATCH 2/2] transfer: strip credentials from the auto-referer header
6 6
7Added test 2081 to verify. 7Added test 2081 to verify.
8 8
9CVE-2021-22876 9CVE: CVE-2021-22876
10
11Upstream-Status: Backport
12(https://github.com/curl/curl/commit/7214288898f5625a6cc196e22a74232eada7861c)
10 13
11Bug: https://curl.se/docs/CVE-2021-22876.html 14Bug: https://curl.se/docs/CVE-2021-22876.html
12 15