From mboxrd@z Thu Jan 1 00:00:00 1970 Subject: Re: [wrynose][PATCH 06/12] curl: fix CVE-2026-92386 To: openembedded-core@lists.openembedded.org From: "Darsh Kelaiya -X (dkelaiya - E INFOCHIPS PRIVATE LIMITED at Cisco)" X-Originating-Location: Mumbai, Maharashtra, IN (151.186.177.21) X-Originating-Platform: Windows Edge 158 User-Agent: GROUPS.IO Web Poster MIME-Version: 1.0 Date: Tue, 24 Nov 2026 09:29:14 -0800 References: <20261104073627.302002-1-dkelaiya@cisco.com> <20261104073627.302002-7-dkelaiya@cisco.com> In-Reply-To: Message-ID: <1257714.1795541354740666673@lists.openembedded.org> Content-Type: multipart/alternative; boundary="3YsSQSVzuazphQlltWHH" 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 ; Tue, 24 Nov 2026 17:29:24 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/251067 --3YsSQSVzuazphQlltWHH Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hi Yoann, Thanks for the review. I will send a regression follow-up on top of Joao's patch as soon as possible for Blacksail. Regards, Darsh On Mon, Nov 23, 2026 at 10:33 PM, Yoann Congal wrote: >=20 > On Wed Nov 4, 2026 at 8:36 AM CET, Darsh Kelaiya -X (dkelaiya - E > INFOCHIPS PRIVATE LIMITED at Cisco) via openembedded-core wrote: >=20 >> From: Darsh Kelaiya >>=20 >> This patch applies the upstream fix as referenced in [2], >> using the commit shown in [1]. >>=20 >> Include the upstream correction [3] to accept every cookie-jar record >> that curl can serialize. The original MAX_COOKIE_LINE + 48 allowance >> is too small for long paths and domains. Keep both commits in separate >> patches and include the test1902/lib1902.c regression coverage. >>=20 >> [1] https://github.com/curl/curl/commit/445aa87e13f91c94bc742f54343a2eac= 924e1765 >>=20 >> [2] https://curl.se/docs/CVE-2026-92386.html >> [3] https://github.com/curl/curl/commit/7d64440abba37e3d8039fe663d3edc84= f582ce92 >>=20 >>=20 >> Signed-off-by: Darsh Kelaiya >> --- >> .../curl/curl/CVE-2026-92386_p1.patch | 33 ++++ >> .../curl/curl/CVE-2026-92386_p2.patch | 146 ++++++++++++++++++ >> meta/recipes-support/curl/curl_8.19.0.bb | 2 + >> 3 files changed, 181 insertions(+) >> create mode 100644 meta/recipes-support/curl/curl/CVE-2026-92386_p1.patc= h >> create mode 100644 meta/recipes-support/curl/curl/CVE-2026-92386_p2.patc= h >>=20 >> diff --git a/meta/recipes-support/curl/curl/CVE-2026-92386_p2.patch >> b/meta/recipes-support/curl/curl/CVE-2026-92386_p2.patch >> new file mode 100644 >> index 00000000000..4228387ae63 >> --- /dev/null >> +++ b/meta/recipes-support/curl/curl/CVE-2026-92386_p2.patch >> @@ -0,0 +1,146 @@ >> +From 7d64440abba37e3d8039fe663d3edc84f582ce92 Mon Sep 17 00:00:00 2001 >> +From: Zheng Yu >> +Date: Wed, 14 Oct 2026 18:13:59 -0700 >> +Subject: [PATCH] cookie: reload complete self-generated cookie jar rows >> + >> +Closes #23407 >> + >> +CVE: CVE-2026-92386 >> +Upstream-Status: Backport [ https://github.com/curl/curl/commit/7d64440= abba37e3d8039fe663d3edc84f582ce92 >> ] >> + >> +Backport Changes: >> +- Match the two spaces before URL in the deleted CURLOPT_COOKIEJAR >> + line in lib1902.c; upstream's deleted line uses one space. >> + >> +(cherry picked from commit 7d64440abba37e3d8039fe663d3edc84f582ce92) >> +Signed-off-by: Darsh Kelaiya >> +--- >> + lib/cookie.c | 9 ++++++--- >> + tests/data/test1902 | 5 ++++- >> + tests/libtest/lib1902.c | 39 ++++++++++++++++++++++++++++++++++----- >> + 3 files changed, 44 insertions(+), 9 deletions(-) >=20 > Hello, >=20 > That _p2 looks indeed like a regression fix, it needs to be submitted to > blacksail. >=20 > Regards, > -- > Yoann Congal > Smile ECS --3YsSQSVzuazphQlltWHH Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable
Hi Yoann,

