summaryrefslogtreecommitdiffstats
path: root/meta/recipes-support
diff options
context:
space:
mode:
authorPeter Marko <peter.marko@siemens.com>2026-01-10 18:36:26 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2026-01-26 09:45:39 +0000
commit41c8c7c5c5e5483494c23019337491f28a88f88f (patch)
tree51db3585f9ead667841b922b7ca65a813aa25b10 /meta/recipes-support
parentea774774ef9c06cf4a4e89cfd684e72e2c6725e3 (diff)
downloadpoky-41c8c7c5c5e5483494c23019337491f28a88f88f.tar.gz
curl: patch CVE-2025-15079
Pick patch per [1]. [1] https://curl.se/docs/CVE-2025-15079.html (From OE-Core rev: 48a162d90daada0f992e665696f7f2e738780af1) Signed-off-by: Peter Marko <peter.marko@siemens.com> Signed-off-by: Yoann Congal <yoann.congal@smile.fr> Signed-off-by: Paul Barker <paul@pbarker.dev> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-support')
-rw-r--r--meta/recipes-support/curl/curl/CVE-2025-15079.patch32
-rw-r--r--meta/recipes-support/curl/curl_8.7.1.bb1
2 files changed, 33 insertions, 0 deletions
diff --git a/meta/recipes-support/curl/curl/CVE-2025-15079.patch b/meta/recipes-support/curl/curl/CVE-2025-15079.patch
new file mode 100644
index 0000000000..47fa518309
--- /dev/null
+++ b/meta/recipes-support/curl/curl/CVE-2025-15079.patch
@@ -0,0 +1,32 @@
1From adca486c125d9a6d9565b9607a19dce803a8b479 Mon Sep 17 00:00:00 2001
2From: Daniel Stenberg <daniel@haxx.se>
3Date: Wed, 24 Dec 2025 17:47:03 +0100
4Subject: [PATCH] libssh: set both knownhosts options to the same file
5
6Reported-by: Harry Sintonen
7
8Closes #20092
9
10CVE: CVE-2025-15079
11Upstream-Status: Backport [https://github.com/curl/curl/commit/adca486c125d9a6d9565b9607a19dce803a8b479]
12Signed-off-by: Peter Marko <peter.marko@siemens.com>
13---
14 lib/vssh/libssh.c | 5 +++++
15 1 file changed, 5 insertions(+)
16
17diff --git a/lib/vssh/libssh.c b/lib/vssh/libssh.c
18index 7d5905c83d..98c109ab59 100644
19--- a/lib/vssh/libssh.c
20+++ b/lib/vssh/libssh.c
21@@ -2224,6 +2224,11 @@ static CURLcode myssh_connect(struct Curl_easy *data, bool *done)
22 infof(data, "Known hosts: %s", data->set.str[STRING_SSH_KNOWNHOSTS]);
23 rc = ssh_options_set(ssh->ssh_session, SSH_OPTIONS_KNOWNHOSTS,
24 data->set.str[STRING_SSH_KNOWNHOSTS]);
25+ if(rc == SSH_OK)
26+ /* libssh has two separate options for this. Set both to the same file
27+ to avoid surprises */
28+ rc = ssh_options_set(ssh->ssh_session, SSH_OPTIONS_GLOBAL_KNOWNHOSTS,
29+ data->set.str[STRING_SSH_KNOWNHOSTS]);
30 if(rc != SSH_OK) {
31 failf(data, "Could not set known hosts file path");
32 return CURLE_FAILED_INIT;
diff --git a/meta/recipes-support/curl/curl_8.7.1.bb b/meta/recipes-support/curl/curl_8.7.1.bb
index 3134846e57..85b91ef958 100644
--- a/meta/recipes-support/curl/curl_8.7.1.bb
+++ b/meta/recipes-support/curl/curl_8.7.1.bb
@@ -28,6 +28,7 @@ SRC_URI = " \
28 file://CVE-2025-14017.patch \ 28 file://CVE-2025-14017.patch \
29 file://0001-build-enable-Wcast-qual-fix-or-silence-compiler-warn.patch \ 29 file://0001-build-enable-Wcast-qual-fix-or-silence-compiler-warn.patch \
30 file://CVE-2025-14819.patch \ 30 file://CVE-2025-14819.patch \
31 file://CVE-2025-15079.patch \
31" 32"
32 33
33SRC_URI:append:class-nativesdk = " \ 34SRC_URI:append:class-nativesdk = " \