summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/recipes-support/curl/curl/CVE-2025-15079.patch32
-rw-r--r--meta/recipes-support/curl/curl_7.82.0.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_7.82.0.bb b/meta/recipes-support/curl/curl_7.82.0.bb
index db3dc01929..9c1a90e191 100644
--- a/meta/recipes-support/curl/curl_7.82.0.bb
+++ b/meta/recipes-support/curl/curl_7.82.0.bb
@@ -68,6 +68,7 @@ SRC_URI = "https://curl.se/download/${BP}.tar.xz \
68 file://CVE-2025-0167.patch \ 68 file://CVE-2025-0167.patch \
69 file://CVE-2025-9086.patch \ 69 file://CVE-2025-9086.patch \
70 file://CVE-2025-14017.patch \ 70 file://CVE-2025-14017.patch \
71 file://CVE-2025-15079.patch \
71 " 72 "
72SRC_URI[sha256sum] = "0aaa12d7bd04b0966254f2703ce80dd5c38dbbd76af0297d3d690cdce58a583c" 73SRC_URI[sha256sum] = "0aaa12d7bd04b0966254f2703ce80dd5c38dbbd76af0297d3d690cdce58a583c"
73 74