diff options
| author | Archana Polampalli <archana.polampalli@windriver.com> | 2025-10-31 10:58:04 +0530 |
|---|---|---|
| committer | Steve Sakoman <steve@sakoman.com> | 2025-11-06 07:14:05 -0800 |
| commit | 0de012f0f69228d3b35f3233930a3985bb5d85ea (patch) | |
| tree | b74880dcb5f204784ae4ce69859822ce308fab66 /meta/recipes-connectivity | |
| parent | c4200e606c6125396e7b91b5d1042bf4c0e27394 (diff) | |
| download | poky-0de012f0f69228d3b35f3233930a3985bb5d85ea.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.
(From OE-Core rev: 5170bd2f8a63bcc310667a327ea2ab96c783c4f6)
Signed-off-by: Archana Polampalli <archana.polampalli@windriver.com>
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.patch | 35 | ||||
| -rw-r--r-- | meta/recipes-connectivity/openssh/openssh_8.9p1.bb | 1 |
2 files changed, 36 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..7333d5aae8 --- /dev/null +++ b/meta/recipes-connectivity/openssh/openssh/CVE-2025-61985.patch | |||
| @@ -0,0 +1,35 @@ | |||
| 1 | From 54928cb9eaa7143ff17f463efa7ed3109afdbf30 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: "djm@openbsd.org" <djm@openbsd.org> | ||
| 3 | Date: Thu, 4 Sep 2025 00:30:06 +0000 | ||
| 4 | Subject: [PATCH] upstream: don't allow \0 characters in url-encoded strings. | ||
| 5 | Suggested by David Leadbeater, ok deraadt@ | ||
| 6 | |||
| 7 | OpenBSD-Commit-ID: c92196cef0f970ceabc1e8007a80b01e9b7cd49c | ||
| 8 | |||
| 9 | CVE: CVE-2025-61985 | ||
| 10 | |||
| 11 | Upstream-Status: Backport [https://github.com/openssh/openssh-portable/commit/43b3bff47bb029f2299bacb6a36057981b39fdb0] | ||
| 12 | |||
| 13 | Signed-off-by: Archana Polampalli <archana.polampalli@windriver.com> | ||
| 14 | --- | ||
| 15 | misc.c | 3 ++- | ||
| 16 | 1 file changed, 2 insertions(+), 1 deletion(-) | ||
| 17 | |||
| 18 | diff --git a/misc.c b/misc.c | ||
| 19 | index 6135b15..3d133b5 100644 | ||
| 20 | --- a/misc.c | ||
| 21 | +++ b/misc.c | ||
| 22 | @@ -934,9 +934,10 @@ urldecode(const char *src) | ||
| 23 | *dst++ = ' '; | ||
| 24 | break; | ||
| 25 | case '%': | ||
| 26 | + /* note: don't allow \0 characters */ | ||
| 27 | if (!isxdigit((unsigned char)src[1]) || | ||
| 28 | !isxdigit((unsigned char)src[2]) || | ||
| 29 | - (ch = hexchar(src + 1)) == -1) { | ||
| 30 | + (ch = hexchar(src + 1)) == -1 || ch == 0) { | ||
| 31 | free(ret); | ||
| 32 | return NULL; | ||
| 33 | } | ||
| 34 | -- | ||
| 35 | 2.40.0 | ||
diff --git a/meta/recipes-connectivity/openssh/openssh_8.9p1.bb b/meta/recipes-connectivity/openssh/openssh_8.9p1.bb index 345051c8dc..780ece8999 100644 --- a/meta/recipes-connectivity/openssh/openssh_8.9p1.bb +++ b/meta/recipes-connectivity/openssh/openssh_8.9p1.bb | |||
| @@ -39,6 +39,7 @@ SRC_URI = "http://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-${PV}.tar | |||
| 39 | file://CVE-2024-6387.patch \ | 39 | file://CVE-2024-6387.patch \ |
| 40 | file://CVE-2025-26465.patch \ | 40 | file://CVE-2025-26465.patch \ |
| 41 | file://CVE-2025-32728.patch \ | 41 | file://CVE-2025-32728.patch \ |
| 42 | file://CVE-2025-61985.patch \ | ||
| 42 | " | 43 | " |
| 43 | SRC_URI[sha256sum] = "fd497654b7ab1686dac672fb83dfb4ba4096e8b5ffcdaccd262380ae58bec5e7" | 44 | SRC_URI[sha256sum] = "fd497654b7ab1686dac672fb83dfb4ba4096e8b5ffcdaccd262380ae58bec5e7" |
| 44 | 45 | ||