Thanks for the review. I will send a regression f= ollow-up on top
of Joao's patch as soon as possible for Blacksail.

Regards,=
Darsh
 
On Mon, Nov 23, 2026 at 10:33 PM, Yoann Congal wrote:
On Wed Nov 4, 2026 at 8:36 AM CET, Darsh Kelaiya -X (dkelaiya -= E INFOCHIPS PRIVATE LIMITED at Cisco) via openembedded-core wrote:
From: Darsh Kelaiya <dkelaiya@cisco.com>

This = patch applies the upstream fix as referenced in [2],
using the commit = shown in [1].

Include the upstream correction [3] to accept ever= y cookie-jar record
that curl can serialize. The original MAX_COOKIE_L= INE + 48 allowance
is too small for long paths and domains. Keep both = commits in separate
patches and include the test1902/lib1902.c regress= ion coverage.

[1] https://github.com/curl/curl/commit/445aa87e13f91c94bc742f54343a2eac924e= 1765
[2] https://curl.se/docs/CVE-2026-92386.html=
[3] https://github.c= om/curl/curl/commit/7d64440abba37e3d8039fe663d3edc84f582ce92

Signed-off-by: Darsh Kelaiya <dkelaiya@cisco.com>
---
.../= curl/curl/CVE-2026-92386_p1.patch | 33 ++++
.../curl/curl/CVE-2026-923= 86_p2.patch | 146 ++++++++++++++++++
meta/recipes-support/curl/curl_8.= 19.0.bb | 2 +
3 files changed, 181 insertions(+)
create mode 1006= 44 meta/recipes-support/curl/curl/CVE-2026-92386_p1.patch
create mode = 100644 meta/recipes-support/curl/curl/CVE-2026-92386_p2.patch

di= ff --git a/meta/recipes-support/curl/curl/CVE-2026-92386_p2.patch b/meta/re= cipes-support/curl/curl/CVE-2026-92386_p2.patch
new file mode 100644index 00000000000..4228387ae63
--- /dev/null
+++ b/meta/recip= es-support/curl/curl/CVE-2026-92386_p2.patch
@@ -0,0 +1,146 @@
+F= rom 7d64440abba37e3d8039fe663d3edc84f582ce92 Mon Sep 17 00:00:00 2001
= +From: Zheng Yu <dataisland@outlook.com>
+Date: Wed, 14 Oct 2026= 18:13:59 -0700
+Subject: [PATCH] cookie: reload complete self-generat= ed cookie jar rows
+
+Closes #23407
+
+CVE: CVE-2026-92= 386
+Upstream-Status: Backport [https://github.com/curl/curl/commit/7d64440abba37e3d8039fe663d3e= dc84f582ce92]
+
+Backport Changes:
+- Match the two spac= es before URL in the deleted CURLOPT_COOKIEJAR
+ line in lib1902.c; up= stream's deleted line uses one space.
+
+(cherry picked from comm= it 7d64440abba37e3d8039fe663d3edc84f582ce92)
+Signed-off-by: Darsh Kel= aiya <dkelaiya@cisco.com>
+---
+ lib/cookie.c | 9 ++++++---=
+ tests/data/test1902 | 5 ++++-
+ tests/libtest/lib1902.c | 39 += +++++++++++++++++++++++++++++++++-----
+ 3 files changed, 44 insertion= s(+), 9 deletions(-)
Hello,

That _p2 looks indeed like a regression fix, it needs to = be submitted to
blacksail.

Regards,
--
Yoann Con= gal
Smile ECS
--3YsSQSVzuazphQlltWHH--