From: "Darsh Kelaiya -X (dkelaiya - E INFOCHIPS PRIVATE LIMITED at Cisco)" <dkelaiya@cisco.com>
To: openembedded-core@lists.openembedded.org
Subject: Re: [wrynose][PATCH 10/12] curl: fix CVE-2026-87865
Date: Tue, 24 Nov 2026 02:16:07 -0800 [thread overview]
Message-ID: <1226682.1795515367119608830@lists.openembedded.org> (raw)
In-Reply-To: <DN2QYF5QP61I.3PF69TBZP70OB@smile.fr>
[-- Attachment #1: Type: text/plain, Size: 3863 bytes --]
Hi Yoann,
Thanks for the review. I've sent a v2 which drops the _p2 patch as
requested.
https://lists.openembedded.org/g/openembedded-core/message/250999
Regards,
Darsh
On Mon, Nov 23, 2026 at 10:26 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].
>>
>> Match hashed known_hosts entries against the requested host before
>> selecting the host-key algorithm. Adapt the connection fields and
>> SSH test fixture to curl 8.19.0.
>>
>> Include the upstream follow-up [3] to cache key types already absent
>> for this host, avoiding repeated full-file scans introduced by [1].
>> Keep both upstream commits in separate patches and retain test3500.
>>
>> Install test3500.pl into ptest so the hashed-host regression can run
>> from the target package.
>>
>> [1] https://github.com/curl/curl/commit/323c184b6bdf5b1988a10c0a61560666e1588149
>>
>> [2] https://curl.se/docs/CVE-2026-87865.html
>> [3] https://github.com/curl/curl/commit/dc055e8a9eefe65cf63cb0396668a37c0b7c474a
>>
>>
>> Signed-off-by: Darsh Kelaiya <dkelaiya@cisco.com>
>> ---
>> .../curl/curl/CVE-2026-87865_p1.patch | 225 ++++++++++++++++++
>> .../curl/curl/CVE-2026-87865_p2.patch | 89 +++++++
>> meta/recipes-support/curl/curl_8.19.0.bb | 4 +
>> 3 files changed, 318 insertions(+)
>> create mode 100644 meta/recipes-support/curl/curl/CVE-2026-87865_p1.patch
>> create mode 100644 meta/recipes-support/curl/curl/CVE-2026-87865_p2.patch
>>
>> diff --git a/meta/recipes-support/curl/curl/CVE-2026-87865_p2.patch
>> b/meta/recipes-support/curl/curl/CVE-2026-87865_p2.patch
>> new file mode 100644
>> index 00000000000..0bf7cfea3c6
>> --- /dev/null
>> +++ b/meta/recipes-support/curl/curl/CVE-2026-87865_p2.patch
>> @@ -0,0 +1,89 @@
>> +From dc055e8a9eefe65cf63cb0396668a37c0b7c474a Mon Sep 17 00:00:00 2001
>> +From: Bobbeh Rhino <bobbeh@rhino.Rhino>
>> +Date: Tue, 8 Sep 2026 20:24:35 -0400
>> +Subject: [PATCH] libssh2: skip repeat checkp() for already-absent hashed
>> key
>> + types
>> +
>> +ssh_force_knownhost_key_type() called libssh2_knownhost_checkp() once
>> +per hashed known_hosts entry, and each call itself rescans the whole
>> +known_hosts set. Cache key types already confirmed absent for the
>> +connecting host so repeat entries of the same type do not each trigger
>> +another full scan. checkp() NOTFOUND for a given (host, port, type) is
>> +independent of the key bytes passed in, so this is safe.
>> +
>> +Behavior for MATCH is unchanged, and only store->typemask is read
>> +after a match, which is identical for any entry of the same type.
>> +
>> +Tests: runtests.pl 3500 1459 600, full SFTP/SCP keyword set (58/58),
>> +checksrc.pl.
>> +
>> +Closes #22905
>> +
>> +CVE: CVE-2026-87865
>> +Upstream-Status: Backport [ https://github.com/curl/curl/commit/dc055e8a9eefe65cf63cb0396668a37c0b7c474a
>> ]
>> +
>> +Backport Changes:
>> +- Use curl 8.19.0's conn->host.name and conn->remote_port instead of
>> + conn->origin->hostname and conn->origin->port. The older connection
>> + has no origin pointer; preserve the -1 lookup port for port 22.
>> +
>> +(cherry picked from commit dc055e8a9eefe65cf63cb0396668a37c0b7c474a)
>> +Signed-off-by: Darsh Kelaiya <dkelaiya@cisco.com>
>
> Hello,
>
> This _p2 has not been submitted for blacksail. Also, it's a perf
> optimisation not a security/bug fix. So, I can't accept it (Unless the
> perf issue creates a bug).
>
> I suggest to resend this patch with p1 only. Beware, I plan to merge
> some patches of this series.
>
> Regards,
> --
> Yoann Congal
> Smile ECS
[-- Attachment #2: Type: text/html, Size: 4684 bytes --]
next prev parent reply other threads:[~2026-11-24 10:16 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-04 7:36 [OE-core][wrynose][PATCH 00/12] curl: Security fixes Darsh Kelaiya -X (dkelaiya - E INFOCHIPS PRIVATE LIMITED at Cisco)
2026-11-04 7:36 ` [OE-core][wrynose][PATCH 01/12] curl: fix CVE-2026-86414 Darsh Kelaiya -X (dkelaiya - E INFOCHIPS PRIVATE LIMITED at Cisco)
2026-11-04 7:36 ` [OE-core][wrynose][PATCH 02/12] curl: fix CVE-2026-86409 Darsh Kelaiya -X (dkelaiya - E INFOCHIPS PRIVATE LIMITED at Cisco)
2026-11-04 7:36 ` [OE-core][wrynose][PATCH 03/12] curl: fix CVE-2026-87862 Darsh Kelaiya -X (dkelaiya - E INFOCHIPS PRIVATE LIMITED at Cisco)
2026-11-04 7:36 ` [OE-core][wrynose][PATCH 04/12] curl: fix CVE-2026-92387 Darsh Kelaiya -X (dkelaiya - E INFOCHIPS PRIVATE LIMITED at Cisco)
2026-11-04 7:36 ` [OE-core][wrynose][PATCH 05/12] curl: fix CVE-2026-86412 Darsh Kelaiya -X (dkelaiya - E INFOCHIPS PRIVATE LIMITED at Cisco)
2026-11-04 7:36 ` [OE-core][wrynose][PATCH 06/12] curl: fix CVE-2026-92386 Darsh Kelaiya -X (dkelaiya - E INFOCHIPS PRIVATE LIMITED at Cisco)
2026-11-23 17:03 ` Yoann Congal
2026-11-24 17:29 ` [wrynose][PATCH " Darsh Kelaiya -X (dkelaiya - E INFOCHIPS PRIVATE LIMITED at Cisco)
2026-11-04 7:36 ` [OE-core][wrynose][PATCH 07/12] curl: fix CVE-2026-107928 Darsh Kelaiya -X (dkelaiya - E INFOCHIPS PRIVATE LIMITED at Cisco)
2026-11-04 7:36 ` [OE-core][wrynose][PATCH 08/12] curl: fix CVE-2026-87864 Darsh Kelaiya -X (dkelaiya - E INFOCHIPS PRIVATE LIMITED at Cisco)
2026-11-04 7:36 ` [OE-core][wrynose][PATCH 09/12] curl: fix CVE-2026-92389 Darsh Kelaiya -X (dkelaiya - E INFOCHIPS PRIVATE LIMITED at Cisco)
2026-11-04 7:36 ` [OE-core][wrynose][PATCH 10/12] curl: fix CVE-2026-87865 Darsh Kelaiya -X (dkelaiya - E INFOCHIPS PRIVATE LIMITED at Cisco)
2026-11-23 16:56 ` Yoann Congal
2026-11-24 10:16 ` Darsh Kelaiya -X (dkelaiya - E INFOCHIPS PRIVATE LIMITED at Cisco) [this message]
2026-11-04 7:36 ` [OE-core][wrynose][PATCH 11/12] curl: set CVE_STATUS for CVE-2026-19931 Darsh Kelaiya -X (dkelaiya - E INFOCHIPS PRIVATE LIMITED at Cisco)
2026-11-04 7:36 ` [OE-core][wrynose][PATCH 12/12] curl: fix CVE-2026-18924 Darsh Kelaiya -X (dkelaiya - E INFOCHIPS PRIVATE LIMITED at Cisco)
2026-11-16 0:14 ` [OE-core][wrynose][PATCH 00/12] curl: Security fixes Yoann Congal
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=1226682.1795515367119608830@lists.openembedded.org \
--to=dkelaiya@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.