curl: fix CVE-2021-22945 through -22947
PATCH 1/1 curl: fix CVE-2021-22945 through -22947
Signed-off-by Ross Burton <[email protected]>
--- .../curl/curl/cve-2021-22945.patch | 34 ++ .../curl/curl/cve-2021-22946.patch | 332 ++++++++++++++++ .../curl/curl/cve-2021-22947.patch | 355 ++++++++++++++++++ meta/recipes-support/curl/curl_7.78.0.bb | 3 + 4 files changed, 724 insertions(+) create mode 100644 meta/recipes-support/curl/curl/cve-2021-22945.patch create mode 100644 meta/recipes-support/curl/curl/cve-2021-22946.patch create mode 100644 meta/recipes-support/curl/curl/cve-2021-22947.patch
meta/recipes-support/curl/curl/cve-2021-22945.patch new file +34 -0
@@ -0,0 +1,34 @@ +CVE: CVE-2021-22945 +Upstream-Status: Backport +Signed-off-by: Ross Burton <[email protected]> + +From 92cb3059dab2f9ef3e6ea614dad5c86917d19807 Mon Sep 17 00:00:00 2001 +From: z2_ on hackerone <> +Date: Tue, 24 Aug 2021 09:50:33 +0200 +Subject: [PATCH 1/3] mqtt: clear the leftovers pointer when sending succeeds + +CVE-2021-22945 + +Bug: https://curl.se/docs/CVE-2021-22945.html +--- + lib/mqtt.c | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/lib/mqtt.c b/lib/mqtt.c +index f077e6c3d..fcd40b41e 100644 +--- a/lib/mqtt.c ++++ b/lib/mqtt.c +@@ -128,6 +128,10 @@ static CURLcode mqtt_send(struct Curl_easy *data, + mq->sendleftovers = sendleftovers; + mq->nsend = nsend; + } ++ else { ++ mq->sendleftovers = NULL; ++ mq->nsend = 0; ++ } + return result; + } + +-- +2.25.1 +
meta/recipes-support/curl/curl/cve-2021-22946.patch new file +332 -0
332 lines not on this page · raw message
meta/recipes-support/curl/curl/cve-2021-22947.patch new file +355 -0
355 lines not on this page · raw message
meta/recipes-support/curl/curl_7.78.0.bb +3 -0
@@ -11,6 +11,9 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=425f6fdc767cc067518eef9bbdf4ab7b" SRC_URI = "https://curl.haxx.se/download/curl-${PV}.tar.bz2 \ file://0001-replace-krb5-config-with-pkg-config.patch \ + file://cve-2021-22945.patch \ + file://cve-2021-22946.patch \ + file://cve-2021-22947.patch \ " SRC_URI[sha256sum] = "98530b317dc95ccb324bbe4f834f07bb642fbc393b794ddf3434f246a71ea44a"
Signature · 1 line
2.25.1