From: "Ashishkumar Parmar X (asparmar - E INFOCHIPS PRIVATE LIMITED at Cisco)" <asparmar@cisco.com>
To: openembedded-core@lists.openembedded.org
Subject: [OE-core][blacksail][PATCH 09/10] openssh: Fix CVE-2026-106552
Date: Tue, 24 Nov 2026 02:55:32 -0800 [thread overview]
Message-ID: <20261124105533.348654-10-asparmar@cisco.com> (raw)
In-Reply-To: <20261124105533.348654-1-asparmar@cisco.com>
From: Ashishkumar Parmar <asparmar@cisco.com>
This patch applies the upstream fix as referenced in [2], using the
commit shown in [1].
[1] https://github.com/openssh/openssh-portable/commit/c07ea2180adebd6019a6ebdd89becb9d9f4b4897
[2] https://ubuntu.com/security/CVE-2026-106552
Signed-off-by: Ashishkumar Parmar <asparmar@cisco.com>
---
.../openssh/openssh/CVE-2026-106552.patch | 62 +++++++++++++++++++
.../openssh/openssh_10.5p1.bb | 1 +
2 files changed, 63 insertions(+)
create mode 100644 meta/recipes-connectivity/openssh/openssh/CVE-2026-106552.patch
diff --git a/meta/recipes-connectivity/openssh/openssh/CVE-2026-106552.patch b/meta/recipes-connectivity/openssh/openssh/CVE-2026-106552.patch
new file mode 100644
index 0000000000..edfe267052
--- /dev/null
+++ b/meta/recipes-connectivity/openssh/openssh/CVE-2026-106552.patch
@@ -0,0 +1,62 @@
+From e6004a489f53846268117c975184e1c1a4ddc21c Mon Sep 17 00:00:00 2001
+From: "djm@openbsd.org" <djm@openbsd.org>
+Date: Thu, 1 Oct 2026 03:11:49 +0000
+Subject: [PATCH] upstream: sftp: be stricter in accepting paths returned by
+ the
+
+server for SSH_FXP_REALPATH or SSH2_FXP_READDIR replies, as these can be used
+in some situations to decide the destination path for recursive transfers.
+
+Report and patch from Junghoon Cho
+
+OpenBSD-Commit-ID: ad357002a1b75c87113f01086a9f0c12c36082d8
+
+CVE: CVE-2026-106552
+Upstream-Status: Backport [https://github.com/openssh/openssh-portable/commit/c07ea2180adebd6019a6ebdd89becb9d9f4b4897]
+
+Backport Changes:
+- Omit the upstream OpenBSD revision-only hunks.
+
+Signed-off-by: Ashishkumar Parmar <asparmar@cisco.com>
+---
+ sftp-client.c | 3 ++-
+ sftp.c | 12 +++++++++---
+ 2 files changed, 11 insertions(+), 4 deletions(-)
+
+diff --git a/sftp-client.c b/sftp-client.c
+index 1f03112..9b7d0a0 100644
+--- a/sftp-client.c
++++ b/sftp-client.c
+@@ -791,7 +791,8 @@ sftp_lsreaddir(struct sftp_conn *conn, const char *path, int print_flag,
+ * These can be used to attack recursive ops
+ * (e.g. send '../../../../etc/passwd')
+ */
+- if (strpbrk(filename, SFTP_DIRECTORY_CHARS) != NULL) {
++ if (*filename == '\0' ||
++ strpbrk(filename, SFTP_DIRECTORY_CHARS) != NULL) {
+ error("Server sent suspect path \"%s\" "
+ "during readdir of \"%s\"", filename, path);
+ } else if (dir) {
+diff --git a/sftp.c b/sftp.c
+index 31d8fa4..8cdcd44 100644
+--- a/sftp.c
++++ b/sftp.c
+@@ -675,9 +675,15 @@ process_get(struct sftp_conn *conn, const char *src, const char *dst,
+ goto out;
+ }
+
+- /* Special handling for dest of '..' */
+- if (strcmp(filename, "..") == 0)
+- filename = "."; /* Download to dest, not dest/.. */
++ /*
++ * Special handling for destinations of '..' and remote roots.
++ * In particular, never select the local root as an implicit
++ * destination for a remote root.
++ */
++ if (strcmp(filename, "..") == 0 ||
++ (filename[0] != '\0' &&
++ filename[strspn(filename, "/")] == '\0'))
++ filename = ".";
+
+ if (g.gl_matchc == 1 && dst) {
+ if (local_is_dir(dst)) {
diff --git a/meta/recipes-connectivity/openssh/openssh_10.5p1.bb b/meta/recipes-connectivity/openssh/openssh_10.5p1.bb
index 4db5a42957..04454382c4 100644
--- a/meta/recipes-connectivity/openssh/openssh_10.5p1.bb
+++ b/meta/recipes-connectivity/openssh/openssh_10.5p1.bb
@@ -33,6 +33,7 @@ SRC_URI = "https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-${PV}.ta
file://CVE-2026-106582.patch \
file://CVE-2026-106585.patch \
file://CVE-2026-106583.patch \
+ file://CVE-2026-106552.patch \
"
SRC_URI[sha256sum] = "d44d28a839ea9daf969cc69150fde59910b2b39361dad81a3bd6cbd19218db11"
--
2.35.6
next prev parent reply other threads:[~2026-11-24 10:56 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-24 10:55 [OE-core][blacksail][PATCH 00/10] openssh: Security fixes (2026-11-24) Ashishkumar Parmar X (asparmar - E INFOCHIPS PRIVATE LIMITED at Cisco)
2026-11-24 10:55 ` [OE-core][blacksail][PATCH 01/10] openssh: Fix CVE-2026-106584 Ashishkumar Parmar X (asparmar - E INFOCHIPS PRIVATE LIMITED at Cisco)
2026-11-24 10:55 ` [OE-core][blacksail][PATCH 02/10] openssh: Fix CVE-2026-106586 Ashishkumar Parmar X (asparmar - E INFOCHIPS PRIVATE LIMITED at Cisco)
2026-11-24 10:55 ` [OE-core][blacksail][PATCH 03/10] openssh: Fix CVE-2026-106587 Ashishkumar Parmar X (asparmar - E INFOCHIPS PRIVATE LIMITED at Cisco)
2026-11-24 10:55 ` [OE-core][blacksail][PATCH 04/10] openssh: Fix CVE-2026-106582 Ashishkumar Parmar X (asparmar - E INFOCHIPS PRIVATE LIMITED at Cisco)
2026-11-24 10:55 ` [OE-core][blacksail][PATCH 05/10] openssh: Fix CVE-2026-106585 Ashishkumar Parmar X (asparmar - E INFOCHIPS PRIVATE LIMITED at Cisco)
2026-11-24 10:55 ` [OE-core][blacksail][PATCH 06/10] openssh: Ignore CVE-2026-106588 Ashishkumar Parmar X (asparmar - E INFOCHIPS PRIVATE LIMITED at Cisco)
2026-11-24 10:55 ` [OE-core][blacksail][PATCH 07/10] openssh: Ignore CVE-2026-106589 Ashishkumar Parmar X (asparmar - E INFOCHIPS PRIVATE LIMITED at Cisco)
2026-11-24 10:55 ` [OE-core][blacksail][PATCH 08/10] openssh: Fix CVE-2026-106583 Ashishkumar Parmar X (asparmar - E INFOCHIPS PRIVATE LIMITED at Cisco)
2026-11-24 10:55 ` Ashishkumar Parmar X (asparmar - E INFOCHIPS PRIVATE LIMITED at Cisco) [this message]
2026-11-24 10:55 ` [OE-core][blacksail][PATCH 10/10] openssh: Fix CVE-2026-106553 and CVE-2026-106555 Ashishkumar Parmar X (asparmar - E INFOCHIPS PRIVATE LIMITED at Cisco)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261124105533.348654-10-asparmar@cisco.com \
--to=asparmar@cisco.com \
--cc=openembedded-core@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox