new file mode 100644
@@ -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.
@@ -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"