From patchwork Thu Dec 3 11:12:45 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hitendra Prajapati X-Patchwork-Id: 107191 Received: from mail-dy1-f179.google.com (mail-dy1-f179.google.com [74.125.82.179]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.11767.1796296376824723654 for ; Thu, 03 Dec 2026 03:12:56 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@mvista.com header.s=google header.b=Tsqknt6y; spf=pass (domain: mvista.com, ip: 74.125.82.179, mailfrom: hprajapati@mvista.com) Received: by mail-dy1-f179.google.com with SMTP id 5a478bee46e88-3863db981d4so19347398eec.0 for ; Thu, 03 Dec 2026 03:12:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mvista.com; s=google; t=1796296376; x=1796901176; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to:content-type; bh=fYI2Woq1hPJfO2FO4KjGwGI1NZLlXMCJ/qvfX9ol8Q4=; b=Tsqknt6yfKiRAOCkh4dZRToRhcZ3VLjL/oPnSDp4u+INsrJPkdvQy4irVqTOZPfC/T ugKw/3ZN8Fz0ukba3HhMw3tsW0VgHZ4DBVz97gSZkWzx1+i0ENT7K3ChgUvBW/eGpwRy 09sO+u4zrdtvvJ9Zy9gCVtUNmsVDzCWoSbAuk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796296376; x=1796901176; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=fYI2Woq1hPJfO2FO4KjGwGI1NZLlXMCJ/qvfX9ol8Q4=; b=RO13o03x2RSWMz5FWN64khrYYqjJPZ+9+XyiLDDknYLcwfOx1BQMCq1w4BOveKP2zD 2QXie5h96RACIBm3Y8Gsisy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:b0:386:d917:8d8a with SMTP id 5a478bee46e88-386d91794ecmr23942094eec.27.1796296375822; Thu, 03 Dec 2026 03:12:55 -0800 (PST) Return-Path: Received: from MVIN00013.mvista.com ([103.250.136.170]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-38747a7067asm6226938eec.12.2026.12.03.03.12.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Dec 2026 03:12:55 -0800 (PST) From: Hitendra Prajapati To: openembedded-core@lists.openembedded.org Cc: Hitendra Prajapati Subject: [scarthgap][PATCHv2] curl: fix for CVE-2026-8458 Date: Thu, 3 Dec 2026 16:42:45 +0530 Message-ID: <20261203111245.26313-1-hprajapati@mvista.com> X-Mailer: git-send-email 2.50.1 MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Thu, 03 Dec 2026 11:13:06 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/251884 Pick the patch from [1], also referenced in the Redhat report [3] and Redhat fix for curl-7.76.1-44.el9_9.1.src.rpm shown in [4]. [1] https://github.com/curl/curl/commit/5e99b73cf441d9c369768b9cd48b5389b9a2503d [2] https://security-tracker.debian.org/tracker/CVE-2026-8458 [3] https://access.redhat.com/security/cve/cve-2026-8458 [4] https://access.redhat.com/errata/RHSA-2026:100686 Remove CVE_STATUS for this CVE. Signed-off-by: Hitendra Prajapati --- .../curl/curl/CVE-2026-8458.patch | 118 ++++++++++++++++++ meta/recipes-support/curl/curl_8.7.1.bb | 2 +- 2 files changed, 119 insertions(+), 1 deletion(-) create mode 100644 meta/recipes-support/curl/curl/CVE-2026-8458.patch diff --git a/meta/recipes-support/curl/curl/CVE-2026-8458.patch b/meta/recipes-support/curl/curl/CVE-2026-8458.patch new file mode 100644 index 0000000000..97e07431bf --- /dev/null +++ b/meta/recipes-support/curl/curl/CVE-2026-8458.patch @@ -0,0 +1,118 @@ +From ebefa482235931dd30fb27ee1398572b2a2caf0e Mon Sep 17 00:00:00 2001 +From: RHEL Packaging Agent +Date: Wed, 29 Jul 2026 11:59:24 +0000 +Subject: [PATCH] creds: add sasl service name + +The SASL service name, used in authentication, is part of curl's credentials +when authenticating to a server/proxy. Store it on the connection and compare +it during connection reuse to prevent connections authenticated with one +service name from being reused when a different service name is requested. + +Adapted from upstream commit 5e99b73cf441d9c369768b9cd48b5389b9a2503d for +curl 7.76.1. + +Closes #21585 + +CVE: CVE-2026-8458 +Upstream-Status: Backport [https://github.com/curl/curl/commit/5e99b73cf441d9c369768b9cd48b5389b9a2503d] +Signed-off-by: Hitendra Prajapati +--- + lib/url.c | 31 ++++++++++++++++++++++++++++--- + lib/urldata.h | 4 ++++ + 2 files changed, 32 insertions(+), 3 deletions(-) + +diff --git a/lib/url.c b/lib/url.c +index 9e1ca03..acc508c 100644 +--- a/lib/url.c ++++ b/lib/url.c +@@ -589,6 +589,10 @@ static void conn_free(struct Curl_easy *data, struct connectdata *conn) + Curl_safefree(conn->sasl_authzid); + Curl_safefree(conn->options); + Curl_safefree(conn->oauth_bearer); ++ Curl_safefree(conn->sasl_service); ++#ifndef CURL_DISABLE_PROXY ++ Curl_safefree(conn->proxy_sasl_service); ++#endif + Curl_safefree(conn->host.rawalloc); /* host name buffer */ + Curl_safefree(conn->conn_to_host.rawalloc); /* host name buffer */ + Curl_safefree(conn->hostname_resolve); +@@ -1139,7 +1143,8 @@ ConnectionExists(struct Curl_easy *data, + if(Curl_timestrcmp(needle->user, check->user) || + Curl_timestrcmp(needle->passwd, check->passwd) || + Curl_timestrcmp(needle->sasl_authzid, check->sasl_authzid) || +- Curl_timestrcmp(needle->oauth_bearer, check->oauth_bearer)) { ++ Curl_timestrcmp(needle->oauth_bearer, check->oauth_bearer) || ++ Curl_timestrcmp(needle->sasl_service, check->sasl_service)) { + /* one of them was different */ + continue; + } +@@ -1222,7 +1227,8 @@ ConnectionExists(struct Curl_easy *data, + partway through a handshake!) */ + if(wantNTLMhttp) { + if(Curl_timestrcmp(needle->user, check->user) || +- Curl_timestrcmp(needle->passwd, check->passwd)) { ++ Curl_timestrcmp(needle->passwd, check->passwd) || ++ Curl_timestrcmp(needle->sasl_service, check->sasl_service)) { + + /* we prefer a credential match, but this is at least a connection + that can be reused and "upgraded" to NTLM if it does +@@ -1253,7 +1259,9 @@ ConnectionExists(struct Curl_easy *data, + if(Curl_timestrcmp(needle->http_proxy.user, + check->http_proxy.user) || + Curl_timestrcmp(needle->http_proxy.passwd, +- check->http_proxy.passwd)) ++ check->http_proxy.passwd) || ++ Curl_timestrcmp(needle->proxy_sasl_service, ++ check->proxy_sasl_service)) + continue; + } + else if(check->proxy_ntlm_state != NTLMSTATE_NONE) { +@@ -2455,6 +2463,15 @@ static CURLcode create_conn_helper_init_proxy(struct Curl_easy *data, + goto out; + } + ++ if(data->set.str[STRING_PROXY_SERVICE_NAME]) { ++ conn->proxy_sasl_service = ++ strdup(data->set.str[STRING_PROXY_SERVICE_NAME]); ++ if(!conn->proxy_sasl_service) { ++ result = CURLE_OUT_OF_MEMORY; ++ goto out; ++ } ++ } ++ + /************************************************************* + * Detect what (if any) proxy to use + *************************************************************/ +@@ -3533,6 +3550,14 @@ static CURLcode create_conn(struct Curl_easy *data, + } + } + ++ if(data->set.str[STRING_SERVICE_NAME]) { ++ conn->sasl_service = strdup(data->set.str[STRING_SERVICE_NAME]); ++ if(!conn->sasl_service) { ++ result = CURLE_OUT_OF_MEMORY; ++ goto out; ++ } ++ } ++ + #ifdef USE_UNIX_SOCKETS + if(data->set.str[STRING_UNIX_SOCKET_PATH]) { + conn->unix_domain_socket = strdup(data->set.str[STRING_UNIX_SOCKET_PATH]); +diff --git a/lib/urldata.h b/lib/urldata.h +index 4fc595a..e4293a2 100644 +--- a/lib/urldata.h ++++ b/lib/urldata.h +@@ -840,6 +840,10 @@ struct connectdata { + char *options; /* options string, allocated */ + char *sasl_authzid; /* authorization identity string, allocated */ + char *oauth_bearer; /* OAUTH2 bearer, allocated */ ++ char *sasl_service; /* SASL service name, allocated */ ++#ifndef CURL_DISABLE_PROXY ++ char *proxy_sasl_service; /* proxy SASL service name, allocated */ ++#endif + struct curltime now; /* "current" time */ + struct curltime created; /* creation time */ + struct curltime lastused; /* when returned to the connection cache */ +-- +2.50.1 + diff --git a/meta/recipes-support/curl/curl_8.7.1.bb b/meta/recipes-support/curl/curl_8.7.1.bb index 4f6ffbbed5..c99dde2fd5 100644 --- a/meta/recipes-support/curl/curl_8.7.1.bb +++ b/meta/recipes-support/curl/curl_8.7.1.bb @@ -50,6 +50,7 @@ SRC_URI = "https://curl.se/download/${BP}.tar.xz \ file://CVE-2026-92388-2.patch \ file://CVE-2026-87864.patch \ file://CVE-2026-7168.patch \ + file://CVE-2026-8458.patch \ " SRC_URI:append:class-nativesdk = " \ @@ -67,7 +68,6 @@ CVE_STATUS[CVE-2025-5025] = "${@bb.utils.contains('PACKAGECONFIG', 'openssl', 'n CVE_STATUS[CVE-2025-10966] = "${@bb.utils.contains('PACKAGECONFIG', 'openssl', 'not-applicable-config: applicable only with wolfssl','unpatched',d)}" CVE_STATUS[CVE-2026-8924] = "not-applicable-config: public suffix list support is disabled by the recipe with --without-libpsl" CVE_STATUS[CVE-2026-10536] = "${@bb.utils.contains('PACKAGECONFIG', 'nghttp2', 'unpatched', 'not-applicable-config: applicable only with HTTP/2', d)}" -CVE_STATUS[CVE-2026-8458] = "${@bb.utils.contains('PACKAGECONFIG', 'krb5 negotiate-auth', 'unpatched', 'not-applicable-config: applicable only with GSS-API-backed Negotiate authentication', d)}" CVE_STATUS[CVE-2026-9547] = "not-applicable-config: vulnerable libssh backend is not enabled by the recipe" CVE_STATUS[CVE-2026-82209] = "not-applicable-config: public suffix list support is disabled by the recipe with --without-libpsl" CVE_STATUS[CVE-2026-12064] = "${@bb.utils.contains('PACKAGECONFIG', 'libssh2', 'unpatched', 'not-applicable-config: SCP/SFTP support is not enabled in PACKAGECONFIG', d)}"