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 03/10] openssh: Fix CVE-2026-106587
Date: Tue, 24 Nov 2026 02:55:26 -0800 [thread overview]
Message-ID: <20261124105533.348654-4-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/526fd2771342f36142099bec82c49ce0457c5016
[2] https://ubuntu.com/security/CVE-2026-106587
Signed-off-by: Ashishkumar Parmar <asparmar@cisco.com>
---
.../openssh/openssh/CVE-2026-106587.patch | 56 +++++++++++++++++++
.../openssh/openssh_10.5p1.bb | 1 +
2 files changed, 57 insertions(+)
create mode 100644 meta/recipes-connectivity/openssh/openssh/CVE-2026-106587.patch
diff --git a/meta/recipes-connectivity/openssh/openssh/CVE-2026-106587.patch b/meta/recipes-connectivity/openssh/openssh/CVE-2026-106587.patch
new file mode 100644
index 0000000000..db60004ea2
--- /dev/null
+++ b/meta/recipes-connectivity/openssh/openssh/CVE-2026-106587.patch
@@ -0,0 +1,56 @@
+From 65a4ca5e5fe7b0980991829f09f06c3c66572289 Mon Sep 17 00:00:00 2001
+From: "djm@openbsd.org" <djm@openbsd.org>
+Date: Wed, 16 Sep 2026 00:35:09 +0000
+Subject: [PATCH] upstream: Correctly handle some options that accept "none"
+
+Some options, including AuthorizedPrincipalsFile were documented as accepting
+"none" as a way to disable them, however when overriddes by a ssh_config(5)
+Match keyword, this argument was being interpreted as a literal file.
+
+With Chris Rohlf in collaboration with Claude and Anthropic Research
+
+ok markus, deraadt
+
+OpenBSD-Commit-ID: 802f3a7695eba20924c05e500b0ecd34ec877756
+
+CVE: CVE-2026-106587
+Upstream-Status: Backport [https://github.com/openssh/openssh-portable/commit/526fd2771342f36142099bec82c49ce0457c5016]
+
+Backport Changes:
+- Omit the servconf.c OpenBSD revision-only hunk.
+- Retain the existing post-authentication cleanup and undefine
+ CLEAR_ON_NONE after clearing the three pre-authentication options.
+
+Signed-off-by: Ashishkumar Parmar <asparmar@cisco.com>
+---
+ servconf.c | 17 +++++++++++++++++
+ 1 file changed, 17 insertions(+)
+
+diff --git a/servconf.c b/servconf.c
+index ac0c31d..79afa7c 100644
+--- a/servconf.c
++++ b/servconf.c
+@@ -3949,6 +3949,23 @@ copy_set_server_options(ServerOptions *dst, ServerOptions *src, int preauth)
+ /* Arguments that accept '+...' need to be expanded */
+ assemble_algorithms(dst);
+
++ /*
++ * These options may be "none" to clear a global setting. They are
++ * consulted before authentication, so they must be cleared here
++ * rather than in the post-auth section below.
++ */
++#define CLEAR_ON_NONE(v) \
++ do { \
++ if (option_clear_or_none(v)) { \
++ free(v); \
++ v = NULL; \
++ } \
++ } while(0)
++ CLEAR_ON_NONE(dst->authorized_principals_file);
++ CLEAR_ON_NONE(dst->trusted_user_ca_keys);
++ CLEAR_ON_NONE(dst->banner);
++#undef CLEAR_ON_NONE
++
+ /*
+ * The only things that should be below this point are string options
+ * which are only used after authentication.
diff --git a/meta/recipes-connectivity/openssh/openssh_10.5p1.bb b/meta/recipes-connectivity/openssh/openssh_10.5p1.bb
index 5b546e4b53..495c69c0ec 100644
--- a/meta/recipes-connectivity/openssh/openssh_10.5p1.bb
+++ b/meta/recipes-connectivity/openssh/openssh_10.5p1.bb
@@ -29,6 +29,7 @@ SRC_URI = "https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-${PV}.ta
file://CVE-2026-106586_p1.patch \
file://CVE-2026-106586_p2.patch \
file://CVE-2026-106586_p3.patch \
+ file://CVE-2026-106587.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 ` Ashishkumar Parmar X (asparmar - E INFOCHIPS PRIVATE LIMITED at Cisco) [this message]
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 ` [OE-core][blacksail][PATCH 09/10] openssh: Fix CVE-2026-106552 Ashishkumar Parmar X (asparmar - E INFOCHIPS PRIVATE LIMITED at Cisco)
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-4-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