diff options
| author | Peter Marko <peter.marko@siemens.com> | 2026-01-10 18:36:34 +0100 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2026-01-26 09:49:25 +0000 |
| commit | 2bf97e4e41378595fb72c878e095fa2ed1d09ac6 (patch) | |
| tree | 066faabc351bd44c3cfa0e8301a09a99d0301820 | |
| parent | fd21399bac8bfdd89611eec93b0afab8547c39d8 (diff) | |
| download | poky-2bf97e4e41378595fb72c878e095fa2ed1d09ac6.tar.gz | |
curl: patch CVE-2025-15079
Pick patch per [1].
[1] https://curl.se/docs/CVE-2025-15079.html
(From OE-Core rev: 8ce2a761c2f00e9c7782654cf6d6384ccd3f6e16)
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>
| -rw-r--r-- | meta/recipes-support/curl/curl/CVE-2025-15079.patch | 32 | ||||
| -rw-r--r-- | meta/recipes-support/curl/curl_7.82.0.bb | 1 |
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 @@ | |||
| 1 | From adca486c125d9a6d9565b9607a19dce803a8b479 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Daniel Stenberg <daniel@haxx.se> | ||
| 3 | Date: Wed, 24 Dec 2025 17:47:03 +0100 | ||
| 4 | Subject: [PATCH] libssh: set both knownhosts options to the same file | ||
| 5 | |||
| 6 | Reported-by: Harry Sintonen | ||
| 7 | |||
| 8 | Closes #20092 | ||
| 9 | |||
| 10 | CVE: CVE-2025-15079 | ||
| 11 | Upstream-Status: Backport [https://github.com/curl/curl/commit/adca486c125d9a6d9565b9607a19dce803a8b479] | ||
| 12 | Signed-off-by: Peter Marko <peter.marko@siemens.com> | ||
| 13 | --- | ||
| 14 | lib/vssh/libssh.c | 5 +++++ | ||
| 15 | 1 file changed, 5 insertions(+) | ||
| 16 | |||
| 17 | diff --git a/lib/vssh/libssh.c b/lib/vssh/libssh.c | ||
| 18 | index 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 | " |
| 72 | SRC_URI[sha256sum] = "0aaa12d7bd04b0966254f2703ce80dd5c38dbbd76af0297d3d690cdce58a583c" | 73 | SRC_URI[sha256sum] = "0aaa12d7bd04b0966254f2703ce80dd5c38dbbd76af0297d3d690cdce58a583c" |
| 73 | 74 | ||
