From: "Yoann Congal" <yoann.congal@smile.fr>
To: <devanshp@cisco.com>, <openembedded-core@lists.openembedded.org>
Subject: Re: [OE-Core][scarthgap][PATCH 3/4] curl: Fix CVE-2026-6429
Date: Tue, 24 Nov 2026 19:31:07 +0100 [thread overview]
Message-ID: <DN3NLSMHNVF9.2EA7MPWOSXGQD@smile.fr> (raw)
In-Reply-To: <20261120130414.822854-4-devanshp@cisco.com>
On Fri Nov 20, 2026 at 2:04 PM CET, Devansh Patel via openembedded-core wrote:
> From: Devansh Patel <devanshp@cisco.com>
>
> This patch applies the upstream fix commit as referenced in [1],
> and the public CVE advisory is referenced in [2].
>
> [1] https://github.com/curl/curl/commit/b4024bf808bd558026fdc6096e8457f199ace306
> [2] https://curl.se/docs/CVE-2026-6429.html
> [3] https://www.cve.org/CVERecord?id=CVE-2026-6429
>
> Signed-off-by: Devansh Patel <devanshp@cisco.com>
> ---
> .../curl/curl/CVE-2026-6429_p1.patch | 205 ++++++++++++++++++
> .../curl/curl/CVE-2026-6429_p2.patch | 52 +++++
> .../curl/curl/CVE-2026-6429_p3.patch | 29 +++
> meta/recipes-support/curl/curl_8.7.1.bb | 3 +
> 4 files changed, 289 insertions(+)
> create mode 100644 meta/recipes-support/curl/curl/CVE-2026-6429_p1.patch
> create mode 100644 meta/recipes-support/curl/curl/CVE-2026-6429_p2.patch
> create mode 100644 meta/recipes-support/curl/curl/CVE-2026-6429_p3.patch
>
> diff --git a/meta/recipes-support/curl/curl/CVE-2026-6429_p1.patch b/meta/recipes-support/curl/curl/CVE-2026-6429_p1.patch
> new file mode 100644
> index 0000000..6b195dc
> --- /dev/null
> +++ b/meta/recipes-support/curl/curl/CVE-2026-6429_p1.patch
> @@ -0,0 +1,205 @@
> +From ad29c80f3afaffd4ee3c902e30e331eb3667b809 Mon Sep 17 00:00:00 2001
> +From: Daniel Stenberg <daniel@haxx.se>
> +Date: Thu, 16 Apr 2026 14:26:20 +0200
> +Subject: [PATCH] http: clear credentials better on redirect
> +
> +Verify with test 2506: netrc with redirect using proxy
> +
> +Updated test 998 which was wrong.
> +
> +Reported-by: Muhamad Arga Reksapati
> +
> +Closes #21345
> +
> +CVE: CVE-2026-6429
> +Upstream-Status: Backport [https://github.com/curl/curl/commit/b4024bf808bd558026fdc6096e8457f199ace306]
> +
> +Backport Changes:
> +- Apply Curl_http_follow changes to Curl_follow in lib/transfer.c,
> + where 8.7.1 implements redirects. Use its newurl/state.url strings
> + and free/Curl_safefree names instead of the newer buffer API.
> +- Fold in only the required Curl_url_same_origin helper and declaration
> + from upstream prerequisite 32a513e180ce83d5e9b708211306045407074134:
> + https://github.com/curl/curl/commit/32a513e180ce83d5e9b708211306045407074134
> + The target lacks this helper, so the redirect fix cannot compile.
> + Use Curl_handler/Curl_get_scheme_handler because the unchanged
> + upstream Curl_scheme/Curl_get_scheme API fails to compile on 8.7.1.
> + Omit the prerequisite's independent lib/http2.c consumer changes;
> + they are not needed for the redirect fix.
^ Please don't squash (or "fold") commits like this. In this case,
put the relevant parts of 32a513e180 into its own patch.
Otherwise, patch looks good. I'll have another look with the split.
> +- Remove the obsolete outer result declaration: the upstream block
> + declares its own result, leaving 8.7.1's outer variable unused
> + (confirmed with -Wall).
> +- Omit tests/data/{Makefile.am,test998,test2506},
> + tests/libtest/{Makefile.inc,lib2506.c} and the prerequisite's
> + tests/unit/unit1675.c under the submitted series' code-only policy.
> +
> +Signed-off-by: Devansh Patel <devanshp@cisco.com>
> +---
> + lib/transfer.c | 87 ++++++++++++++++--------------------------------
> + lib/urlapi-int.h | 2 ++
> + lib/urlapi.c | 33 ++++++++++++++++++
> + 3 files changed, 64 insertions(+), 58 deletions(-)
> +
--
Yoann Congal
Smile ECS
next prev parent reply other threads:[~2026-11-24 18:31 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-20 13:04 [OE-Core][scarthgap][PATCH 0/4] curl: fix CVE-2026-8927, CVE-2026-8932, CVE-2026-6429 and CVE-2026-7168 Devansh Patel -X (devanshp - E INFOCHIPS PRIVATE LIMITED at Cisco)
2026-11-20 13:04 ` [OE-Core][scarthgap][PATCH 1/4] curl: Fix CVE-2026-8927 Devansh Patel -X (devanshp - E INFOCHIPS PRIVATE LIMITED at Cisco)
2026-11-24 11:27 ` Yoann Congal
2026-11-27 8:45 ` Devansh Patel -X (devanshp - E INFOCHIPS PRIVATE LIMITED at Cisco)
2026-11-27 8:47 ` [scarthgap][PATCH " Devansh Patel
2026-11-20 13:04 ` [OE-Core][scarthgap][PATCH 2/4] curl: Fix CVE-2026-8932 Devansh Patel -X (devanshp - E INFOCHIPS PRIVATE LIMITED at Cisco)
2026-11-24 18:03 ` Yoann Congal
2026-11-20 13:04 ` [OE-Core][scarthgap][PATCH 3/4] curl: Fix CVE-2026-6429 Devansh Patel -X (devanshp - E INFOCHIPS PRIVATE LIMITED at Cisco)
2026-11-24 18:31 ` Yoann Congal [this message]
2026-11-20 13:04 ` [OE-Core][scarthgap][PATCH 4/4] curl: Fix CVE-2026-7168 Devansh Patel -X (devanshp - E INFOCHIPS PRIVATE LIMITED at Cisco)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=DN3NLSMHNVF9.2EA7MPWOSXGQD@smile.fr \
--to=yoann.congal@smile.fr \
--cc=devanshp@cisco.com \
--cc=openembedded-core@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.