* [OE-core][scarthgap][PATCH 0/1] openssh: Security Fix
@ 2026-10-16 3:54 Hetvi Thakar -X (hthakar - E INFOCHIPS PRIVATE LIMITED at Cisco)
2026-10-16 3:54 ` [OE-core][scarthgap][PATCH 1/1] openssh: fix CVE-2026-106587 Hetvi Thakar -X (hthakar - E INFOCHIPS PRIVATE LIMITED at Cisco)
0 siblings, 1 reply; 3+ messages in thread
From: Hetvi Thakar -X (hthakar - E INFOCHIPS PRIVATE LIMITED at Cisco) @ 2026-10-16 3:54 UTC (permalink / raw)
To: openembedded-core; +Cc: xe-linux-external
From: Hetvi Thakar <hthakar@cisco.com>
This series addresses CVE-2026-106587 in the Scarthgap
openssh 9.6p1 recipe. The patch backports the upstream
fix for handling server options set to "none" in a Match block.
The series is based on three OpenSSH patches already submitted
to OE-Core and still under review:
CVE-2026-73283:
https://patchwork.yoctoproject.org/project/oe-core/patch/20260930060027.1560262-1-hthakar@cisco.com/
CVE-2026-73282:
https://patchwork.yoctoproject.org/project/oe-core/patch/20260930060027.1560262-2-hthakar@cisco.com/
CVE-2026-73281:
https://patchwork.yoctoproject.org/project/oe-core/patch/20260930060027.1560262-3-hthakar@cisco.com/
Those three patches are prerequisites; they are not included or
resent in this one-patch series.
Validation: BitBake do_patch and do_compile, the image build,
and OpenSSH ptest completed successfully.
Hetvi Thakar (1):
openssh: fix CVE-2026-106587
.../openssh/openssh/CVE-2026-106587.patch | 76 +++++++++++++++++++
.../openssh/openssh_9.6p1.bb | 1 +
2 files changed, 77 insertions(+)
create mode 100644 meta/recipes-connectivity/openssh/openssh/CVE-2026-106587.patch
--
2.35.6
^ permalink raw reply [flat|nested] 3+ messages in thread
* [OE-core][scarthgap][PATCH 1/1] openssh: fix CVE-2026-106587
2026-10-16 3:54 [OE-core][scarthgap][PATCH 0/1] openssh: Security Fix Hetvi Thakar -X (hthakar - E INFOCHIPS PRIVATE LIMITED at Cisco)
@ 2026-10-16 3:54 ` Hetvi Thakar -X (hthakar - E INFOCHIPS PRIVATE LIMITED at Cisco)
2026-11-20 23:05 ` Yoann Congal
0 siblings, 1 reply; 3+ messages in thread
From: Hetvi Thakar -X (hthakar - E INFOCHIPS PRIVATE LIMITED at Cisco) @ 2026-10-16 3:54 UTC (permalink / raw)
To: openembedded-core; +Cc: xe-linux-external
From: Hetvi Thakar <hthakar@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://nvd.nist.gov/vuln/detail/CVE-2026-106587
Signed-off-by: Hetvi Thakar <hthakar@cisco.com>
---
.../openssh/openssh/CVE-2026-106587.patch | 76 +++++++++++++++++++
.../openssh/openssh_9.6p1.bb | 1 +
2 files changed, 77 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..53c42dce1a
--- /dev/null
+++ b/meta/recipes-connectivity/openssh/openssh/CVE-2026-106587.patch
@@ -0,0 +1,76 @@
+From 526fd2771342f36142099bec82c49ce0457c5016 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:
+- Retained the OpenSSH 9.6p1 OpenBSD revision identifier in servconf.c.
+- Kept the 9.6p1 M_CP_STROPT calls for post-authentication options; the
+ upstream copy_server_option_string helper does not exist in this version.
+
+(cherry picked from commit 526fd2771342f36142099bec82c49ce0457c5016)
+Signed-off-by: Hetvi Thakar <hthakar@cisco.com>
+---
+ servconf.c | 27 +++++++++++++++++++--------
+ 1 file changed, 19 insertions(+), 8 deletions(-)
+
+diff --git a/servconf.c b/servconf.c
+--- a/servconf.c
++++ b/servconf.c
+@@ -2791,6 +2791,22 @@ 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);
++
+ /*
+ * The only things that should be below this point are string options
+ * which are only used after authentication.
+@@ -2800,15 +2816,10 @@ copy_set_server_options(ServerOptions *dst, ServerOptions *src, int preauth)
+
+ /* These options may be "none" to clear a global setting */
+ M_CP_STROPT(adm_forced_command);
+- if (option_clear_or_none(dst->adm_forced_command)) {
+- free(dst->adm_forced_command);
+- dst->adm_forced_command = NULL;
+- }
+ M_CP_STROPT(chroot_directory);
+- if (option_clear_or_none(dst->chroot_directory)) {
+- free(dst->chroot_directory);
+- dst->chroot_directory = NULL;
+- }
++ CLEAR_ON_NONE(dst->chroot_directory);
++ CLEAR_ON_NONE(dst->adm_forced_command);
++#undef CLEAR_ON_NONE
+
+ /* Subsystems require merging. */
+ servconf_merge_subsystems(dst, src);
+--
+2.43.0
diff --git a/meta/recipes-connectivity/openssh/openssh_9.6p1.bb b/meta/recipes-connectivity/openssh/openssh_9.6p1.bb
index 572a614380..d71e3d3d87 100644
--- a/meta/recipes-connectivity/openssh/openssh_9.6p1.bb
+++ b/meta/recipes-connectivity/openssh/openssh_9.6p1.bb
@@ -47,6 +47,7 @@ SRC_URI = "http://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-${PV}.tar
file://CVE-2026-73283.patch \
file://CVE-2026-73282.patch \
file://CVE-2026-73281.patch \
+ file://CVE-2026-106587.patch \
"
SRC_URI[sha256sum] = "910211c07255a8c5ad654391b40ee59800710dd8119dd5362de09385aa7a777c"
--
2.35.6
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [OE-core][scarthgap][PATCH 1/1] openssh: fix CVE-2026-106587
2026-10-16 3:54 ` [OE-core][scarthgap][PATCH 1/1] openssh: fix CVE-2026-106587 Hetvi Thakar -X (hthakar - E INFOCHIPS PRIVATE LIMITED at Cisco)
@ 2026-11-20 23:05 ` Yoann Congal
0 siblings, 0 replies; 3+ messages in thread
From: Yoann Congal @ 2026-11-20 23:05 UTC (permalink / raw)
To: hthakar, openembedded-core
On Fri Oct 16, 2026 at 5:54 AM CEST, Hetvi Thakar -X (hthakar - E INFOCHIPS PRIVATE LIMITED at Cisco) via lists.openembedded.org wrote:
> From: Hetvi Thakar <hthakar@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://nvd.nist.gov/vuln/detail/CVE-2026-106587
>
> Signed-off-by: Hetvi Thakar <hthakar@cisco.com>
> ---
> .../openssh/openssh/CVE-2026-106587.patch | 76 +++++++++++++++++++
> .../openssh/openssh_9.6p1.bb | 1 +
> 2 files changed, 77 insertions(+)
> create mode 100644 meta/recipes-connectivity/openssh/openssh/CVE-2026-106587.patch
Hello,
This patch is blocked pending a blacksail backport:
See equivalent wrynose thread from Mon, 09 Nov 2026:
https://lore.kernel.org/all/DMQR3DP72ES8.3KANJDXOTSO63@smile.fr/
I will now drop this patch. Please send a new submission if the above
situation changes.
Regards,
--
Yoann Congal
Smile ECS
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-11-20 23:05 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-16 3:54 [OE-core][scarthgap][PATCH 0/1] openssh: Security Fix Hetvi Thakar -X (hthakar - E INFOCHIPS PRIVATE LIMITED at Cisco)
2026-10-16 3:54 ` [OE-core][scarthgap][PATCH 1/1] openssh: fix CVE-2026-106587 Hetvi Thakar -X (hthakar - E INFOCHIPS PRIVATE LIMITED at Cisco)
2026-11-20 23:05 ` Yoann Congal
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.