summaryrefslogtreecommitdiffstats
path: root/meta/recipes-connectivity
diff options
context:
space:
mode:
authorDavid Nyström <david.nystrom@est.tech>2025-10-15 14:20:27 +0200
committerSteve Sakoman <steve@sakoman.com>2025-10-24 06:23:40 -0700
commita7fdce2a68068ed3028914473578efd8c6a7c947 (patch)
tree338d41fe58fcda982445d8b5032b2ace579ad249 /meta/recipes-connectivity
parentbf8139e03b13ad084617c3cf464bc307e64cd219 (diff)
downloadpoky-a7fdce2a68068ed3028914473578efd8c6a7c947.tar.gz
openssh: fix CVE-2025-61985
ssh in OpenSSH before 10.1 allows the '\0' character in an ssh:// URI, potentially leading to code execution when a ProxyCommand is used. Reference: https://nvd.nist.gov/vuln/detail/CVE-2025-61985 Upstream patch: https://github.com/openssh/openssh-portable/commit/43b3bff47bb029f2299bacb6a36057981b39fdb0 (From OE-Core rev: 52d925423b826383d12a97b834475ab5699fd492) Signed-off-by: David Nyström <david.nystrom@est.tech> Signed-off-by: Steve Sakoman <steve@sakoman.com>
Diffstat (limited to 'meta/recipes-connectivity')
-rw-r--r--meta/recipes-connectivity/openssh/openssh/CVE-2025-61985.patch47
-rw-r--r--meta/recipes-connectivity/openssh/openssh_9.6p1.bb1
2 files changed, 48 insertions, 0 deletions
diff --git a/meta/recipes-connectivity/openssh/openssh/CVE-2025-61985.patch b/meta/recipes-connectivity/openssh/openssh/CVE-2025-61985.patch
new file mode 100644
index 0000000000..9f4de0ed56
--- /dev/null
+++ b/meta/recipes-connectivity/openssh/openssh/CVE-2025-61985.patch
@@ -0,0 +1,47 @@
1From 54928cb9eaa7143ff17f463efa7ed3109afdbf30 Mon Sep 17 00:00:00 2001
2From: "djm@openbsd.org" <djm@openbsd.org>
3Date: Thu, 4 Sep 2025 00:30:06 +0000
4Subject: [PATCH] upstream: don't allow \0 characters in url-encoded strings.
5MIME-Version: 1.0
6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit
8
9Suggested by David Leadbeater, ok deraadt@
10
11OpenBSD-Commit-ID: c92196cef0f970ceabc1e8007a80b01e9b7cd49c
12
13Upstream-Status: Backport [Upstream commit https://github.com/openssh/openssh-portable/commit/43b3bff47bb029f2299bacb6a36057981b39fdb0]
14CVE: CVE-2025-61985
15Signed-off-by: David Nyström <david.nystrom@est.tech>
16---
17 misc.c | 5 +++--
18 1 file changed, 3 insertions(+), 2 deletions(-)
19
20diff --git a/misc.c b/misc.c
21index 3db2e4d0b..cac246b63 100644
22--- a/misc.c
23+++ b/misc.c
24@@ -955,7 +955,7 @@ urldecode(const char *src)
25 size_t srclen;
26
27 if ((srclen = strlen(src)) >= SIZE_MAX)
28- fatal_f("input too large");
29+ return NULL;
30 ret = xmalloc(srclen + 1);
31 for (dst = ret; *src != '\0'; src++) {
32 switch (*src) {
33@@ -963,9 +963,10 @@ urldecode(const char *src)
34 *dst++ = ' ';
35 break;
36 case '%':
37+ /* note: don't allow \0 characters */
38 if (!isxdigit((unsigned char)src[1]) ||
39 !isxdigit((unsigned char)src[2]) ||
40- (ch = hexchar(src + 1)) == -1) {
41+ (ch = hexchar(src + 1)) == -1 || ch == 0) {
42 free(ret);
43 return NULL;
44 }
45--
462.44.1
47
diff --git a/meta/recipes-connectivity/openssh/openssh_9.6p1.bb b/meta/recipes-connectivity/openssh/openssh_9.6p1.bb
index afcd50c7e6..bdb8a1599b 100644
--- a/meta/recipes-connectivity/openssh/openssh_9.6p1.bb
+++ b/meta/recipes-connectivity/openssh/openssh_9.6p1.bb
@@ -32,6 +32,7 @@ SRC_URI = "http://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-${PV}.tar
32 file://CVE-2025-26466.patch \ 32 file://CVE-2025-26466.patch \
33 file://CVE-2025-26465.patch \ 33 file://CVE-2025-26465.patch \
34 file://CVE-2025-32728.patch \ 34 file://CVE-2025-32728.patch \
35 file://CVE-2025-61985.patch \
35 " 36 "
36SRC_URI[sha256sum] = "910211c07255a8c5ad654391b40ee59800710dd8119dd5362de09385aa7a777c" 37SRC_URI[sha256sum] = "910211c07255a8c5ad654391b40ee59800710dd8119dd5362de09385aa7a777c"
37 38