new file mode 100644
@@ -0,0 +1,109 @@
+From b117713065b75481cba26186b6315ddfe2a6105a Mon Sep 17 00:00:00 2001
+From: "djm@openbsd.org" <djm@openbsd.org>
+Date: Wed, 16 Sep 2026 00:37:07 +0000
+Subject: [PATCH] upstream: Reset GSSAPI client state before authentication
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Avoids situation where a partially-completed GSSAPI authentication attempt
+can retain state that is subsequently used by a later attempt.
+
+Report and feedback Moritz Theile, also reported by several others.
+
+ok markus, deraadt
+
+OpenBSD-Commit-ID: 95758f23e358b7c19e6205ac1c979193a9145556
+
+CVE: CVE-2026-106553 CVE-2026-106555
+Upstream-Status: Backport [https://github.com/openssh/openssh-portable/commit/670510d1e190b0f4e47066f24498c04ada1da0f0]
+
+Backport Changes:
+- Omit upstream OpenBSD revision-only hunks.
+
+Signed-off-by: João Marcos Costa <joaomarcos.costa@bootlin.com>
+---
+ auth2.c | 1 +
+ gss-serv.c | 19 ++++++++++++-------
+ monitor.c | 2 ++
+ ssh-gss.h | 1 +
+ 4 files changed, 16 insertions(+), 7 deletions(-)
+
+diff --git a/auth2.c b/auth2.c
+index 18077d625..7d4d0901b 100644
+--- a/auth2.c
++++ b/auth2.c
+@@ -338,6 +338,7 @@ input_userauth_request(int type, u_int32_t seq, struct ssh *ssh)
+ auth2_challenge_stop(ssh);
+
+ #ifdef GSSAPI
++ ssh_gssapi_cleanup_global_client();
+ /* XXX move to auth2_gssapi_stop() */
+ ssh_dispatch_set(ssh, SSH2_MSG_USERAUTH_GSSAPI_TOKEN, NULL);
+ ssh_dispatch_set(ssh, SSH2_MSG_USERAUTH_GSSAPI_EXCHANGE_COMPLETE, NULL);
+diff --git a/gss-serv.c b/gss-serv.c
+index 00e3d118b..dc6d0d8e3 100644
+--- a/gss-serv.c
++++ b/gss-serv.c
+@@ -354,12 +354,21 @@ ssh_gssapi_do_child(char ***envp, u_int *envsizep)
+ }
+ }
+
++void
++ssh_gssapi_cleanup_global_client()
++{
++ OM_uint32 lmin;
++
++ gss_release_buffer(&lmin, &gssapi_client.displayname);
++ gss_release_buffer(&lmin, &gssapi_client.exportedname);
++ gss_release_cred(&lmin, &gssapi_client.creds);
++ explicit_bzero(&gssapi_client, sizeof(ssh_gssapi_client));
++}
++
+ /* Privileged */
+ int
+ ssh_gssapi_userok(char *user)
+ {
+- OM_uint32 lmin;
+-
+ if (gssapi_client.exportedname.length == 0 ||
+ gssapi_client.exportedname.value == NULL) {
+ debug("No suitable client data");
+@@ -370,11 +379,7 @@ ssh_gssapi_userok(char *user)
+ return 1;
+ else {
+ /* Destroy delegated credentials if userok fails */
+- gss_release_buffer(&lmin, &gssapi_client.displayname);
+- gss_release_buffer(&lmin, &gssapi_client.exportedname);
+- gss_release_cred(&lmin, &gssapi_client.creds);
+- explicit_bzero(&gssapi_client,
+- sizeof(ssh_gssapi_client));
++ ssh_gssapi_cleanup_global_client();
+ return 0;
+ }
+ else
+diff --git a/monitor.c b/monitor.c
+index b3ed515ed..2d5631979 100644
+--- a/monitor.c
++++ b/monitor.c
+@@ -1840,6 +1840,8 @@ mm_answer_gss_setup_ctx(struct ssh *ssh, int sock, struct sshbuf *m)
+ if (!options.gss_authentication)
+ fatal_f("GSSAPI authentication not enabled");
+
++ ssh_gssapi_cleanup_global_client();
++
+ if ((r = sshbuf_get_string(m, &p, &len)) != 0)
+ fatal_fr(r, "parse");
+ goid.elements = p;
+diff --git a/ssh-gss.h b/ssh-gss.h
+index a8af117d2..082c77bcd 100644
+--- a/ssh-gss.h
++++ b/ssh-gss.h
+@@ -133,6 +133,7 @@ void ssh_gssapi_do_child(char ***, u_int *);
+ void ssh_gssapi_cleanup_creds(void);
+ void ssh_gssapi_storecreds(void);
+ const char *ssh_gssapi_displayname(void);
++void ssh_gssapi_cleanup_global_client();
+
+ #endif /* GSSAPI */
+
new file mode 100644
@@ -0,0 +1,91 @@
+From f293df0c0b39e6895eafd849c73763fd51f050d5 Mon Sep 17 00:00:00 2001
+From: "djm@openbsd.org" <djm@openbsd.org>
+Date: Wed, 16 Sep 2026 00:37:52 +0000
+Subject: [PATCH] upstream: Only store GSSAPI creds when authn succeeds
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Issue report and patch from Moritz Theile
+
+ok markus, deraadt
+
+OpenBSD-Commit-ID: 812bbd22b8dd5a1583094ab2b6ff0045e4088467
+
+CVE: CVE-2026-106553 CVE-2026-106555
+Upstream-Status: Backport [https://github.com/openssh/openssh-portable/commit/6f9cd19af05aa828d7778cfb047faaed1679e8b7]
+
+Backport Changes:
+- Omit upstream OpenBSD revision-only hunks.
+- In gss-serv.c, when resolving the conflict in ssh_gssapi_storecreds(),
+ keep the if (options.gss_deleg_creds == 0) {...} block.
+
+Signed-off-by: João Marcos Costa <joaomarcos.costa@bootlin.com>
+---
+ gss-serv.c | 18 +++++++++++++++---
+ ssh-gss.h | 1 +
+ 2 files changed, 16 insertions(+), 3 deletions(-)
+
+diff --git a/gss-serv.c b/gss-serv.c
+index dc6d0d8e3..d3021f3e6 100644
+--- a/gss-serv.c
++++ b/gss-serv.c
+@@ -51,7 +51,7 @@ extern ServerOptions options;
+
+ static ssh_gssapi_client gssapi_client =
+ { GSS_C_EMPTY_BUFFER, GSS_C_EMPTY_BUFFER,
+- GSS_C_NO_CREDENTIAL, NULL, {NULL, NULL, NULL, NULL}};
++ GSS_C_NO_CREDENTIAL, NULL, {NULL, NULL, NULL, NULL}, 0};
+
+ ssh_gssapi_mech gssapi_null_mech =
+ { NULL, NULL, {0, NULL}, NULL, NULL, NULL, NULL};
+@@ -279,6 +279,7 @@ ssh_gssapi_getclient(Gssctxt *ctx, ssh_gssapi_client *client)
+
+ gss_buffer_desc ename;
+
++ client->userok = 0;
+ client->mech = NULL;
+
+ while (supported_mechs[i]->name != NULL) {
+@@ -331,6 +332,16 @@ ssh_gssapi_cleanup_creds(void)
+ void
+ ssh_gssapi_storecreds(void)
+ {
++ if (!gssapi_client.userok) {
++ debug_f("GSSAPI client was not authorized, doing nothing");
++ return;
++ }
++
++ if (options.gss_deleg_creds == 0) {
++ debug_f("delegate credential is disabled, doing nothing");
++ return;
++ }
++
+ if (gssapi_client.mech && gssapi_client.mech->storecreds) {
+ (*gssapi_client.mech->storecreds)(&gssapi_client);
+ } else
+@@ -375,9 +386,10 @@ ssh_gssapi_userok(char *user)
+ return 0;
+ }
+ if (gssapi_client.mech && gssapi_client.mech->userok)
+- if ((*gssapi_client.mech->userok)(&gssapi_client, user))
++ if ((*gssapi_client.mech->userok)(&gssapi_client, user)) {
++ gssapi_client.userok = 1;
+ return 1;
+- else {
++ } else {
+ /* Destroy delegated credentials if userok fails */
+ ssh_gssapi_cleanup_global_client();
+ return 0;
+diff --git a/ssh-gss.h b/ssh-gss.h
+index 082c77bcd..9d90fe45a 100644
+--- a/ssh-gss.h
++++ b/ssh-gss.h
+@@ -74,6 +74,7 @@ typedef struct {
+ gss_cred_id_t creds;
+ struct ssh_gssapi_mech_struct *mech;
+ ssh_gssapi_ccache store;
++ int userok;
+ } ssh_gssapi_client;
+
+ typedef struct ssh_gssapi_mech_struct {
new file mode 100644
@@ -0,0 +1,59 @@
+From 14bc19ff0a2ce00561ac0f56b58ab0b5b0cf81f2 Mon Sep 17 00:00:00 2001
+From: "robert@openbsd.org" <robert@openbsd.org>
+Date: Wed, 7 Oct 2026 09:00:11 +0000
+Subject: [PATCH] upstream: ssh_gssapi_cleanup_global_client() needs a
+ prototype
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+ok dtucker@
+
+/usr/src/usr.bin/ssh/ssh/../ssh-gss.h:115:38: error: a function
+declaration without a prototype is deprecated in all versions of C
+[-Werror,-Wstrict-prototypes]
+ 115 | void ssh_gssapi_cleanup_global_client();
+ | ^
+ | void
+1 error generated.
+
+OpenBSD-Commit-ID: a1cf776a4fa4b2760ea51236b58b3688df685906
+
+CVE: CVE-2026-106553 CVE-2026-106555
+Upstream-Status: Backport [https://github.com/openssh/openssh-portable/commit/d549f99da344c178c5f632a62a6aa60544d7236e]
+
+Backport Changes:
+- Omit upstream OpenBSD revision-only hunks.
+
+Signed-off-by: João Marcos Costa <joaomarcos.costa@bootlin.com>
+---
+ gss-serv.c | 2 +-
+ ssh-gss.h | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/gss-serv.c b/gss-serv.c
+index d3021f3e6..76e471675 100644
+--- a/gss-serv.c
++++ b/gss-serv.c
+@@ -366,7 +366,7 @@ ssh_gssapi_do_child(char ***envp, u_int *envsizep)
+ }
+
+ void
+-ssh_gssapi_cleanup_global_client()
++ssh_gssapi_cleanup_global_client(void)
+ {
+ OM_uint32 lmin;
+
+diff --git a/ssh-gss.h b/ssh-gss.h
+index 9d90fe45a..eaae8a259 100644
+--- a/ssh-gss.h
++++ b/ssh-gss.h
+@@ -134,7 +134,7 @@ void ssh_gssapi_do_child(char ***, u_int *);
+ void ssh_gssapi_cleanup_creds(void);
+ void ssh_gssapi_storecreds(void);
+ const char *ssh_gssapi_displayname(void);
+-void ssh_gssapi_cleanup_global_client();
++void ssh_gssapi_cleanup_global_client(void);
+
+ #endif /* GSSAPI */
+
@@ -48,6 +48,9 @@ SRC_URI = "http://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-${PV}.tar
file://CVE-2026-73282.patch \
file://CVE-2026-73281.patch \
file://CVE-2026-123158.patch \
+ file://CVE-2026-106553_CVE-2026-106555_p1.patch \
+ file://CVE-2026-106553_CVE-2026-106555_p2.patch \
+ file://CVE-2026-106553_CVE-2026-106555_p3.patch \
"
SRC_URI[sha256sum] = "910211c07255a8c5ad654391b40ee59800710dd8119dd5362de09385aa7a777c"
These vulnerabilities, marked as High [1][2], were fixed upstream [3][4][5] since v10.6p1 (tag 'V_10_6_P1'). The patches are listed under 'Patch details', at Ubuntu's ubuntu.com/security [6][7] pages. Backport the fixes to openssh v9.6p1. [1] https://nvd.nist.gov/vuln/detail/cve-2026-106553 [2] https://nvd.nist.gov/vuln/detail/cve-2026-106555 [3] https://github.com/openssh/openssh-portable/commit/670510d1e190b0f4e47066f24498c04ada1da0f0 [4] https://github.com/openssh/openssh-portable/commit/6f9cd19af05aa828d7778cfb047faaed1679e8b7 [5] https://github.com/openssh/openssh-portable/commit/d549f99da344c178c5f632a62a6aa60544d7236e [6] https://ubuntu.com/security/CVE-2026-106553 [7] https://ubuntu.com/security/CVE-2026-106555 Signed-off-by: João Marcos Costa (Schneider Electric) <joaomarcos.costa@bootlin.com> --- .../CVE-2026-106553_CVE-2026-106555_p1.patch | 109 ++++++++++++++++++ .../CVE-2026-106553_CVE-2026-106555_p2.patch | 91 +++++++++++++++ .../CVE-2026-106553_CVE-2026-106555_p3.patch | 59 ++++++++++ .../openssh/openssh_9.6p1.bb | 3 + 4 files changed, 262 insertions(+) create mode 100644 meta/recipes-connectivity/openssh/openssh/CVE-2026-106553_CVE-2026-106555_p1.patch create mode 100644 meta/recipes-connectivity/openssh/openssh/CVE-2026-106553_CVE-2026-106555_p2.patch create mode 100644 meta/recipes-connectivity/openssh/openssh/CVE-2026-106553_CVE-2026-106555_p3.patch