mirror of
https://git.yoctoproject.org/poky
synced 2026-09-11 21:49:33 +02:00
curl: fix CVE-2026-5545
This patch applies the upstream backport for CVE-2026-5545.
The upstream fix commit is referenced in [1], and the public
CVE advisory is referenced in [2].
[1] 33e43985b8
[2] https://curl.se/docs/CVE-2026-5545.html
(From OE-Core rev: dfb61bf303fc32257e32719df36344286b1a80e6)
Signed-off-by: Deepak Rathore <deeratho@cisco.com>
Signed-off-by: Fabien Thomas <fabien.thomas@smile.fr>
Signed-off-by: Paul Barker <paul@pbarker.dev>
This commit is contained in:
committed by
Paul Barker
parent
c38773f228
commit
74cc040335
42
meta/recipes-support/curl/curl/CVE-2026-5545.patch
Normal file
42
meta/recipes-support/curl/curl/CVE-2026-5545.patch
Normal file
@@ -0,0 +1,42 @@
|
||||
From ab96b09b1163659b83b0716abe42662d1e1630ea Mon Sep 17 00:00:00 2001
|
||||
From: Stefan Eissing <stefan@eissing.org>
|
||||
Date: Fri, 5 Jun 2026 01:17:44 -0700
|
||||
Subject: [PATCH] url: improve connection reuse on negotiate
|
||||
|
||||
Check state of negotiate to allow proper connection reuse.
|
||||
|
||||
Closes #21203
|
||||
|
||||
CVE: CVE-2026-5545
|
||||
Upstream-Status: Backport [https://github.com/curl/curl/commit/33e43985b8f3b9e66691d06e70be0395849856cd]
|
||||
|
||||
Backport Changes:
|
||||
- curl-8.7.1 still performs the NTLM/Negotiate reuse logic inline in
|
||||
ConnectionExists(), so the upstream guard was adapted there.
|
||||
|
||||
(cherry picked from commit 33e43985b8f3b9e66691d06e70be0395849856cd)
|
||||
Signed-off-by: Deepak Rathore <deeratho@cisco.com>
|
||||
---
|
||||
lib/url.c | 8 +++++++-
|
||||
1 file changed, 7 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/lib/url.c b/lib/url.c
|
||||
index 30f215fd48..1d6e3309f5 100644
|
||||
--- a/lib/url.c
|
||||
+++ b/lib/url.c
|
||||
@@ -1219,8 +1219,14 @@ ConnectionExists(struct Curl_easy *data,
|
||||
Curl_timestrcmp(needle->passwd, check->passwd)) {
|
||||
|
||||
/* we prefer a credential match, but this is at least a connection
|
||||
- that can be reused and "upgraded" to NTLM */
|
||||
+ that can be reused and "upgraded" to NTLM if it does
|
||||
+ not have any auth ongoing. */
|
||||
+#ifdef USE_SPNEGO
|
||||
+ if((check->http_ntlm_state == NTLMSTATE_NONE) &&
|
||||
+ (check->http_negotiate_state == GSS_AUTHNONE))
|
||||
+#else
|
||||
if(check->http_ntlm_state == NTLMSTATE_NONE)
|
||||
+#endif
|
||||
chosen = check;
|
||||
continue;
|
||||
}
|
||||
@@ -38,6 +38,7 @@ SRC_URI = " \
|
||||
file://CVE-2026-3784.patch \
|
||||
file://CVE-2026-5773.patch \
|
||||
file://CVE-2026-6276.patch \
|
||||
file://CVE-2026-5545.patch \
|
||||
"
|
||||
|
||||
SRC_URI:append:class-nativesdk = " \
|
||||
|
||||
Reference in New Issue
Block a user