From patchwork Fri Nov 20 17:21:24 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Jo=C3=A3o_Marcos_Costa_=28Schneider_Electric=29?= X-Patchwork-Id: 105109 Received: from smtpout-03.galae.net (smtpout-03.galae.net [185.246.85.4]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.527.1795195313704880508 for ; Fri, 20 Nov 2026 09:21:54 -0800 Authentication-Results: mx.groups.io; dkim=fail reason="dkim: body hash did not verify" header.i=@bootlin.com header.s=dkim header.b=w5v+2LD9; spf=pass (domain: bootlin.com, ip: 185.246.85.4, mailfrom: joaomarcos.costa@bootlin.com) Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-03.galae.net (Postfix) with ESMTPS id 103514E4168A for ; Fri, 20 Nov 2026 17:21:52 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id DB132601B9; Fri, 20 Nov 2026 17:21:51 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id DFF7711BC0581; Fri, 20 Nov 2026 18:21:46 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1795195307; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=s2BsdC53q95B8chYcN8nrivJtbamciqGNDKbsIRDhn4=; b=w5v+2LD9JrAU6gz9aIVvd1XQJY1WdZscVXAIrrgQOrZG3r/mGQ8eAJ0GxDyvSUl6jbDWl7 C8IUDtvvLJ/apyv5BfKR42BHuVMRnvsnGfJeVMHOO8vhlfA6JXh9rEKeEZFJcuhxmqPmCW Hn19UCFbl8kLLVoJrfP4Y9n18WKxRolvPNtuEuvL+7cWTnardbQMDw5eu04UBA34vVvJNq 4GPGJ+EzCNPBDvuIpXNRbx5mvQfQUU3KcdH4sYcC2fBboRG63G7HxuHD7FrDCgVr5P0lLA H+IrgPPR+jSOSQjIiAwQKotkIh2D5k9JhyYszrL1nHbR6kUMF3Ifw+p/xQYmpQ== From: =?utf-8?q?Jo=C3=A3o_Marcos_Costa_=28Schneider_Electric=29?= To: openembedded-core@lists.openembedded.org Cc: thomas.petazzoni@bootlin.com, yoann.congal@smile.fr, bastien.jauny@smile.fr, =?utf-8?q?Jo=C3=A3o_Marcos_Costa_=28Schneider_Elect?= =?utf-8?q?ric=29?= Subject: [blacksail][PATCH 2/4] curl: fix CVE-2026-92386 Date: Fri, 20 Nov 2026 18:21:24 +0100 Message-ID: <20261120172126.3187901-3-joaomarcos.costa@bootlin.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261120172126.3187901-1-joaomarcos.costa@bootlin.com> References: <20261120172126.3187901-1-joaomarcos.costa@bootlin.com> MIME-Version: 1.0 X-Last-TLS-Session-Version: TLSv1.3 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 ; Fri, 20 Nov 2026 17:22:02 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/250821 This vulnerability, marked as High [1], was fixed upstream [2] since v8.23.0. Backport the fix to curl v8.22.0. [1] https://nvd.nist.gov/vuln/detail/cve-2026-92386 [2] https://curl.se/docs/CVE-2026-92386.html Signed-off-by: João Marcos Costa (Schneider Electric) --- .../curl/curl/CVE-2026-92386.patch | 33 +++++++++++++++++++ meta/recipes-support/curl/curl_8.22.0.bb | 1 + 2 files changed, 34 insertions(+) create mode 100644 meta/recipes-support/curl/curl/CVE-2026-92386.patch diff --git a/meta/recipes-support/curl/curl/CVE-2026-92386.patch b/meta/recipes-support/curl/curl/CVE-2026-92386.patch new file mode 100644 index 0000000000..3e8f249b69 --- /dev/null +++ b/meta/recipes-support/curl/curl/CVE-2026-92386.patch @@ -0,0 +1,33 @@ +From 58eac7dbcf37290774f48b3464266dcc080fd700 Mon Sep 17 00:00:00 2001 +From: Daniel Stenberg +Date: Wed, 16 Sep 2026 11:09:18 +0200 +Subject: [PATCH] cookie: accept slightly longer lines in cookie jars +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Closes #22964 + +CVE: CVE-2026-92386 +Upstream-Status: Backport [https://github.com/curl/curl/commit/445aa87e13f91c94bc742f54343a2eac924e1765] + +Signed-off-by: João Marcos Costa +--- + lib/cookie.c | 4 +++- + 1 file changed, 3 insertions(+), 1 deletion(-) + +diff --git a/lib/cookie.c b/lib/cookie.c +index 3255668ec7..12aae672dc 100644 +--- a/lib/cookie.c ++++ b/lib/cookie.c +@@ -1181,7 +1181,9 @@ static CURLcode cookie_load(struct Curl_easy *data, const char *file, + if(fp) { + struct dynbuf buf; + bool eof = FALSE; +- curlx_dyn_init(&buf, MAX_COOKIE_LINE); ++ /* accept a little longer lines so that a full cookie fits and does not ++ abort the file read */ ++ curlx_dyn_init(&buf, MAX_COOKIE_LINE + 48); + do { + result = Curl_get_line(&buf, fp, &eof); + if(!result) { diff --git a/meta/recipes-support/curl/curl_8.22.0.bb b/meta/recipes-support/curl/curl_8.22.0.bb index 979e416249..4c6a088e62 100644 --- a/meta/recipes-support/curl/curl_8.22.0.bb +++ b/meta/recipes-support/curl/curl_8.22.0.bb @@ -18,6 +18,7 @@ SRC_URI = " \ file://CVE-2026-92388-2.patch \ file://CVE-2026-92389.patch \ file://CVE-2026-87865.patch \ + file://CVE-2026-92386.patch \ " SRC_URI:append:class-nativesdk = " \