* [blacksail][PATCH v2 0/4] curl: fix High scored CVEs
@ 2026-11-25 13:26 João Marcos Costa (Schneider Electric)
2026-11-25 13:26 ` [blacksail][PATCH v2 1/4] curl: fix CVE-2026-87865 João Marcos Costa (Schneider Electric)
` (3 more replies)
0 siblings, 4 replies; 6+ messages in thread
From: João Marcos Costa (Schneider Electric) @ 2026-11-25 13:26 UTC (permalink / raw)
To: openembedded-core
Cc: thomas.petazzoni, yoann.congal,
João Marcos Costa (Schneider Electric)
Hello,
The original commits applied mostly cleanly, so there's no really
noteworthy conflict fixed for these backports.
Best regards,
Changes since v1:
- fixed the erroneous removal of lib500{0,4}.c at CVE-2026-92391.patch
João Marcos Costa (Schneider Electric) (4):
curl: fix CVE-2026-87865
curl: fix CVE-2026-92386
curl: fix CVE-2026-92391
curl: fix CVE-2026-94266
.../curl/curl/CVE-2026-87865.patch | 216 +++++++++++++++++
.../curl/curl/CVE-2026-92386.patch | 33 +++
.../curl/curl/CVE-2026-92391.patch | 200 ++++++++++++++++
.../curl/curl/CVE-2026-94266.patch | 220 ++++++++++++++++++
meta/recipes-support/curl/curl_8.22.0.bb | 4 +
5 files changed, 673 insertions(+)
create mode 100644 meta/recipes-support/curl/curl/CVE-2026-87865.patch
create mode 100644 meta/recipes-support/curl/curl/CVE-2026-92386.patch
create mode 100644 meta/recipes-support/curl/curl/CVE-2026-92391.patch
create mode 100644 meta/recipes-support/curl/curl/CVE-2026-94266.patch
--
2.55.0
^ permalink raw reply [flat|nested] 6+ messages in thread
* [blacksail][PATCH v2 1/4] curl: fix CVE-2026-87865
2026-11-25 13:26 [blacksail][PATCH v2 0/4] curl: fix High scored CVEs João Marcos Costa (Schneider Electric)
@ 2026-11-25 13:26 ` João Marcos Costa (Schneider Electric)
2026-11-26 10:30 ` Darsh Kelaiya -X (dkelaiya - E INFOCHIPS PRIVATE LIMITED at Cisco)
2026-11-25 13:26 ` [blacksail][PATCH v2 2/4] curl: fix CVE-2026-92386 João Marcos Costa (Schneider Electric)
` (2 subsequent siblings)
3 siblings, 1 reply; 6+ messages in thread
From: João Marcos Costa (Schneider Electric) @ 2026-11-25 13:26 UTC (permalink / raw)
To: openembedded-core
Cc: thomas.petazzoni, yoann.congal,
João Marcos Costa (Schneider Electric)
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-87865
[2] https://curl.se/docs/CVE-2026-87865.html
Signed-off-by: João Marcos Costa (Schneider Electric) <joaomarcos.costa@bootlin.com>
---
.../curl/curl/CVE-2026-87865.patch | 216 ++++++++++++++++++
meta/recipes-support/curl/curl_8.22.0.bb | 1 +
2 files changed, 217 insertions(+)
create mode 100644 meta/recipes-support/curl/curl/CVE-2026-87865.patch
diff --git a/meta/recipes-support/curl/curl/CVE-2026-87865.patch b/meta/recipes-support/curl/curl/CVE-2026-87865.patch
new file mode 100644
index 0000000000..32a7441c95
--- /dev/null
+++ b/meta/recipes-support/curl/curl/CVE-2026-87865.patch
@@ -0,0 +1,216 @@
+From a7622dc02ccc01f7438227f1920db08268a6ccb0 Mon Sep 17 00:00:00 2001
+From: Bobbeh Rhino <bobbeh@rhino.Rhino>
+Date: Tue, 8 Sep 2026 06:33:27 -0400
+Subject: [PATCH] libssh2: match hashed known_hosts entries by host
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+libssh2 does not expose the plaintext name for hashed entries. Check
+each entry key against the requested hostname before using its key type.
+Otherwise an unrelated hashed entry can select the wrong algorithm.
+
+Add an SFTP regression test 3500 with an unrelated hashed entry before
+the requested host.
+
+Closes #22874
+
+CVE: CVE-2026-87865
+Upstream-Status: Backport [https://github.com/curl/curl/commit/323c184b6bdf5b1988a10c0a61560]
+
+Signed-off-by: João Marcos Costa <joaomarcos.costa@bootlin.com>
+---
+ lib/vssh/libssh2.c | 16 +++++++--
+ tests/data/Makefile.am | 2 ++
+ tests/data/test3500 | 47 +++++++++++++++++++++++++
+ tests/libtest/Makefile.am | 3 +-
+ tests/libtest/test3500.pl | 72 +++++++++++++++++++++++++++++++++++++++
+ 5 files changed, 136 insertions(+), 4 deletions(-)
+ create mode 100644 tests/data/test3500
+ create mode 100755 tests/libtest/test3500.pl
+
+diff --git a/lib/vssh/libssh2.c b/lib/vssh/libssh2.c
+index 24a651d30e..cd28cde76f 100644
+--- a/lib/vssh/libssh2.c
++++ b/lib/vssh/libssh2.c
+@@ -685,9 +685,19 @@ static CURLcode ssh_force_knownhost_key_type(struct Curl_easy *data,
+ break;
+ }
+ }
+- else {
+- found = TRUE;
+- break;
++ else if(store->key) {
++ int keycheck = libssh2_knownhost_checkp(
++ sshc->kh, conn->origin->hostname,
++ (conn->origin->port != PORT_SSH) ? conn->origin->port : -1,
++ store->key, strlen(store->key),
++ LIBSSH2_KNOWNHOST_TYPE_PLAIN |
++ LIBSSH2_KNOWNHOST_KEYENC_BASE64 |
++ (store->typemask & LIBSSH2_KNOWNHOST_KEY_MASK),
++ NULL);
++ if(keycheck == LIBSSH2_KNOWNHOST_CHECK_MATCH) {
++ found = TRUE;
++ break;
++ }
+ }
+ }
+ }
+diff --git a/tests/data/Makefile.am b/tests/data/Makefile.am
+index 3b32fce7bb..4a27927b1c 100644
+--- a/tests/data/Makefile.am
++++ b/tests/data/Makefile.am
+@@ -2090,6 +2090,8 @@ TESTCASES = \
+ test3400 \
+ test3401 \
+ \
++ test3500 \
++ \
+ test4000 \
+ test4001 \
+ \
+diff --git a/tests/data/test3500 b/tests/data/test3500
+new file mode 100644
+index 0000000000..1bcf3bc17d
+--- /dev/null
++++ b/tests/data/test3500
+@@ -0,0 +1,47 @@
++<?xml version="1.0" encoding="US-ASCII"?>
++<testcase>
++<info>
++<keywords>
++SFTP
++known_hosts
++libssh2
++</keywords>
++</info>
++
++# Server-side
++<reply>
++<data>
++Test data
++for hashed known hosts
++</data>
++</reply>
++
++# Client-side
++<client>
++<server>
++sftp
++</server>
++<features>
++sftp
++libssh2
++!badlibssh
++</features>
++<precheck>
++%PERL %SRCDIR/libtest/test3500.pl %LOGDIR/server/curl_host_key.pub %LOGDIR/known%TESTNUMBER "[%HOSTIP]:%SSHPORT"
++</precheck>
++<name>
++SFTP matches requested hashed known_hosts entry
++</name>
++<command>
++--knownhosts %LOGDIR/known%TESTNUMBER --key %LOGDIR/server/curl_client_key --pubkey %LOGDIR/server/curl_client_key.pub -u %USER: sftp://%HOSTIP:%SSHPORT%SFTP_PWD/%LOGDIR/file%TESTNUMBER.txt
++</command>
++<file name="%LOGDIR/file%TESTNUMBER.txt">
++Test data
++for hashed known hosts
++</file>
++</client>
++
++# Verify data after the test has been "shot"
++<verify>
++</verify>
++</testcase>
+diff --git a/tests/libtest/Makefile.am b/tests/libtest/Makefile.am
+index 74eb150742..8fdf484b55 100644
+--- a/tests/libtest/Makefile.am
++++ b/tests/libtest/Makefile.am
+@@ -49,7 +49,8 @@ EXTRA_DIST = CMakeLists.txt $(FIRST_C) $(FIRST_H) $(UTILS_C) $(UTILS_H) $(TESTS_
+ test1022.pl \
+ test307.pl \
+ test610.pl \
+- test613.pl
++ test613.pl \
++ test3500.pl
+
+ CFLAGS += @CURL_CFLAG_EXTRAS@
+
+diff --git a/tests/libtest/test3500.pl b/tests/libtest/test3500.pl
+new file mode 100755
+index 0000000000..d95f54cecf
+--- /dev/null
++++ b/tests/libtest/test3500.pl
+@@ -0,0 +1,72 @@
++#!/usr/bin/env perl
++#***************************************************************************
++# _ _ ____ _
++# Project ___| | | | _ \| |
++# / __| | | | |_) | |
++# | (__| |_| | _ <| |___
++# \___|\___/|_| \_\_____|
++#
++# Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
++#
++# This software is licensed as described in the file COPYING, which
++# you should have received as part of this distribution. The terms
++# are also available at https://curl.se/docs/copyright.html.
++#
++# You may opt to use, copy, modify, merge, publish, distribute and/or sell
++# copies of the Software, and permit persons to whom the Software is
++# furnished to do so, under the terms of the COPYING file.
++#
++# This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
++# KIND, either express or implied.
++#
++# SPDX-License-Identifier: curl
++#
++###########################################################################
++use strict;
++use warnings;
++
++use Digest::SHA qw(hmac_sha1);
++use MIME::Base64 qw(encode_base64);
++
++sub errout {
++ print $_[0] . "\n";
++ exit 1;
++}
++
++if(@ARGV != 3) {
++ errout "Usage: $0 host-public-key known-hosts-file target";
++}
++
++my ($hostkey_file, $knownhosts_file, $target) = @ARGV;
++open(my $hostkey, "<", $hostkey_file) or errout "$!";
++my $hostkey_line = <$hostkey>;
++close($hostkey) or errout "$!";
++
++my ($hostkey_algo, $hostkey_data) = split(/\s+/, $hostkey_line);
++if(!$hostkey_algo || !$hostkey_data) {
++ errout "Failed parsing SSH host public key";
++}
++
++my $rsa_key =
++ "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCgSyqrUP2xhqLqkyopVapoKeucYIp" .
++ "ZXeUqj+Q9WLWyXka5re62Y3R/lxZUXtkJjlpdD2LNMFenNlDQvPaXH5Utllt+c3z" .
++ "wOkOLy7RXX5S37SfQFm/0fPkZqoZfMDB6XDcwA4cakjCRn4oZyKs8dWAxoNaTtYc" .
++ "nKKMJ6rmc8PttykJw9fwiKAjPyYf21/BMvWIzu9req+TrDA/Jcd2UAug94CikJIX" .
++ "uwKmSYleAOo4eJWx8GyujgEgZn05eq+K1LSg9RqRVIxOdqjoE5K3abBfs0rmUuLd" .
++ "MFh7nHseTFXYbKzpz46V7iZMfFuoyURrzVsqGUm+/m7dxBM98In12kOm3";
++my $ed25519_key =
++ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAqmXRY8k+W9GtpWxYru6ELAXYHdXq" .
++ "jf33ziITGTiJUN";
++my $other_key = $hostkey_algo eq "ssh-ed25519" ? $rsa_key : $ed25519_key;
++
++my $salt = "curl-knownhosts-test";
++my $salt64 = encode_base64($salt, "");
++my $hash64 = encode_base64(hmac_sha1("unrelated.invalid", $salt), "");
++my $target_hash64 = encode_base64(hmac_sha1($target, $salt), "");
++
++open(my $knownhosts, ">", $knownhosts_file) or errout "$!";
++print $knownhosts "|1|$salt64|$hash64 $other_key\n";
++print $knownhosts "|1|$salt64|$target_hash64 $hostkey_algo $hostkey_data\n";
++close($knownhosts) or errout "$!";
++
++exit 0;
diff --git a/meta/recipes-support/curl/curl_8.22.0.bb b/meta/recipes-support/curl/curl_8.22.0.bb
index 95d5801ad5..979e416249 100644
--- a/meta/recipes-support/curl/curl_8.22.0.bb
+++ b/meta/recipes-support/curl/curl_8.22.0.bb
@@ -17,6 +17,7 @@ SRC_URI = " \
file://CVE-2026-92388-1.patch \
file://CVE-2026-92388-2.patch \
file://CVE-2026-92389.patch \
+ file://CVE-2026-87865.patch \
"
SRC_URI:append:class-nativesdk = " \
--
2.55.0
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [blacksail][PATCH v2 2/4] curl: fix CVE-2026-92386
2026-11-25 13:26 [blacksail][PATCH v2 0/4] curl: fix High scored CVEs João Marcos Costa (Schneider Electric)
2026-11-25 13:26 ` [blacksail][PATCH v2 1/4] curl: fix CVE-2026-87865 João Marcos Costa (Schneider Electric)
@ 2026-11-25 13:26 ` João Marcos Costa (Schneider Electric)
2026-11-25 13:26 ` [blacksail][PATCH v2 3/4] curl: fix CVE-2026-92391 João Marcos Costa (Schneider Electric)
2026-11-25 13:26 ` [blacksail][PATCH v2 4/4] curl: fix CVE-2026-94266 João Marcos Costa (Schneider Electric)
3 siblings, 0 replies; 6+ messages in thread
From: João Marcos Costa (Schneider Electric) @ 2026-11-25 13:26 UTC (permalink / raw)
To: openembedded-core
Cc: thomas.petazzoni, yoann.congal,
João Marcos Costa (Schneider Electric)
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) <joaomarcos.costa@bootlin.com>
---
.../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 <daniel@haxx.se>
+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 <joaomarcos.costa@bootlin.com>
+---
+ 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 = " \
--
2.55.0
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [blacksail][PATCH v2 3/4] curl: fix CVE-2026-92391
2026-11-25 13:26 [blacksail][PATCH v2 0/4] curl: fix High scored CVEs João Marcos Costa (Schneider Electric)
2026-11-25 13:26 ` [blacksail][PATCH v2 1/4] curl: fix CVE-2026-87865 João Marcos Costa (Schneider Electric)
2026-11-25 13:26 ` [blacksail][PATCH v2 2/4] curl: fix CVE-2026-92386 João Marcos Costa (Schneider Electric)
@ 2026-11-25 13:26 ` João Marcos Costa (Schneider Electric)
2026-11-25 13:26 ` [blacksail][PATCH v2 4/4] curl: fix CVE-2026-94266 João Marcos Costa (Schneider Electric)
3 siblings, 0 replies; 6+ messages in thread
From: João Marcos Costa (Schneider Electric) @ 2026-11-25 13:26 UTC (permalink / raw)
To: openembedded-core
Cc: thomas.petazzoni, yoann.congal,
João Marcos Costa (Schneider Electric)
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-92391
[2] https://curl.se/docs/CVE-2026-92391.html
Signed-off-by: João Marcos Costa (Schneider Electric) <joaomarcos.costa@bootlin.com>
---
.../curl/curl/CVE-2026-92391.patch | 200 ++++++++++++++++++
meta/recipes-support/curl/curl_8.22.0.bb | 1 +
2 files changed, 201 insertions(+)
create mode 100644 meta/recipes-support/curl/curl/CVE-2026-92391.patch
diff --git a/meta/recipes-support/curl/curl/CVE-2026-92391.patch b/meta/recipes-support/curl/curl/CVE-2026-92391.patch
new file mode 100644
index 0000000000..80ab126ee7
--- /dev/null
+++ b/meta/recipes-support/curl/curl/CVE-2026-92391.patch
@@ -0,0 +1,200 @@
+From e1926bb54733cc768d31c4153720f6fb7d927706 Mon Sep 17 00:00:00 2001
+From: Daniel Stenberg <daniel@haxx.se>
+Date: Sun, 13 Sep 2026 00:06:44 +0200
+Subject: [PATCH] mime: do curl_mime_free() non-recursively
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Verify with test 3595: deeply nested curl_mime_free()
+
+Closes #22927
+
+CVE: CVE-2026-92391
+Upstream-Status: Backport [https://github.com/curl/curl/commit/d7546809d5bd548b69ec49fca26565c8f6f0d344]
+
+Signed-off-by: João Marcos Costa <joaomarcos.costa@bootlin.com>
+---
+ lib/mime.c | 28 +++++++++++----
+ tests/data/Makefile.am | 2 +-
+ tests/data/test3595 | 21 ++++++++++++
+ tests/libtest/Makefile.inc | 1 +
+ tests/libtest/lib3595.c | 70 ++++++++++++++++++++++++++++++++++++++
+ 5 files changed, 115 insertions(+), 7 deletions(-)
+ create mode 100644 tests/data/test3595
+ create mode 100644 tests/libtest/lib3595.c
+
+diff --git a/lib/mime.c b/lib/mime.c
+index 6004375..41150dc 100644
+--- a/lib/mime.c
++++ b/lib/mime.c
+@@ -1109,20 +1109,36 @@ void Curl_mime_cleanpart(curl_mimepart *part)
+ }
+ }
+
+-/* Recursively delete a mime handle and its parts. */
++/* Non-recursively delete a mime handle and its parts. */
+ void curl_mime_free(curl_mime *mime)
+ {
+ curl_mimepart *part;
+
+- if(mime) {
+- mime_subparts_unbind(mime); /* Be sure it is not referenced anymore. */
+- while(mime->firstpart) {
+- part = mime->firstpart;
++ if(!mime)
++ return;
++
++ mime_subparts_unbind(mime); /* Be sure it is not referenced anymore. */
++
++ while(mime) {
++ part = mime->firstpart;
++ if(part) {
+ mime->firstpart = part->nextpart;
++ if(part->kind == MIMEKIND_MULTIPART && part->arg &&
++ part->freefunc == mime_subparts_free) {
++ curl_mime *subparts = (curl_mime *)part->arg;
++ part->freefunc = NULL;
++ cleanup_part_content(part);
++ subparts->parent = mime->parent;
++ mime->parent = (curl_mimepart *)subparts;
++ }
+ Curl_mime_cleanpart(part);
+ curlx_free(part);
+ }
+- curlx_free(mime);
++ else {
++ curl_mime *parent = (curl_mime *)mime->parent;
++ curlx_free(mime);
++ mime = parent;
++ }
+ }
+ }
+
+diff --git a/tests/data/Makefile.am b/tests/data/Makefile.am
+index 4a27927..e0ce23a 100644
+--- a/tests/data/Makefile.am
++++ b/tests/data/Makefile.am
+@@ -2091,7 +2091,7 @@ TESTCASES = \
+ test3401 \
+ \
+ test3500 \
+- \
++ test3595 \
+ test4000 \
+ test4001 \
+ \
+diff --git a/tests/data/test3595 b/tests/data/test3595
+new file mode 100644
+index 0000000..b2b1dd2
+--- /dev/null
++++ b/tests/data/test3595
+@@ -0,0 +1,21 @@
++<?xml version="1.0" encoding="US-ASCII"?>
++<testcase>
++<info>
++<keywords>
++mime
++</keywords>
++</info>
++
++# Client-side
++<client>
++<tool>
++lib%TESTNUMBER
++</tool>
++<name>
++curl_mime_free
++</name>
++</client>
++
++<verify>
++</verify>
++</testcase>
+diff --git a/tests/libtest/Makefile.inc b/tests/libtest/Makefile.inc
+index 26c72e5..3d25a83 100644
+--- a/tests/libtest/Makefile.inc
++++ b/tests/libtest/Makefile.inc
+@@ -325,5 +325,6 @@ TESTS_C = \
+ lib3105.c \
+ lib3207.c \
+ lib3208.c \
++ lib3595.c \
+ lib5000.c \
+ lib5004.c
+diff --git a/tests/libtest/lib3595.c b/tests/libtest/lib3595.c
+new file mode 100644
+index 0000000..1f343f5
+--- /dev/null
++++ b/tests/libtest/lib3595.c
+@@ -0,0 +1,70 @@
++/***************************************************************************
++ * _ _ ____ _
++ * Project ___| | | | _ \| |
++ * / __| | | | |_) | |
++ * | (__| |_| | _ <| |___
++ * \___|\___/|_| \_\_____|
++ *
++ * Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
++ *
++ * This software is licensed as described in the file COPYING, which
++ * you should have received as part of this distribution. The terms
++ * are also available at https://curl.se/docs/copyright.html.
++ *
++ * You may opt to use, copy, modify, merge, publish, distribute and/or sell
++ * copies of the Software, and permit persons to whom the Software is
++ * furnished to do so, under the terms of the COPYING file.
++ *
++ * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
++ * KIND, either express or implied.
++ *
++ * SPDX-License-Identifier: curl
++ *
++ ***************************************************************************/
++#include "unitcheck.h"
++
++static CURLcode test_lib3595(const char *arg)
++{
++ UNITTEST_BEGIN_SIMPLE
++
++#if !defined(CURL_DISABLE_MIME) && \
++ (!defined(CURL_DISABLE_HTTP) || \
++ !defined(CURL_DISABLE_SMTP) || \
++ !defined(CURL_DISABLE_IMAP))
++
++ curl_mime *root = NULL;
++ curl_mime *current = NULL;
++ curl_mime *sub = NULL;
++ curl_mimepart *part = NULL;
++ int i;
++
++ if(curl_global_init(CURL_GLOBAL_ALL) != CURLE_OK) {
++ curl_mfprintf(stderr, "curl_global_init() failed\n");
++ return TEST_ERR_MAJOR_BAD;
++ }
++
++ /* Create a deeply nested mime structure to verify that non-recursive
++ curl_mime_free works properly. */
++ (void)arg;
++ root = curl_mime_init(NULL);
++ fail_unless(root != NULL, "curl_mime_init root failed");
++ current = root;
++
++ for(i = 0; i < 50; i++) {
++ part = curl_mime_addpart(current);
++ fail_unless(part != NULL, "curl_mime_addpart failed");
++ sub = curl_mime_init(NULL);
++ fail_unless(sub != NULL, "curl_mime_init sub failed");
++ curl_mime_subparts(part, sub);
++ current = sub;
++ }
++
++ /* Free deep structure */
++ curl_mime_free(root);
++ curl_global_cleanup();
++#else
++ (void)arg;
++#endif
++
++ UNITTEST_END_SIMPLE
++}
diff --git a/meta/recipes-support/curl/curl_8.22.0.bb b/meta/recipes-support/curl/curl_8.22.0.bb
index 4c6a088e62..6445aae426 100644
--- a/meta/recipes-support/curl/curl_8.22.0.bb
+++ b/meta/recipes-support/curl/curl_8.22.0.bb
@@ -19,6 +19,7 @@ SRC_URI = " \
file://CVE-2026-92389.patch \
file://CVE-2026-87865.patch \
file://CVE-2026-92386.patch \
+ file://CVE-2026-92391.patch \
"
SRC_URI:append:class-nativesdk = " \
--
2.55.0
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [blacksail][PATCH v2 4/4] curl: fix CVE-2026-94266
2026-11-25 13:26 [blacksail][PATCH v2 0/4] curl: fix High scored CVEs João Marcos Costa (Schneider Electric)
` (2 preceding siblings ...)
2026-11-25 13:26 ` [blacksail][PATCH v2 3/4] curl: fix CVE-2026-92391 João Marcos Costa (Schneider Electric)
@ 2026-11-25 13:26 ` João Marcos Costa (Schneider Electric)
3 siblings, 0 replies; 6+ messages in thread
From: João Marcos Costa (Schneider Electric) @ 2026-11-25 13:26 UTC (permalink / raw)
To: openembedded-core
Cc: thomas.petazzoni, yoann.congal,
João Marcos Costa (Schneider Electric)
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-94266
[2] https://curl.se/docs/CVE-2026-94266.html
Signed-off-by: João Marcos Costa (Schneider Electric) <joaomarcos.costa@bootlin.com>
---
.../curl/curl/CVE-2026-94266.patch | 220 ++++++++++++++++++
meta/recipes-support/curl/curl_8.22.0.bb | 1 +
2 files changed, 221 insertions(+)
create mode 100644 meta/recipes-support/curl/curl/CVE-2026-94266.patch
diff --git a/meta/recipes-support/curl/curl/CVE-2026-94266.patch b/meta/recipes-support/curl/curl/CVE-2026-94266.patch
new file mode 100644
index 0000000000..dc4d33c529
--- /dev/null
+++ b/meta/recipes-support/curl/curl/CVE-2026-94266.patch
@@ -0,0 +1,220 @@
+From 48e89204f431dc7ae52cf4d02ce7a8f38209ff6b Mon Sep 17 00:00:00 2001
+From: Daniel Stenberg <daniel@haxx.se>
+Date: Mon, 21 Sep 2026 11:13:13 +0200
+Subject: [PATCH] getinfo: make sure CURLINFO_EFFECTIVE_URL does not contain
+ creds
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Reported-by: Joshua Rogers
+
+Verified in test 1876
+
+Closes #23016
+
+CVE: CVE-2026-94266
+Upstream-Status: Backport [https://github.com/curl/curl/commit/7a6bd027d0de2b6857472d35da090ef60cc29f19]
+
+Signed-off-by: João Marcos Costa <joaomarcos.costa@bootlin.com>
+---
+ lib/getinfo.c | 47 +++++++++++++++++++++++++----
+ lib/transfer.c | 1 +
+ lib/url.c | 1 +
+ lib/urldata.h | 1 +
+ tests/data/Makefile.am | 2 +-
+ tests/data/test1876 | 67 ++++++++++++++++++++++++++++++++++++++++++
+ 6 files changed, 113 insertions(+), 6 deletions(-)
+ create mode 100644 tests/data/test1876
+
+diff --git a/lib/getinfo.c b/lib/getinfo.c
+index 23f1de2..eda62da 100644
+--- a/lib/getinfo.c
++++ b/lib/getinfo.c
+@@ -63,6 +63,7 @@ void Curl_initinfo(struct Curl_easy *data)
+
+ curlx_safefree(info->contenttype);
+ curlx_safefree(info->wouldredirect);
++ curlx_safefree(info->effective_url);
+
+ memset(&info->primary, 0, sizeof(info->primary));
+ info->retry_after = 0;
+@@ -76,15 +77,51 @@ void Curl_initinfo(struct Curl_easy *data)
+ #endif
+ }
+
++static CURLcode effective_url(struct Curl_easy *data,
++ const char **param_charp)
++{
++ const char *s = Curl_bufref_ptr(&data->state.url);
++ *param_charp = s ? s : "";
++ if(s) {
++ char *url = NULL;
++ /* Make a copy of the URL without credentials */
++ CURLU *u = curl_url();
++ CURLUcode uc;
++ if(!u)
++ return CURLE_OUT_OF_MEMORY;
++
++ uc = curl_url_set(u, CURLUPART_URL, s,
++ CURLU_NON_SUPPORT_SCHEME |
++ (data->set.path_as_is ? CURLU_PATH_AS_IS : 0));
++ if(!uc)
++ uc = curl_url_set(u, CURLUPART_USER, NULL, 0);
++ if(!uc)
++ uc = curl_url_set(u, CURLUPART_PASSWORD, NULL, 0);
++ if(!uc)
++ uc = curl_url_get(u, CURLUPART_URL, &url, CURLU_GET_EMPTY);
++
++ curl_url_cleanup(u);
++
++ if(uc || !url)
++ return CURLE_OUT_OF_MEMORY;
++ if(strcmp(url, s)) {
++ /* they are different */
++ curlx_free(data->info.effective_url);
++ data->info.effective_url = url;
++ *param_charp = url;
++ }
++ else
++ curl_free(url);
++ }
++ return CURLE_OK;
++}
++
+ static CURLcode getinfo_char(struct Curl_easy *data, CURLINFO info,
+ const char **param_charp)
+ {
+ switch(info) {
+- case CURLINFO_EFFECTIVE_URL: {
+- const char *s = Curl_bufref_ptr(&data->state.url);
+- *param_charp = s ? s : "";
+- }
+- break;
++ case CURLINFO_EFFECTIVE_URL:
++ return effective_url(data, param_charp);
+ case CURLINFO_EFFECTIVE_METHOD: {
+ const char *m = CURL_EASY_STR(data, STRING_CUSTOMREQUEST);
+ if(!m) {
+diff --git a/lib/transfer.c b/lib/transfer.c
+index 3b6c5c0..d940f8d 100644
+--- a/lib/transfer.c
++++ b/lib/transfer.c
+@@ -503,6 +503,7 @@ CURLcode Curl_pretransfer(struct Curl_easy *data)
+ data->state.authhost.want = data->set.httpauth;
+ data->state.authproxy.want = data->set.proxyauth;
+ curlx_safefree(data->info.wouldredirect);
++ curlx_safefree(data->info.effective_url);
+ Curl_data_priority_clear_state(data);
+ if(data->set.http_auto_referer)
+ Curl_bufref_free(&data->state.referer);
+diff --git a/lib/url.c b/lib/url.c
+index 6eeae43..61126a1 100644
+--- a/lib/url.c
++++ b/lib/url.c
+@@ -267,6 +267,7 @@ CURLcode Curl_close(struct Curl_easy **datap)
+ curlx_safefree(data->state.most_recent_ftp_entrypath);
+ curlx_safefree(data->info.contenttype);
+ curlx_safefree(data->info.wouldredirect);
++ curlx_safefree(data->info.effective_url);
+
+ /* No longer a dirty share, if it exists */
+ if(Curl_share_easy_unlink(data))
+diff --git a/lib/urldata.h b/lib/urldata.h
+index 1c01018..fb6df86 100644
+--- a/lib/urldata.h
++++ b/lib/urldata.h
+@@ -409,6 +409,7 @@ struct PureInfo {
+ curl_off_t numconnects; /* how many new connections libcurl created */
+ char *contenttype; /* the content type of the object */
+ char *wouldredirect; /* URL this would have been redirected to if asked to */
++ char *effective_url; /* when needed */
+ curl_off_t retry_after; /* info from Retry-After: header */
+ const char *conn_scheme;
+ int httpcode; /* Recent HTTP, FTP, RTSP or SMTP response code */
+diff --git a/tests/data/Makefile.am b/tests/data/Makefile.am
+index e0ce23a..8cdeaf7 100644
+--- a/tests/data/Makefile.am
++++ b/tests/data/Makefile.am
+@@ -1740,7 +1740,7 @@ TESTCASES = \
+ test1849 \
+ test1850 \
+ test1851 \
+- \
++ test1876 \
+ test1900 \
+ test1901 \
+ test1902 \
+diff --git a/tests/data/test1876 b/tests/data/test1876
+new file mode 100644
+index 0000000..4fc3b9f
+--- /dev/null
++++ b/tests/data/test1876
+@@ -0,0 +1,67 @@
++<?xml version="1.0" encoding="US-ASCII"?>
++<testcase>
++<info>
++<keywords>
++netrc
++</keywords>
++</info>
++
++# Server-side
++<reply>
++<data crlf="headers" nocheck="yes">
++HTTP/1.1 301 redir
++Content-Length: 0
++Content-Type: text/html
++Location: %TESTNUMBER0002
++
++</data>
++
++<data2 crlf="headers">
++HTTP/1.1 200 OK
++Content-Length: 0
++Content-Type: text/html
++
++</data2>
++
++</reply>
++
++# Client-side
++<client>
++<server>
++http
++</server>
++<name>
++verify no credentials present in effective URL after redirect
++</name>
++<file name="%LOGDIR/netrc">
++machine %HOSTIP
++login netrcuser
++password netrcSECRET123
++</file>
++
++<command option="no-include">
++http://%HOSTIP:%HTTPPORT/%TESTNUMBER --netrc-optional --netrc-file %LOGDIR/netrc -L -w 'EFFECTIVE_URL=%{url_effective}\n'
++</command>
++</client>
++
++# Verify data after the test has been "shot"
++<verify>
++<protocol crlf="headers">
++GET /%TESTNUMBER HTTP/1.1
++Host: %HOSTIP:%HTTPPORT
++Authorization: Basic %b64[netrcuser:netrcSECRET123]b64%
++User-Agent: curl/%VERSION
++Accept: */*
++
++GET /%TESTNUMBER0002 HTTP/1.1
++Host: %HOSTIP:%HTTPPORT
++Authorization: Basic %b64[netrcuser:netrcSECRET123]b64%
++User-Agent: curl/%VERSION
++Accept: */*
++
++</protocol>
++<stdout>
++EFFECTIVE_URL=http://%HOSTIP:%HTTPPORT/%TESTNUMBER0002
++</stdout>
++</verify>
++</testcase>
diff --git a/meta/recipes-support/curl/curl_8.22.0.bb b/meta/recipes-support/curl/curl_8.22.0.bb
index 6445aae426..64397f1a77 100644
--- a/meta/recipes-support/curl/curl_8.22.0.bb
+++ b/meta/recipes-support/curl/curl_8.22.0.bb
@@ -20,6 +20,7 @@ SRC_URI = " \
file://CVE-2026-87865.patch \
file://CVE-2026-92386.patch \
file://CVE-2026-92391.patch \
+ file://CVE-2026-94266.patch \
"
SRC_URI:append:class-nativesdk = " \
--
2.55.0
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [blacksail][PATCH v2 1/4] curl: fix CVE-2026-87865
2026-11-25 13:26 ` [blacksail][PATCH v2 1/4] curl: fix CVE-2026-87865 João Marcos Costa (Schneider Electric)
@ 2026-11-26 10:30 ` Darsh Kelaiya -X (dkelaiya - E INFOCHIPS PRIVATE LIMITED at Cisco)
0 siblings, 0 replies; 6+ messages in thread
From: Darsh Kelaiya -X (dkelaiya - E INFOCHIPS PRIVATE LIMITED at Cisco) @ 2026-11-26 10:30 UTC (permalink / raw)
To: openembedded-core
[-- Attachment #1: Type: text/plain, Size: 9265 bytes --]
Hi Joao, Yoann,
I noticed that test3500 invokes %SRCDIR/libtest/test3500.pl in its precheck,
but the Blacksail recipe does not install this script into the ptest package.
Adding it to EXTRA_DIST includes it in the source distribution;
the recipe still needs to install it explicitly. Otherwise, the
precheck cannot run when libssh2/SFTP support is enabled.
Could you include the following in do_install_ptest() , after
creating the tests/libtest directory?
My Wrynose v2 backport already includes this installation:
https://lists.openembedded.org/g/openembedded-core/message/250999
Thanks,
Darsh
On Wed, Nov 25, 2026 at 06:57 PM, Joao Marcos Costa wrote:
>
> 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-87865
> [2] https://curl.se/docs/CVE-2026-87865.html
>
> Signed-off-by: João Marcos Costa (Schneider Electric)
> <joaomarcos.costa@bootlin.com>
> ---
> .../curl/curl/CVE-2026-87865.patch | 216 ++++++++++++++++++
> meta/recipes-support/curl/curl_8.22.0.bb | 1 +
> 2 files changed, 217 insertions(+)
> create mode 100644 meta/recipes-support/curl/curl/CVE-2026-87865.patch
>
> diff --git a/meta/recipes-support/curl/curl/CVE-2026-87865.patch
> b/meta/recipes-support/curl/curl/CVE-2026-87865.patch
> new file mode 100644
> index 0000000000..32a7441c95
> --- /dev/null
> +++ b/meta/recipes-support/curl/curl/CVE-2026-87865.patch
> @@ -0,0 +1,216 @@
> +From a7622dc02ccc01f7438227f1920db08268a6ccb0 Mon Sep 17 00:00:00 2001
> +From: Bobbeh Rhino <bobbeh@rhino.Rhino>
> +Date: Tue, 8 Sep 2026 06:33:27 -0400
> +Subject: [PATCH] libssh2: match hashed known_hosts entries by host
> +MIME-Version: 1.0
> +Content-Type: text/plain; charset=UTF-8
> +Content-Transfer-Encoding: 8bit
> +
> +libssh2 does not expose the plaintext name for hashed entries. Check
> +each entry key against the requested hostname before using its key type.
> +Otherwise an unrelated hashed entry can select the wrong algorithm.
> +
> +Add an SFTP regression test 3500 with an unrelated hashed entry before
> +the requested host.
> +
> +Closes #22874
> +
> +CVE: CVE-2026-87865
> +Upstream-Status: Backport [ https://github.com/curl/curl/commit/323c184b6bdf5b1988a10c0a61560
> ]
> +
> +Signed-off-by: João Marcos Costa <joaomarcos.costa@bootlin.com>
> +---
> + lib/vssh/libssh2.c | 16 +++++++--
> + tests/data/Makefile.am | 2 ++
> + tests/data/test3500 | 47 +++++++++++++++++++++++++
> + tests/libtest/Makefile.am | 3 +-
> + tests/libtest/test3500.pl | 72 +++++++++++++++++++++++++++++++++++++++
> + 5 files changed, 136 insertions(+), 4 deletions(-)
> + create mode 100644 tests/data/test3500
> + create mode 100755 tests/libtest/test3500.pl
> +
> +diff --git a/lib/vssh/libssh2.c b/lib/vssh/libssh2.c
> +index 24a651d30e..cd28cde76f 100644
> +--- a/lib/vssh/libssh2.c
> ++++ b/lib/vssh/libssh2.c
> +@@ -685,9 +685,19 @@ static CURLcode ssh_force_knownhost_key_type(struct
> Curl_easy *data,
> + break;
> + }
> + }
> +- else {
> +- found = TRUE;
> +- break;
> ++ else if(store->key) {
> ++ int keycheck = libssh2_knownhost_checkp(
> ++ sshc->kh, conn->origin->hostname,
> ++ (conn->origin->port != PORT_SSH) ? conn->origin->port : -1,
> ++ store->key, strlen(store->key),
> ++ LIBSSH2_KNOWNHOST_TYPE_PLAIN |
> ++ LIBSSH2_KNOWNHOST_KEYENC_BASE64 |
> ++ (store->typemask & LIBSSH2_KNOWNHOST_KEY_MASK),
> ++ NULL);
> ++ if(keycheck == LIBSSH2_KNOWNHOST_CHECK_MATCH) {
> ++ found = TRUE;
> ++ break;
> ++ }
> + }
> + }
> + }
> +diff --git a/tests/data/Makefile.am b/tests/data/Makefile.am
> +index 3b32fce7bb..4a27927b1c 100644
> +--- a/tests/data/Makefile.am
> ++++ b/tests/data/Makefile.am
> +@@ -2090,6 +2090,8 @@ TESTCASES = \
> + test3400 \
> + test3401 \
> + \
> ++ test3500 \
> ++ \
> + test4000 \
> + test4001 \
> + \
> +diff --git a/tests/data/test3500 b/tests/data/test3500
> +new file mode 100644
> +index 0000000000..1bcf3bc17d
> +--- /dev/null
> ++++ b/tests/data/test3500
> +@@ -0,0 +1,47 @@
> ++<?xml version="1.0" encoding="US-ASCII"?>
> ++<testcase>
> ++<info>
> ++<keywords>
> ++SFTP
> ++known_hosts
> ++libssh2
> ++</keywords>
> ++</info>
> ++
> ++# Server-side
> ++<reply>
> ++<data>
> ++Test data
> ++for hashed known hosts
> ++</data>
> ++</reply>
> ++
> ++# Client-side
> ++<client>
> ++<server>
> ++sftp
> ++</server>
> ++<features>
> ++sftp
> ++libssh2
> ++!badlibssh
> ++</features>
> ++<precheck>
> ++%PERL %SRCDIR/libtest/test3500.pl %LOGDIR/server/curl_host_key.pub
> %LOGDIR/known%TESTNUMBER "[%HOSTIP]:%SSHPORT"
> ++</precheck>
> ++<name>
> ++SFTP matches requested hashed known_hosts entry
> ++</name>
> ++<command>
> ++--knownhosts %LOGDIR/known%TESTNUMBER --key
> %LOGDIR/server/curl_client_key --pubkey %LOGDIR/server/curl_client_key.pub
> -u %USER: sftp://%HOSTIP:%SSHPORT%SFTP_PWD/%LOGDIR/file%TESTNUMBER.txt
> ++</command>
> ++<file name="%LOGDIR/file%TESTNUMBER.txt">
> ++Test data
> ++for hashed known hosts
> ++</file>
> ++</client>
> ++
> ++# Verify data after the test has been "shot"
> ++<verify>
> ++</verify>
> ++</testcase>
> +diff --git a/tests/libtest/Makefile.am b/tests/libtest/Makefile.am
> +index 74eb150742..8fdf484b55 100644
> +--- a/tests/libtest/Makefile.am
> ++++ b/tests/libtest/Makefile.am
> +@@ -49,7 +49,8 @@ EXTRA_DIST = CMakeLists.txt $(FIRST_C) $(FIRST_H)
> $(UTILS_C) $(UTILS_H) $(TESTS_
> + test1022.pl \
> + test307.pl \
> + test610.pl \
> +- test613.pl
> ++ test613.pl \
> ++ test3500.pl
> +
> + CFLAGS += @CURL_CFLAG_EXTRAS@
> +
> +diff --git a/tests/libtest/test3500.pl b/tests/libtest/test3500.pl
> +new file mode 100755
> +index 0000000000..d95f54cecf
> +--- /dev/null
> ++++ b/tests/libtest/test3500.pl
> +@@ -0,0 +1,72 @@
> ++#!/usr/bin/env perl
> ++#***************************************************************************
>
> ++# _ _ ____ _
> ++# Project ___| | | | _ \| |
> ++# / __| | | | |_) | |
> ++# | (__| |_| | _ <| |___
> ++# \___|\___/|_| \_\_____|
> ++#
> ++# Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
> ++#
> ++# This software is licensed as described in the file COPYING, which
> ++# you should have received as part of this distribution. The terms
> ++# are also available at https://curl.se/docs/copyright.html.
> ++#
> ++# You may opt to use, copy, modify, merge, publish, distribute and/or
> sell
> ++# copies of the Software, and permit persons to whom the Software is
> ++# furnished to do so, under the terms of the COPYING file.
> ++#
> ++# This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF
> ANY
> ++# KIND, either express or implied.
> ++#
> ++# SPDX-License-Identifier: curl
> ++#
> ++###########################################################################
>
> ++use strict;
> ++use warnings;
> ++
> ++use Digest::SHA qw(hmac_sha1);
> ++use MIME::Base64 qw(encode_base64);
> ++
> ++sub errout {
> ++ print $_[0] . "\n";
> ++ exit 1;
> ++}
> ++
> ++if(@ARGV != 3) {
> ++ errout "Usage: $0 host-public-key known-hosts-file target";
> ++}
> ++
> ++my ($hostkey_file, $knownhosts_file, $target) = @ARGV;
> ++open(my $hostkey, "<", $hostkey_file) or errout "$!";
> ++my $hostkey_line = <$hostkey>;
> ++close($hostkey) or errout "$!";
> ++
> ++my ($hostkey_algo, $hostkey_data) = split(/\s+/, $hostkey_line);
> ++if(!$hostkey_algo || !$hostkey_data) {
> ++ errout "Failed parsing SSH host public key";
> ++}
> ++
> ++my $rsa_key =
> ++ "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCgSyqrUP2xhqLqkyopVapoKeucYIp" .
>
> ++ "ZXeUqj+Q9WLWyXka5re62Y3R/lxZUXtkJjlpdD2LNMFenNlDQvPaXH5Utllt+c3z" .
> ++ "wOkOLy7RXX5S37SfQFm/0fPkZqoZfMDB6XDcwA4cakjCRn4oZyKs8dWAxoNaTtYc" .
> ++ "nKKMJ6rmc8PttykJw9fwiKAjPyYf21/BMvWIzu9req+TrDA/Jcd2UAug94CikJIX" .
> ++ "uwKmSYleAOo4eJWx8GyujgEgZn05eq+K1LSg9RqRVIxOdqjoE5K3abBfs0rmUuLd" .
> ++ "MFh7nHseTFXYbKzpz46V7iZMfFuoyURrzVsqGUm+/m7dxBM98In12kOm3";
> ++my $ed25519_key =
> ++ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAqmXRY8k+W9GtpWxYru6ELAXYHdXq" .
> ++ "jf33ziITGTiJUN";
> ++my $other_key = $hostkey_algo eq "ssh-ed25519" ? $rsa_key :
> $ed25519_key;
> ++
> ++my $salt = "curl-knownhosts-test";
> ++my $salt64 = encode_base64($salt, "");
> ++my $hash64 = encode_base64(hmac_sha1("unrelated.invalid", $salt), "");
> ++my $target_hash64 = encode_base64(hmac_sha1($target, $salt), "");
> ++
> ++open(my $knownhosts, ">", $knownhosts_file) or errout "$!";
> ++print $knownhosts "|1|$salt64|$hash64 $other_key\n";
> ++print $knownhosts "|1|$salt64|$target_hash64 $hostkey_algo
> $hostkey_data\n";
> ++close($knownhosts) or errout "$!";
> ++
> ++exit 0;
> diff --git a/meta/recipes-support/curl/curl_8.22.0.bb
> b/meta/recipes-support/curl/curl_8.22.0.bb
> index 95d5801ad5..979e416249 100644
> --- a/meta/recipes-support/curl/curl_8.22.0.bb
> +++ b/meta/recipes-support/curl/curl_8.22.0.bb
> @@ -17,6 +17,7 @@ SRC_URI = " \
> file://CVE-2026-92388-1.patch \
> file://CVE-2026-92388-2.patch \
> file://CVE-2026-92389.patch \
> + file://CVE-2026-87865.patch \
> "
>
> SRC_URI:append:class-nativesdk = " \
> --
> 2.55.0
[-- Attachment #2: Type: text/html, Size: 10697 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2026-11-26 10:30 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-25 13:26 [blacksail][PATCH v2 0/4] curl: fix High scored CVEs João Marcos Costa (Schneider Electric)
2026-11-25 13:26 ` [blacksail][PATCH v2 1/4] curl: fix CVE-2026-87865 João Marcos Costa (Schneider Electric)
2026-11-26 10:30 ` Darsh Kelaiya -X (dkelaiya - E INFOCHIPS PRIVATE LIMITED at Cisco)
2026-11-25 13:26 ` [blacksail][PATCH v2 2/4] curl: fix CVE-2026-92386 João Marcos Costa (Schneider Electric)
2026-11-25 13:26 ` [blacksail][PATCH v2 3/4] curl: fix CVE-2026-92391 João Marcos Costa (Schneider Electric)
2026-11-25 13:26 ` [blacksail][PATCH v2 4/4] curl: fix CVE-2026-94266 João Marcos Costa (Schneider Electric)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox