curl: Fix CVE-2025-14524
PATCH 1/4 curl: Fix CVE-2025-14524
From: Vijay Anusuri <[email protected]>
import patch from ubuntu to fix
CVE-2025-14524
Upstream-Status: Backport [import from ubuntu curl_7.81.0-1ubuntu1.23.debian.tar.xz Upstream commit https://github.com/curl/curl/commit/1a822275d333dc6da6043497160fd04c8fa48640]
Reference: https://curl.se/docs/CVE-2025-14524.html
--- .../curl/curl/CVE-2025-14524.patch | 33 +++++++++++++++++++ meta/recipes-support/curl/curl_7.82.0.bb | 1 + 2 files changed, 34 insertions(+) create mode 100644 meta/recipes-support/curl/curl/CVE-2025-14524.patch
meta/recipes-support/curl/curl/CVE-2025-14524.patch new file +33 -0
@@ -0,0 +1,33 @@ +From 1a822275d333dc6da6043497160fd04c8fa48640 Mon Sep 17 00:00:00 2001 +From: Daniel Stenberg <[email protected]> +Date: Wed, 10 Dec 2025 11:40:47 +0100 +Subject: [PATCH] curl_sasl: if redirected, require permission to use bearer + +Closes #19933 + +Upstream-Status: Backport [import from ubuntu curl_7.81.0-1ubuntu1.23.debian.tar.xz +Upstream commit https://github.com/curl/curl/commit/1a822275d333dc6da6043497160fd04c8fa48640] +CVE: CVE-2025-14524 +Signed-off-by: Vijay Anusuri <[email protected]> +--- + lib/curl_sasl.c | 4 +++- + 1 file changed, 3 insertions(+), 1 deletion(-) + +diff --git a/lib/curl_sasl.c b/lib/curl_sasl.c +index 7e28c92..ed9ca96 100644 +--- a/lib/curl_sasl.c ++++ b/lib/curl_sasl.c +@@ -531,7 +531,9 @@ CURLcode Curl_sasl_continue(struct SASL *sasl, struct Curl_easy *data, + data->set.str[STRING_SERVICE_NAME] : + sasl->params->service; + #endif +- const char *oauth_bearer = data->set.str[STRING_BEARER]; ++ const char *oauth_bearer = ++ (!data->state.this_is_a_follow || data->set.allow_auth_to_other_hosts) ? ++ data->set.str[STRING_BEARER] : NULL; + struct bufref serverdata; + + Curl_bufref_init(&serverdata); +-- +2.25.1 +
meta/recipes-support/curl/curl_7.82.0.bb +1 -0
@@ -70,6 +70,7 @@ SRC_URI = "https://curl.se/download/${BP}.tar.xz \ file://CVE-2025-14017.patch \ file://CVE-2025-15079.patch \ file://CVE-2025-15224.patch \ + file://CVE-2025-14524.patch \ " SRC_URI[sha256sum] = "0aaa12d7bd04b0966254f2703ce80dd5c38dbbd76af0297d3d690cdce58a583c"
Signature · 1 line
2.25.1
PATCH 2/4 curl: Fix for CVE-2026-1965
From: Vijay Anusuri <[email protected]>
import patch from ubuntu to fix
CVE-2026-1965
Upstream-Status: Backport [import from ubuntu curl_7.81.0-1ubuntu1.23.debian.tar.xz Upstream commit https://github.com/curl/curl/commit/34fa034d9a390c4bd6 &
https://github.com/curl/curl/commit/f1a39f221d57354990]
Reference: https://curl.se/docs/CVE-2026-1965.html
https://ubuntu.com/security/CVE-2026-1965
--- .../curl/curl/CVE-2026-1965-1.patch | 99 +++++++++++++++++++ .../curl/curl/CVE-2026-1965-2.patch | 30 ++++++ meta/recipes-support/curl/curl_7.82.0.bb | 2 + 3 files changed, 131 insertions(+) create mode 100644 meta/recipes-support/curl/curl/CVE-2026-1965-1.patch create mode 100644 meta/recipes-support/curl/curl/CVE-2026-1965-2.patch
meta/recipes-support/curl/curl/CVE-2026-1965-1.patch new file +99 -0
@@ -0,0 +1,99 @@ +Backport of: + +From 34fa034d9a390c4bd65e2d05262755ec8646ac12 Mon Sep 17 00:00:00 2001 +From: Daniel Stenberg <[email protected]> +Date: Thu, 5 Feb 2026 08:34:21 +0100 +Subject: [PATCH] url: fix reuse of connections using HTTP Negotiate + +Assume Negotiate means connection-based + +Reported-by: Zhicheng Chen +Closes #20534 + +Upstream-Status: Backport [import from ubuntu curl_7.81.0-1ubuntu1.23.debian.tar.xz +Upstream commit https://github.com/curl/curl/commit/34fa034d9a390c4bd6] +CVE: CVE-2026-1965 +Signed-off-by: Vijay Anusuri <[email protected]> +--- + lib/url.c | 87 +++++++++++++++++++++++++++++++++++++++++++++++++++---- + 1 file changed, 82 insertions(+), 5 deletions(-) + +--- a/lib/url.c ++++ b/lib/url.c +@@ -1145,6 +1145,18 @@ ConnectionExists(struct Curl_easy *data, + #endif + #endif + ++#if !defined(CURL_DISABLE_HTTP) && defined(USE_SPNEGO) ++ bool wantNegohttp = ++ (data->state.authhost.want & CURLAUTH_NEGOTIATE) && ++ (needle->handler->protocol & PROTO_FAMILY_HTTP); ++#ifndef CURL_DISABLE_PROXY ++ bool wantProxyNegohttp = ++ needle->bits.proxy_user_passwd && ++ (data->state.authproxy.want & CURLAUTH_NEGOTIATE) && ++ (needle->handler->protocol & PROTO_FAMILY_HTTP); ++#endif ++#endif ++ + *force_reuse = FALSE; + *waitpipe = FALSE; + +@@ -1496,6 +1508,57 @@ ConnectionExists(struct Curl_easy *data, + continue; + } + #endif ++ ++#ifdef USE_SPNEGO ++ /* If we are looking for an HTTP+Negotiate connection, check if this is ++ already authenticating with the right credentials. If not, keep looking ++ so that we can reuse Negotiate connections if possible. */ ++ if(wantNegohttp) { ++ if(Curl_timestrcmp(needle->user, check->user) || ++ Curl_timestrcmp(needle->passwd, check->passwd)) ++ continue; ++ } ++ else if(check->http_negotiate_state != GSS_AUTHNONE) { ++ /* Connection is using Negotiate auth but we do not want Negotiate */ ++ continue; ++ } ++ ++#ifndef CURL_DISABLE_PROXY ++ /* Same for Proxy Negotiate authentication */ ++ if(wantProxyNegohttp) { ++ /* Both check->http_proxy.user and check->http_proxy.passwd can be ++ * NULL */ ++ if(!check->http_proxy.user || !check->http_proxy.passwd) ++ continue; ++ ++ if(Curl_timestrcmp(needle->http_proxy.user, ++ check->http_proxy.user) || ++ Curl_timestrcmp(needle->http_proxy.passwd, ++ check->http_proxy.passwd)) ++ continue; ++ } ++ else if(check->proxy_negotiate_state != GSS_AUTHNONE) { ++ /* Proxy connection is using Negotiate auth but we do not want Negotiate */ ++ continue; ++ } ++#endif ++ if(wantNTLMhttp || wantProxyNTLMhttp) { ++ /* Credentials are already checked, we may use this connection. We MUST ++ * use a connection where it has already been fully negotiated. If it has ++ * not, we keep on looking for a better one. */ ++ chosen = check; ++ if((wantNegohttp && ++ (check->http_negotiate_state != GSS_AUTHNONE)) || ++ (wantProxyNegohttp && ++ (check->proxy_negotiate_state != GSS_AUTHNONE))) { ++ /* We must use this connection, no other */ ++ *force_reuse = TRUE; ++ break; ++ } ++ continue; /* get another */ ++ } ++#endif ++ + if(canmultiplex) { + /* We can multiplex if we want to. Let's continue looking for + the optimal connection to use. */
meta/recipes-support/curl/curl/CVE-2026-1965-2.patch new file +30 -0
@@ -0,0 +1,30 @@ +Backport of: + +From f1a39f221d57354990e3eeeddc3404aede2aff70 Mon Sep 17 00:00:00 2001 +From: Daniel Stenberg <[email protected]> +Date: Sat, 21 Feb 2026 18:11:41 +0100 +Subject: [PATCH] url: fix copy and paste url_match_auth_nego mistake + +Follow-up to 34fa034 +Reported-by: dahmono on github +Closes #20662 + +Upstream-Status: Backport [import from ubuntu curl_7.81.0-1ubuntu1.23.debian.tar.xz +Upstream commit https://github.com/curl/curl/commit/f1a39f221d57354990] +CVE: CVE-2026-1965 +Signed-off-by: Vijay Anusuri <[email protected]> +--- + lib/url.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +--- a/lib/url.c ++++ b/lib/url.c +@@ -1542,7 +1542,7 @@ ConnectionExists(struct Curl_easy *data, + continue; + } + #endif +- if(wantNTLMhttp || wantProxyNTLMhttp) { ++ if(wantNegohttp || wantProxyNegohttp) { + /* Credentials are already checked, we may use this connection. We MUST + * use a connection where it has already been fully negotiated. If it has + * not, we keep on looking for a better one. */
meta/recipes-support/curl/curl_7.82.0.bb +2 -0
@@ -71,6 +71,8 @@ SRC_URI = "https://curl.se/download/${BP}.tar.xz \ file://CVE-2025-15079.patch \ file://CVE-2025-15224.patch \ file://CVE-2025-14524.patch \ + file://CVE-2026-1965-1.patch \ + file://CVE-2026-1965-2.patch \ " SRC_URI[sha256sum] = "0aaa12d7bd04b0966254f2703ce80dd5c38dbbd76af0297d3d690cdce58a583c"
Signature · 1 line
2.25.1
PATCH 3/4 curl: Fix for CVE-2026-3783
In reply to [email protected]From: Vijay Anusuri <[email protected]>
import patch from ubuntu to fix
CVE-2026-3783
Upstream-Status: Backport [import from ubuntu curl_7.81.0-1ubuntu1.23.debian.tar.xz Upstream commit https://github.com/curl/curl/commit/e3d7401a32a46516c9e5ee877]
Reference: https://curl.se/docs/CVE-2026-3783.html
https://ubuntu.com/security/CVE-2026-3783
--- .../curl/curl/CVE-2026-3783.patch | 188 ++++++++++++++++++ meta/recipes-support/curl/curl_7.82.0.bb | 1 + 2 files changed, 189 insertions(+) create mode 100644 meta/recipes-support/curl/curl/CVE-2026-3783.patch
meta/recipes-support/curl/curl/CVE-2026-3783.patch new file +188 -0
@@ -0,0 +1,188 @@ +Backport of: + +From e3d7401a32a46516c9e5ee877e613e62ed35bddc Mon Sep 17 00:00:00 2001 +From: Daniel Stenberg <[email protected]> +Date: Fri, 6 Mar 2026 23:13:07 +0100 +Subject: [PATCH] http: only send bearer if auth is allowed + +Verify with test 2006 + +Closes #20843 + +Upstream-Status: Backport [import from ubuntu curl_7.81.0-1ubuntu1.23.debian.tar.xz +Upstream commit https://github.com/curl/curl/commit/e3d7401a32a46516c9e5ee877] +CVE: CVE-2026-3783 +Signed-off-by: Vijay Anusuri <[email protected]> +--- + lib/http.c | 1 + + tests/data/Makefile.am | 2 +- + tests/data/test2006 | 98 ++++++++++++++++++++++++++++++++++++++++++ + 3 files changed, 100 insertions(+), 1 deletion(-) + create mode 100644 tests/data/test2006 + +--- a/lib/http.c ++++ b/lib/http.c +@@ -652,6 +652,21 @@ CURLcode Curl_http_auth_act(struct Curl_ + return result; + } + ++/* ++ * Curl_allow_auth_to_host() tells if authentication, cookies or other ++ * "sensitive data" can (still) be sent to this host. ++ */ ++bool Curl_allow_auth_to_host(struct Curl_easy *data) ++{ ++ struct connectdata *conn = data->conn; ++ return (!data->state.this_is_a_follow || ++ data->set.allow_auth_to_other_hosts || ++ (data->state.first_host && ++ strcasecompare(data->state.first_host, conn->host.name) && ++ (data->state.first_remote_port == conn->remote_port) && ++ (data->state.first_remote_protocol == conn->handler->protocol))); ++} ++ + #ifndef CURL_DISABLE_HTTP_AUTH + /* + * Output the correct authentication header depending on the auth type +@@ -742,6 +757,7 @@ output_auth_headers(struct Curl_easy *da + if(authstatus->picked == CURLAUTH_BEARER) { + /* Bearer */ + if((!proxy && data->set.str[STRING_BEARER] && ++ Curl_allow_auth_to_host(data) && + !Curl_checkheaders(data, STRCONST("Authorization")))) { + auth = "Bearer"; + result = http_output_bearer(data); +@@ -775,21 +791,6 @@ output_auth_headers(struct Curl_easy *da + return CURLE_OK; + } + +-/* +- * Curl_allow_auth_to_host() tells if authentication, cookies or other +- * "sensitive data" can (still) be sent to this host. +- */ +-bool Curl_allow_auth_to_host(struct Curl_easy *data) +-{ +- struct connectdata *conn = data->conn; +- return (!data->state.this_is_a_follow || +- data->set.allow_auth_to_other_hosts || +- (data->state.first_host && +- strcasecompare(data->state.first_host, conn->host.name) && +- (data->state.first_remote_port == conn->remote_port) && +- (data->state.first_remote_protocol == conn->handler->protocol))); +-} +- + /** + * Curl_http_output_auth() setups the authentication headers for the + * host/proxy and the correct authentication +--- /dev/null ++++ b/tests/data/test2006 +@@ -0,0 +1,98 @@ ++<?xml version="1.0" encoding="US-ASCII"?> ++<testcase> ++<info> ++<keywords> ++netrc ++HTTP ++</keywords> ++</info> ++# Server-side ++<reply> ++<data crlf="yes"> ++HTTP/1.1 301 Follow this you fool ++Date: Tue, 09 Nov 2010 14:49:00 GMT ++Server: test-server/fake ++Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT ++ETag: "21025-dc7-39462498" ++Accept-Ranges: bytes ++Content-Length: 6 ++Connection: close ++Location: http://b.com/%TESTNUMBER0002 ++ ++-foo- ++</data> ++ ++<data2 crlf="yes"> ++HTTP/1.1 200 OK ++Date: Tue, 09 Nov 2010 14:49:00 GMT ++Server: test-server/fake ++Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT ++ETag: "21025-dc7-39462498" ++Accept-Ranges: bytes ++Content-Length: 7 ++Connection: close ++ ++target ++</data2> ++ ++<datacheck crlf="yes"> ++HTTP/1.1 301 Follow this you fool ++Date: Tue, 09 Nov 2010 14:49:00 GMT ++Server: test-server/fake ++Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT ++ETag: "21025-dc7-39462498" ++Accept-Ranges: bytes ++Content-Length: 6 ++Connection: close ++Location: http://b.com/%TESTNUMBER0002 ++ ++HTTP/1.1 200 OK ++Date: Tue, 09 Nov 2010 14:49:00 GMT ++Server: test-server/fake ++Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT ++ETag: "21025-dc7-39462498" ++Accept-Ranges: bytes ++Content-Length: 7 ++Connection: close ++ ++target ++</datacheck> ++</reply> ++ ++# Client-side ++<client> ++<server> ++http ++</server> ++<features> ++proxy ++</features> ++<name> ++.netrc default with redirect plus oauth2-bearer ++</name> ++<command> ++--netrc --netrc-file %LOGDIR/netrc%TESTNUMBER --oauth2-bearer SECRET_TOKEN -L -x http://%HOSTIP:%HTTPPORT/ http://a.com/ ++</command> ++<file name="%LOGDIR/netrc%TESTNUMBER" > ++default login testuser password testpass ++</file> ++</client> ++ ++<verify> ++<protocol crlf="yes"> ++GET http://a.com/ HTTP/1.1 ++Host: a.com ++Authorization: Bearer SECRET_TOKEN ++User-Agent: curl/%VERSION ++Accept: */* ++Proxy-Connection: Keep-Alive ++ ++GET http://b.com/%TESTNUMBER0002 HTTP/1.1 ++Host: b.com ++User-Agent: curl/%VERSION ++Accept: */* ++Proxy-Connection: Keep-Alive ++ ++</protocol> ++</verify> ++</testcase> +--- a/tests/data/Makefile.inc ++++ b/tests/data/Makefile.inc +@@ -218,7 +218,7 @@ test1916 test1917 test1918 \ + \ + test1933 test1934 test1935 test1936 test1937 test1938 test1939 \ + \ +-test2000 test2001 test2002 test2003 test2004 \ ++test2000 test2001 test2002 test2003 test2004 test2006 \ + \ + test2023 \ + test2024 test2025 test2026 test2027 test2028 test2029 test2030 test2031 \
meta/recipes-support/curl/curl_7.82.0.bb +1 -0
@@ -73,6 +73,7 @@ SRC_URI = "https://curl.se/download/${BP}.tar.xz \ file://CVE-2025-14524.patch \ file://CVE-2026-1965-1.patch \ file://CVE-2026-1965-2.patch \ + file://CVE-2026-3783.patch \ " SRC_URI[sha256sum] = "0aaa12d7bd04b0966254f2703ce80dd5c38dbbd76af0297d3d690cdce58a583c"
Signature · 1 line
2.25.1
PATCH 4/4 curl: Fix CVE-2026-3784
In reply to [email protected]From: Vijay Anusuri <[email protected]>
import patch from ubuntu to fix
CVE-2026-3784
Upstream-Status: Backport [import from ubuntu curl_7.81.0-1ubuntu1.23.debian.tar.xz Upstream commit https://github.com/curl/curl/commit/5f13a7645e565c5c1a06f3]
Reference: https://curl.se/docs/CVE-2026-3784.html
https://ubuntu.com/security/CVE-2026-3784
--- .../curl/curl/CVE-2026-3784.patch | 74 +++++++++++++++++++ meta/recipes-support/curl/curl_7.82.0.bb | 1 + 2 files changed, 75 insertions(+) create mode 100644 meta/recipes-support/curl/curl/CVE-2026-3784.patch
meta/recipes-support/curl/curl/CVE-2026-3784.patch new file +74 -0
@@ -0,0 +1,74 @@ +Backport of: + +From 5f13a7645e565c5c1a06f3ef86e97afb856fb364 Mon Sep 17 00:00:00 2001 +From: Stefan Eissing <[email protected]> +Date: Fri, 6 Mar 2026 14:54:09 +0100 +Subject: [PATCH] proxy-auth: additional tests + +Also eliminate the special handling for socks proxy match. + +Closes #20837 + +Upstream-Status: Backport [import from ubuntu curl_7.81.0-1ubuntu1.23.debian.tar.xz +Upstream commit https://github.com/curl/curl/commit/5f13a7645e565c5c1a06f3] +CVE: CVE-2026-3784 +Signed-off-by: Vijay Anusuri <[email protected]> +--- + lib/url.c | 28 +++++++--------------------- + tests/http/test_13_proxy_auth.py | 20 ++++++++++++++++++++ + tests/http/testenv/curl.py | 18 +++++++++++++++--- + 3 files changed, 42 insertions(+), 24 deletions(-) + +--- a/lib/url.c ++++ b/lib/url.c +@@ -930,33 +930,15 @@ proxy_info_matches(const struct proxy_in + { + if((data->proxytype == needle->proxytype) && + (data->port == needle->port) && +- Curl_safe_strcasecompare(data->host.name, needle->host.name)) +- return TRUE; ++ curl_strequal(data->host.name, needle->host.name)) { + ++ if(Curl_timestrcmp(data->user, needle->user) || ++ Curl_timestrcmp(data->passwd, needle->passwd)) ++ return FALSE; ++ return TRUE; ++ } + return FALSE; + } +- +-static bool +-socks_proxy_info_matches(const struct proxy_info *data, +- const struct proxy_info *needle) +-{ +- if(!proxy_info_matches(data, needle)) +- return FALSE; +- +- /* the user information is case-sensitive +- or at least it is not defined as case-insensitive +- see https://datatracker.ietf.org/doc/html/rfc3986#section-3.2.1 */ +- +- /* curl_strequal does a case insentive comparison, so do not use it here! */ +- if(Curl_timestrcmp(data->user, needle->user) || +- Curl_timestrcmp(data->passwd, needle->passwd)) +- return FALSE; +- return TRUE; +-} +-#else +-/* disabled, won't get called */ +-#define proxy_info_matches(x,y) FALSE +-#define socks_proxy_info_matches(x,y) FALSE + #endif + + /* A connection has to have been idle for a shorter time than 'maxage_conn' +@@ -1282,8 +1264,8 @@ ConnectionExists(struct Curl_easy *data, + continue; + + if(needle->bits.socksproxy && +- !socks_proxy_info_matches(&needle->socks_proxy, +- &check->socks_proxy)) ++ !proxy_info_matches(&needle->socks_proxy, ++ &check->socks_proxy)) + continue; + #endif + if(needle->bits.conn_to_host != check->bits.conn_to_host)
meta/recipes-support/curl/curl_7.82.0.bb +1 -0
@@ -74,6 +74,7 @@ SRC_URI = "https://curl.se/download/${BP}.tar.xz \ file://CVE-2026-1965-1.patch \ file://CVE-2026-1965-2.patch \ file://CVE-2026-3783.patch \ + file://CVE-2026-3784.patch \ " SRC_URI[sha256sum] = "0aaa12d7bd04b0966254f2703ce80dd5c38dbbd76af0297d3d690cdce58a583c"
Signature · 1 line
2.25.1
Re: [OE-core][kirkstone][PATCH 4/4] curl: Fix CVE-2026-3784
Quoted 103 lines · Vijay Anusuri via lists.openembedded.org
From: Vijay Anusuri <[email protected]>
import patch from ubuntu to fix
CVE-2026-3784Upstream-Status: Backport [import from ubuntu curl_7.81.0-1ubuntu1.23.debian.tar.xz Upstream commit https://github.com/curl/curl/commit/5f13a7645e565c5c1a06f3]
Reference: https://curl.se/docs/CVE-2026-3784.html
https://ubuntu.com/security/CVE-2026-3784Signed-off-by Vijay Anusuri <[email protected]>--- .../curl/curl/CVE-2026-3784.patch | 74 +++++++++++++++++++ meta/recipes-support/curl/curl_7.82.0.bb | 1 + 2 files changed, 75 insertions(+) create mode 100644 meta/recipes-support/curl/curl/CVE-2026-3784.patchmeta/recipes-support/curl/curl/CVE-2026-3784.patch new file +74
-0@@ -0,0 +1,74 @@ +Backport of: + +From 5f13a7645e565c5c1a06f3ef86e97afb856fb364 Mon Sep 17 00:00:00 2001 +From: Stefan Eissing <[email protected]> +Date: Fri, 6 Mar 2026 14:54:09 +0100 +Subject: [PATCH] proxy-auth: additional tests + +Also eliminate the special handling for socks proxy match. + +Closes #20837 + +Upstream-Status: Backport [import from ubuntu curl_7.81.0-1ubuntu1.23.debian.tar.xz +Upstream commit https://github.com/curl/curl/commit/5f13a7645e565c5c1a06f3] +CVE: CVE-2026-3784 +Signed-off-by: Vijay Anusuri <[email protected]> +--- + lib/url.c | 28 +++++++--------------------- + tests/http/test_13_proxy_auth.py | 20 ++++++++++++++++++++ + tests/http/testenv/curl.py | 18 +++++++++++++++--- + 3 files changed, 42 insertions(+), 24 deletions(-) + +--- a/lib/url.c ++++ b/lib/url.c +@@ -930,33 +930,15 @@ proxy_info_matches(const struct proxy_in + { + if((data->proxytype == needle->proxytype) && + (data->port == needle->port) && +- Curl_safe_strcasecompare(data->host.name, needle->host.name)) +- return TRUE; ++ curl_strequal(data->host.name, needle->host.name)) { + ++ if(Curl_timestrcmp(data->user, needle->user) || ++ Curl_timestrcmp(data->passwd, needle->passwd)) ++ return FALSE; ++ return TRUE; ++ } + return FALSE; + } +- +-static bool +-socks_proxy_info_matches(const struct proxy_info *data, +- const struct proxy_info *needle) +-{ +- if(!proxy_info_matches(data, needle)) +- return FALSE; +- +- /* the user information is case-sensitive +- or at least it is not defined as case-insensitive +- see https://datatracker.ietf.org/doc/html/rfc3986#section-3.2.1 */ +- +- /* curl_strequal does a case insentive comparison, so do not use it here! */ +- if(Curl_timestrcmp(data->user, needle->user) || +- Curl_timestrcmp(data->passwd, needle->passwd)) +- return FALSE; +- return TRUE; +-} +-#else +-/* disabled, won't get called */ +-#define proxy_info_matches(x,y) FALSE +-#define socks_proxy_info_matches(x,y) FALSE + #endif + + /* A connection has to have been idle for a shorter time than 'maxage_conn' +@@ -1282,8 +1264,8 @@ ConnectionExists(struct Curl_easy *data, + continue; + + if(needle->bits.socksproxy && +- !socks_proxy_info_matches(&needle->socks_proxy, +- &check->socks_proxy)) ++ !proxy_info_matches(&needle->socks_proxy, ++ &check->socks_proxy)) + continue; + #endif + if(needle->bits.conn_to_host != check->bits.conn_to_host)meta/recipes-support/curl/curl_7.82.0.bb +0
-0
meta/recipes-support/curl/curl_7.82.0.bb SRC_URI = "https://curl.se/download/${BP}.tar.xz \ · line 80
Quoted 7 lines
meta/recipes-support/curl/curl_7.82.0.bb +1
-0@@ -74,6 +74,7 @@ SRC_URI = "https://curl.se/download/${BP}.tar.xz \ file://CVE-2026-1965-1.patch \ file://CVE-2026-1965-2.patch \ file://CVE-2026-3783.patch \ + file://CVE-2026-3784.patch \ " SRC_URI[sha256sum] = "0aaa12d7bd04b0966254f2703ce80dd5c38dbbd76af0297d3d690cdce58a583c"
Hi Vijay,
This my general feedback on the whole curl patch series.
I noticed quite big differences between the upstream commits you cited and the ones actually provided in this series. If these backports are from Ubuntu or Debian, please include the direct links to those commits as well.
Additionally, your backport for CVE-2025-14524 ([PATCH 1/4]) differs from the one by Amaury Couderc, which has already been merged into scarthgap. Maybe it would be simplier to cherry-picked it ?
One last detail regarding formatting: the last four patches include a 'Backport of' prefix in the patch header. While not strictly forbidden, this is unusual and adds unnecessary noise.
Could you please remove these headers next time?
Thanks.
Regards,
Signature · 2 lines
Fabien Thomas Smile ECS
Re: [OE-core][kirkstone][PATCH 4/4] curl: Fix CVE-2026-3784
Hi Fabien Thomas,
Thanks for providing the feedback.
Quoted 124 lines · Fabien Thomas
Quoted 6 lines · Vijay Anusuri via lists.openembedded.org
From: Vijay Anusuri <[email protected]>
import patch from ubuntu to fix
CVE-2026-3784Upstream-Status: Backport [import from ubuntu
curl_7.81.0-1ubuntu1.23.debian.tar.xz
Quoted 1 line
Upstream commit
https://github.com/curl/curl/commit/5f13a7645e565c5c1a06f3]
Quoted 4 lines
Reference: https://curl.se/docs/CVE-2026-3784.html
https://ubuntu.com/security/CVE-2026-3784Review
Quoted 8 lines
Signed-off-by Vijay Anusuri <[email protected]>--- .../curl/curl/CVE-2026-3784.patch | 74 +++++++++++++++++++ meta/recipes-support/curl/curl_7.82.0.bb | 1 + 2 files changed, 75 insertions(+) create mode 100644 meta/recipes-support/curl/curl/CVE-2026-3784.patch(quoted diff) +0
-0
b/meta/recipes-support/curl/curl/CVE-2026-3784.patchQuoted 7 lines
new file mode 100644
index 0000000000..8f3d56bab9meta/recipes-support/curl/curl/CVE-2026-3784.patch new file +2
-0@@ -0,0 +1,74 @@ +Backport of: +meta/recipes-support/curl/curl/CVE-2026-3784.patch line 12
Quoted 10 lines
meta/recipes-support/curl/curl/CVE-2026-3784.patch new file +10
-0+From 5f13a7645e565c5c1a06f3ef86e97afb856fb364 Mon Sep 17 00:00:00 2001 +From: Stefan Eissing <[email protected]> +Date: Fri, 6 Mar 2026 14:54:09 +0100 +Subject: [PATCH] proxy-auth: additional tests + +Also eliminate the special handling for socks proxy match. + +Closes #20837 + +Upstream-Status: Backport [import from ubuntucurl_7.81.0-1ubuntu1.23.debian.tar.xz
meta/recipes-support/curl/curl/CVE-2026-3784.patch line 13
Quoted 1 line
meta/recipes-support/curl/curl/CVE-2026-3784.patch new file +1
-0+Upstream commitQuoted 26 lines
meta/recipes-support/curl/curl/CVE-2026-3784.patch new file +26
-0+CVE: CVE-2026-3784 +Signed-off-by: Vijay Anusuri <[email protected]> +--- + lib/url.c | 28 +++++++--------------------- + tests/http/test_13_proxy_auth.py | 20 ++++++++++++++++++++ + tests/http/testenv/curl.py | 18 +++++++++++++++--- + 3 files changed, 42 insertions(+), 24 deletions(-) + +--- a/lib/url.c ++++ b/lib/url.c +@@ -930,33 +930,15 @@ proxy_info_matches(const struct proxy_in + { + if((data->proxytype == needle->proxytype) && + (data->port == needle->port) && +- Curl_safe_strcasecompare(data->host.name, needle->host.name)) +- return TRUE; ++ curl_strequal(data->host.name, needle->host.name)) { + ++ if(Curl_timestrcmp(data->user, needle->user) || ++ Curl_timestrcmp(data->passwd, needle->passwd)) ++ return FALSE; ++ return TRUE; ++ } + return FALSE; + } +-meta/recipes-support/curl/curl/CVE-2026-3784.patch
Quoted 10 lines
meta/recipes-support/curl/curl/CVE-2026-3784.patch new file +10
-0+-static bool +-socks_proxy_info_matches(const struct proxy_info *data, +- const struct proxy_info *needle) +-{ +- if(!proxy_info_matches(data, needle)) +- return FALSE; +- +- /* the user information is case-sensitive +- or at least it is not defined as case-insensitive +- see https://datatracker.ietf.org/doc/html/rfc3986#section-3.2.1*/
meta/recipes-support/curl/curl/CVE-2026-3784.patch line 51
Quoted 2 lines
meta/recipes-support/curl/curl/CVE-2026-3784.patch new file +2
-0+- +- /* curl_strequal does a case insentive comparison, so do not use ithere! */
meta/recipes-support/curl/curl/CVE-2026-3784.patch
Quoted 12 lines
meta/recipes-support/curl/curl/CVE-2026-3784.patch new file +12
-0+- if(Curl_timestrcmp(data->user, needle->user) || +- Curl_timestrcmp(data->passwd, needle->passwd)) +- return FALSE; +- return TRUE; +-} +-#else +-/* disabled, won't get called */ +-#define proxy_info_matches(x,y) FALSE +-#define socks_proxy_info_matches(x,y) FALSE + #endif + + /* A connection has to have been idle for a shorter time than'
maxage_conn'Review
Quoted 12 lines
meta/recipes-support/curl/curl/CVE-2026-3784.patch new file +11
-0+@@ -1282,8 +1264,8 @@ ConnectionExists(struct Curl_easy *data, + continue; + + if(needle->bits.socksproxy && +- !socks_proxy_info_matches(&needle->socks_proxy, +- &check->socks_proxy)) ++ !proxy_info_matches(&needle->socks_proxy, ++ &check->socks_proxy)) + continue; + #endif + if(needle->bits.conn_to_host != check->bits.conn_to_host)(quoted diff) +0
-0b/meta/recipes-support/curl/curl_7.82.0.bb
meta/recipes-support/curl/curl_7.82.0.bb SRC_URI = "https://curl.se/download/${BP}.tar.xz \ · line 79
Quoted 10 lines
index
8fdd954c7e..c33183e096100644meta/recipes-support/curl/curl_7.82.0.bb +1
-0@@ -74,6 +74,7 @@ SRC_URI = "https://curl.se/download/${BP}.tar.xz \ file://CVE-2026-1965-1.patch \ file://CVE-2026-1965-2.patch \ file://CVE-2026-3783.patch \ + file://CVE-2026-3784.patch \ " SRC_URI[sha256sum] ="
0aaa12d7bd04b0966254f2703ce80dd5c38dbbd76af0297d3d690cdce58a583c"Quoted 1 line
Hi Vijay,
Quoted 8 lines
This my general feedback on the whole curl patch series.
I noticed quite big differences between the upstream commits you cited and the
ones actually provided in this series. If these backports are from Ubuntu or Debian, please include the direct links to those commits as well.--> The previous Ubuntu commit link (
https://git.launchpad.net/ubuntu/+source/curl/tree/debian/patches?h=ubuntu/jammy-security)
is currently not accessible.
I’ve referenced the tarball version instead:
https://launchpad.net/ubuntu/+archive/primary/+sourcefiles/curl/7.81.0-1ubuntu1.23/curl_7.81.0-1ubuntu1.23.debian.tar.xz
Would it be okay if I include this download link in the patch?
Quoted 5 lines
Additionally, your backport for CVE-2025-14524 ([PATCH 1/4]) differs from the one by Amaury Couderc, which has already been merged into scarthgap.
Maybe it would be simplier to cherry-picked it ?
--> Version in kirkstone is different from scarthgap. I will try to cherry-pick and send a V2 patch.
Quoted 6 lines
One last detail regarding formatting: the last four patches include a 'Backport of' prefix in the patch header. While not strictly forbidden, this is unusual and adds unnecessary noise.
Could you please remove these headers next time?
--> Sure. I will remove those unusual headers.
Quoted 9 lines
Thanks.
Regards,
--
Fabien Thomas
Smile ECS
Thanks & Regards,
Vijay
Re: [OE-core][kirkstone][PATCH 4/4] curl: Fix CVE-2026-3784
Quoted 138 lines · Vijay Anusuri via lists.openembedded.org
Hi Fabien Thomas,
Thanks for providing the feedback.
Quoted 131 lines · Fabien Thomas
Quoted 6 lines · Vijay Anusuri via lists.openembedded.org
From: Vijay Anusuri <[email protected]>
import patch from ubuntu to fix
CVE-2026-3784Upstream-Status: Backport [import from ubuntu
curl_7.81.0-1ubuntu1.23.debian.tar.xz
Quoted 1 line
Upstream commit
https://github.com/curl/curl/commit/5f13a7645e565c5c1a06f3]
Quoted 4 lines
Reference: https://curl.se/docs/CVE-2026-3784.html
https://ubuntu.com/security/CVE-2026-3784Review
Quoted 8 lines
Signed-off-by Vijay Anusuri <[email protected]>--- .../curl/curl/CVE-2026-3784.patch | 74 +++++++++++++++++++ meta/recipes-support/curl/curl_7.82.0.bb | 1 + 2 files changed, 75 insertions(+) create mode 100644 meta/recipes-support/curl/curl/CVE-2026-3784.patch(quoted diff) +0
-0
b/meta/recipes-support/curl/curl/CVE-2026-3784.patchQuoted 7 lines
new file mode 100644
index 0000000000..8f3d56bab9meta/recipes-support/curl/curl/CVE-2026-3784.patch new file +2
-0@@ -0,0 +1,74 @@ +Backport of: +meta/recipes-support/curl/curl/CVE-2026-3784.patch line 12
Quoted 10 lines
meta/recipes-support/curl/curl/CVE-2026-3784.patch new file +10
-0+From 5f13a7645e565c5c1a06f3ef86e97afb856fb364 Mon Sep 17 00:00:00 2001 +From: Stefan Eissing <[email protected]> +Date: Fri, 6 Mar 2026 14:54:09 +0100 +Subject: [PATCH] proxy-auth: additional tests + +Also eliminate the special handling for socks proxy match. + +Closes #20837 + +Upstream-Status: Backport [import from ubuntucurl_7.81.0-1ubuntu1.23.debian.tar.xz
meta/recipes-support/curl/curl/CVE-2026-3784.patch line 13
Quoted 1 line
meta/recipes-support/curl/curl/CVE-2026-3784.patch new file +1
-0+Upstream commitQuoted 26 lines
meta/recipes-support/curl/curl/CVE-2026-3784.patch new file +26
-0+CVE: CVE-2026-3784 +Signed-off-by: Vijay Anusuri <[email protected]> +--- + lib/url.c | 28 +++++++--------------------- + tests/http/test_13_proxy_auth.py | 20 ++++++++++++++++++++ + tests/http/testenv/curl.py | 18 +++++++++++++++--- + 3 files changed, 42 insertions(+), 24 deletions(-) + +--- a/lib/url.c ++++ b/lib/url.c +@@ -930,33 +930,15 @@ proxy_info_matches(const struct proxy_in + { + if((data->proxytype == needle->proxytype) && + (data->port == needle->port) && +- Curl_safe_strcasecompare(data->host.name, needle->host.name)) +- return TRUE; ++ curl_strequal(data->host.name, needle->host.name)) { + ++ if(Curl_timestrcmp(data->user, needle->user) || ++ Curl_timestrcmp(data->passwd, needle->passwd)) ++ return FALSE; ++ return TRUE; ++ } + return FALSE; + } +-meta/recipes-support/curl/curl/CVE-2026-3784.patch
Quoted 10 lines
meta/recipes-support/curl/curl/CVE-2026-3784.patch new file +10
-0+-static bool +-socks_proxy_info_matches(const struct proxy_info *data, +- const struct proxy_info *needle) +-{ +- if(!proxy_info_matches(data, needle)) +- return FALSE; +- +- /* the user information is case-sensitive +- or at least it is not defined as case-insensitive +- see https://datatracker.ietf.org/doc/html/rfc3986#section-3.2.1*/
meta/recipes-support/curl/curl/CVE-2026-3784.patch line 51
Quoted 2 lines
meta/recipes-support/curl/curl/CVE-2026-3784.patch new file +2
-0+- +- /* curl_strequal does a case insentive comparison, so do not use ithere! */
meta/recipes-support/curl/curl/CVE-2026-3784.patch
Quoted 12 lines
meta/recipes-support/curl/curl/CVE-2026-3784.patch new file +12
-0+- if(Curl_timestrcmp(data->user, needle->user) || +- Curl_timestrcmp(data->passwd, needle->passwd)) +- return FALSE; +- return TRUE; +-} +-#else +-/* disabled, won't get called */ +-#define proxy_info_matches(x,y) FALSE +-#define socks_proxy_info_matches(x,y) FALSE + #endif + + /* A connection has to have been idle for a shorter time than'
maxage_conn'Review
Quoted 12 lines
meta/recipes-support/curl/curl/CVE-2026-3784.patch new file +11
-0+@@ -1282,8 +1264,8 @@ ConnectionExists(struct Curl_easy *data, + continue; + + if(needle->bits.socksproxy && +- !socks_proxy_info_matches(&needle->socks_proxy, +- &check->socks_proxy)) ++ !proxy_info_matches(&needle->socks_proxy, ++ &check->socks_proxy)) + continue; + #endif + if(needle->bits.conn_to_host != check->bits.conn_to_host)(quoted diff) +0
-0b/meta/recipes-support/curl/curl_7.82.0.bb
meta/recipes-support/curl/curl_7.82.0.bb SRC_URI = "https://curl.se/download/${BP}.tar.xz \ · line 79
Quoted 10 lines
index
8fdd954c7e..c33183e096100644meta/recipes-support/curl/curl_7.82.0.bb +1
-0@@ -74,6 +74,7 @@ SRC_URI = "https://curl.se/download/${BP}.tar.xz \ file://CVE-2026-1965-1.patch \ file://CVE-2026-1965-2.patch \ file://CVE-2026-3783.patch \ + file://CVE-2026-3784.patch \ " SRC_URI[sha256sum] ="
0aaa12d7bd04b0966254f2703ce80dd5c38dbbd76af0297d3d690cdce58a583c"Quoted 1 line
Hi Vijay,
This my general feedback on the whole curl patch series.
I noticed quite big differences between the upstream commits you cited and the
ones actually provided in this series. If these backports are from Ubuntu or Debian, please include the direct links to those commits as well.
Quoted 8 lines
Quoted 1 line
--> The previous Ubuntu commit link (
https://git.launchpad.net/ubuntu/+source/curl/tree/debian/patches?h=ubuntu/jammy-security)
is currently not accessible.I’ve referenced the tarball version instead:
https://launchpad.net/ubuntu/+archive/primary/+sourcefiles/curl/7.81.0-1ubuntu1.23/curl_7.81.0-1ubuntu1.23.debian.tar.xzWould it be okay if I include this download link in the patch?
How about:
Quoted 2 lines
Upstream-Status: Backport [https://github.com/curl/curl/commit/5f13a7645e565c5c1a06f3ef86e97afb856fb364]
Backported by Ubuntu team https://launchpad.net/ubuntu/+archive/primary/+sourcefiles/curl/7.81.0-1ubuntu1.23/curl_7.81.0-1ubuntu1.23.debian.tar.xz
This way, we have traceability from upstream and we know where the patch comes from.
But beware, Ubuntu might have earlier patches that we do not have. I will review differences between this patch and upstream patch. So, any needed context will be appreciated.
Thanks!
Quoted 29 lines
Quoted 5 lines
Additionally, your backport for CVE-2025-14524 ([PATCH 1/4]) differs from the one by Amaury Couderc, which has already been merged into scarthgap.
Maybe it would be simplier to cherry-picked it ?--> Version in kirkstone is different from scarthgap. I will try to cherry-pick and send a V2 patch.
Quoted 6 lines
One last detail regarding formatting: the last four patches include a 'Backport of' prefix in the patch header. While not strictly forbidden, this is unusual and adds unnecessary noise.
Could you please remove these headers next time?--> Sure. I will remove those unusual headers.
Quoted 9 lines
Thanks.
Regards,
--
Fabien Thomas
Smile ECSThanks & Regards,
Vijay
Signature · 2 lines
Yoann Congal Smile ECS