mirror of
https://git.yoctoproject.org/poky
synced 2026-10-16 17:27:06 +00:00
openssh: Fix CVE-2026-59995
This patch applies the upstream OpenSSH 10.4 backport for CVE-2026-59995. The upstream fix commit is referenced in [1], and the public CVE advisory is referenced in [2]. [1] https://github.com/openssh/openssh-portable/commit/1b39f39657d2e58f8ec57341581a39bbf0be645b [2] https://nvd.nist.gov/vuln/detail/CVE-2026-59995 (From OE-Core rev: 9967952fbfcb130477521324bc9899dafc277439) Signed-off-by: Devansh Patel <devanshp@cisco.com> Signed-off-by: Yoann Congal <yoann.congal@smile.fr> Signed-off-by: Paul Barker <paul@pbarker.dev>
This commit is contained in:
1 parent
a116ddae05
commit
6f56dca72f
2 files changed
+43
No files matched your search
@@ -0,0 +1,42 @@
|
||||
From b340eaa274a7e7dffea03bcb62169249bbddab37 Mon Sep 17 00:00:00 2001
|
||||
From: "djm@openbsd.org" <djm@openbsd.org>
|
||||
Date: Mon, 29 Jun 2026 01:47:21 +0000
|
||||
Subject: [PATCH] upstream: avoid download to server-controlled path when
|
||||
performing
|
||||
|
||||
download on the commandline. From Swival scanner
|
||||
|
||||
CVE: CVE-2026-59995
|
||||
Upstream-Status: Backport [https://github.com/openssh/openssh-portable/commit/1b39f39657d2e58f8ec57341581a39bbf0be645b]
|
||||
|
||||
Backport Changes:
|
||||
- Retained the Scarthgap sftp.c OpenBSD revision identifier because the
|
||||
10.4 identifier does not describe the older source baseline.
|
||||
|
||||
OpenBSD-Commit-ID: d1b2c44305fdfe6d51eed9ecc727e59478bf311f
|
||||
(cherry picked from commit 1b39f39657d2e58f8ec57341581a39bbf0be645b)
|
||||
Signed-off-by: Devansh Patel <devanshp@cisco.com>
|
||||
---
|
||||
sftp.c | 9 ++-------
|
||||
1 file changed, 2 insertions(+), 7 deletions(-)
|
||||
|
||||
diff --git a/sftp.c b/sftp.c
|
||||
index c609b4153..487e53976 100644
|
||||
--- a/sftp.c
|
||||
+++ b/sftp.c
|
||||
@@ -2268,13 +2268,8 @@ interactive_loop(struct sftp_conn *conn, char *file1, char *file2)
|
||||
return (-1);
|
||||
}
|
||||
} else {
|
||||
- /* XXX this is wrong wrt quoting */
|
||||
- snprintf(cmd, sizeof cmd, "get%s %s%s%s",
|
||||
- global_aflag ? " -a" : "", dir,
|
||||
- file2 == NULL ? "" : " ",
|
||||
- file2 == NULL ? "" : file2);
|
||||
- err = parse_dispatch_command(conn, cmd,
|
||||
- &remote_path, startdir, 1, 0);
|
||||
+ err = process_get(conn, dir, file2, remote_path, 0, 0,
|
||||
+ global_aflag, 0);
|
||||
free(dir);
|
||||
free(startdir);
|
||||
free(remote_path);
|
||||
@@ -40,6 +40,7 @@ SRC_URI = "http://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-${PV}.tar
|
||||
file://CVE-2026-59999.patch \
|
||||
file://CVE-2026-59997.patch \
|
||||
file://CVE-2026-59996.patch \
|
||||
file://CVE-2026-59995.patch \
|
||||
"
|
||||
SRC_URI[sha256sum] = "910211c07255a8c5ad654391b40ee59800710dd8119dd5362de09385aa7a777c"
|
||||
|
||||
|
||||
Reference in new issue
Block a user