diff options
| author | Peter Marko <peter.marko@siemens.com> | 2026-01-10 18:36:27 +0100 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2026-01-26 09:45:39 +0000 |
| commit | 4581b795c68aefc719fcfed7805000204382b284 (patch) | |
| tree | 595ec05d44bdcc8685ffe9db04c44f7471ecf243 /meta | |
| parent | 41c8c7c5c5e5483494c23019337491f28a88f88f (diff) | |
| download | poky-4581b795c68aefc719fcfed7805000204382b284.tar.gz | |
curl: patch CVE-2025-15224
Pick patch per [1].
[1] https://curl.se/docs/CVE-2025-15224.html
(From OE-Core rev: 83c7d4acc5da661b44055db95355c3c420f7afac)
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')
| -rw-r--r-- | meta/recipes-support/curl/curl/CVE-2025-15224.patch | 31 | ||||
| -rw-r--r-- | meta/recipes-support/curl/curl_8.7.1.bb | 1 |
2 files changed, 32 insertions, 0 deletions
diff --git a/meta/recipes-support/curl/curl/CVE-2025-15224.patch b/meta/recipes-support/curl/curl/CVE-2025-15224.patch new file mode 100644 index 0000000000..dc07f92100 --- /dev/null +++ b/meta/recipes-support/curl/curl/CVE-2025-15224.patch | |||
| @@ -0,0 +1,31 @@ | |||
| 1 | From 16d5f2a5660c61cc27bd5f1c7f512391d1c927aa Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Harry Sintonen <sintonen@iki.fi> | ||
| 3 | Date: Mon, 29 Dec 2025 16:56:39 +0100 | ||
| 4 | Subject: [PATCH] libssh: require private key or user-agent for public key auth | ||
| 5 | |||
| 6 | Closes #20110 | ||
| 7 | |||
| 8 | CVE: CVE-2025-15224 | ||
| 9 | Upstream-Status: Backport [https://github.com/curl/curl/commit/16d5f2a5660c61cc27bd5f1c7f512391d1c927aa] | ||
| 10 | Signed-off-by: Peter Marko <peter.marko@siemens.com> | ||
| 11 | --- | ||
| 12 | lib/vssh/libssh.c | 6 +++++- | ||
| 13 | 1 file changed, 5 insertions(+), 1 deletion(-) | ||
| 14 | |||
| 15 | diff --git a/lib/vssh/libssh.c b/lib/vssh/libssh.c | ||
| 16 | index 5d5125b526..bde6355f73 100644 | ||
| 17 | --- a/lib/vssh/libssh.c | ||
| 18 | +++ b/lib/vssh/libssh.c | ||
| 19 | @@ -751,7 +751,11 @@ static CURLcode myssh_statemach_act(struct Curl_easy *data, bool *block) | ||
| 20 | "keyboard-interactive, " : "", | ||
| 21 | sshc->auth_methods & SSH_AUTH_METHOD_PASSWORD ? | ||
| 22 | "password": ""); | ||
| 23 | - if(sshc->auth_methods & SSH_AUTH_METHOD_PUBLICKEY) { | ||
| 24 | + /* For public key auth we need either the private key or | ||
| 25 | + CURLSSH_AUTH_AGENT. */ | ||
| 26 | + if((sshc->auth_methods & SSH_AUTH_METHOD_PUBLICKEY) && | ||
| 27 | + (data->set.str[STRING_SSH_PRIVATE_KEY] || | ||
| 28 | + (data->set.ssh_auth_types & CURLSSH_AUTH_AGENT))) { | ||
| 29 | state(data, SSH_AUTH_PKEY_INIT); | ||
| 30 | infof(data, "Authentication using SSH public key file"); | ||
| 31 | } | ||
diff --git a/meta/recipes-support/curl/curl_8.7.1.bb b/meta/recipes-support/curl/curl_8.7.1.bb index 85b91ef958..ecda13a04e 100644 --- a/meta/recipes-support/curl/curl_8.7.1.bb +++ b/meta/recipes-support/curl/curl_8.7.1.bb | |||
| @@ -29,6 +29,7 @@ SRC_URI = " \ | |||
| 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 | file://CVE-2025-15079.patch \ |
| 32 | file://CVE-2025-15224.patch \ | ||
| 32 | " | 33 | " |
| 33 | 34 | ||
| 34 | SRC_URI:append:class-nativesdk = " \ | 35 | SRC_URI:append:class-nativesdk = " \ |
