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 10/10] openssh: Fix CVE-2026-106553 and CVE-2026-106555
Date: Tue, 24 Nov 2026 02:55:33 -0800 [thread overview]
Message-ID: <20261124105533.348654-11-asparmar@cisco.com> (raw)
In-Reply-To: <20261124105533.348654-1-asparmar@cisco.com>
From: Ashishkumar Parmar <asparmar@cisco.com>
This patch applies the shared upstream fixes referenced in [4] and
[5], using the commits shown in [1], [2], and [3].
[1] https://github.com/openssh/openssh-portable/commit/670510d1e190b0f4e47066f24498c04ada1da0f0
[2] https://github.com/openssh/openssh-portable/commit/6f9cd19af05aa828d7778cfb047faaed1679e8b7
[3] https://github.com/openssh/openssh-portable/commit/d549f99da344c178c5f632a62a6aa60544d7236e
[4] https://ubuntu.com/security/CVE-2026-106553
[5] https://ubuntu.com/security/CVE-2026-106555
Signed-off-by: Ashishkumar Parmar <asparmar@cisco.com>
---
.../CVE-2026-106553_CVE-2026-106555_p1.patch | 106 ++++++++++++++++++
.../CVE-2026-106553_CVE-2026-106555_p2.patch | 81 +++++++++++++
.../CVE-2026-106553_CVE-2026-106555_p3.patch | 56 +++++++++
.../openssh/openssh_10.5p1.bb | 3 +
4 files changed, 246 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
diff --git a/meta/recipes-connectivity/openssh/openssh/CVE-2026-106553_CVE-2026-106555_p1.patch b/meta/recipes-connectivity/openssh/openssh/CVE-2026-106553_CVE-2026-106555_p1.patch
new file mode 100644
index 0000000000..579276af51
--- /dev/null
+++ b/meta/recipes-connectivity/openssh/openssh/CVE-2026-106553_CVE-2026-106555_p1.patch
@@ -0,0 +1,106 @@
+From 8b373c0b98c54edb2cdc3022644df9c95ab4bb59 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
+
+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 the upstream OpenBSD revision-only hunks.
+
+Signed-off-by: Ashishkumar Parmar <asparmar@cisco.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 3f353a7..b46c196 100644
+--- a/auth2.c
++++ b/auth2.c
+@@ -336,6 +336,7 @@ input_userauth_request(int type, uint32_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 f9ae303..53b6dd5 100644
+--- a/gss-serv.c
++++ b/gss-serv.c
+@@ -361,12 +361,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");
+@@ -377,11 +386,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 1496711..43263b9 100644
+--- a/monitor.c
++++ b/monitor.c
+@@ -1977,6 +1977,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 7b14e74..3204d43 100644
+--- a/ssh-gss.h
++++ b/ssh-gss.h
+@@ -132,6 +132,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 */
+
diff --git a/meta/recipes-connectivity/openssh/openssh/CVE-2026-106553_CVE-2026-106555_p2.patch b/meta/recipes-connectivity/openssh/openssh/CVE-2026-106553_CVE-2026-106555_p2.patch
new file mode 100644
index 0000000000..e74c333467
--- /dev/null
+++ b/meta/recipes-connectivity/openssh/openssh/CVE-2026-106553_CVE-2026-106555_p2.patch
@@ -0,0 +1,81 @@
+From da0686435465536df6e64a201c4408d1b1ded7a1 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
+
+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 the upstream OpenBSD revision-only hunks.
+
+Signed-off-by: Ashishkumar Parmar <asparmar@cisco.com>
+---
+ gss-serv.c | 13 ++++++++++---
+ ssh-gss.h | 1 +
+ 2 files changed, 11 insertions(+), 3 deletions(-)
+
+diff --git a/gss-serv.c b/gss-serv.c
+index 53b6dd5..4383062 100644
+--- a/gss-serv.c
++++ b/gss-serv.c
+@@ -53,7 +53,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};
+@@ -281,6 +281,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) {
+@@ -333,6 +334,11 @@ 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;
+@@ -382,9 +388,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 3204d43..debe118 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 {
diff --git a/meta/recipes-connectivity/openssh/openssh/CVE-2026-106553_CVE-2026-106555_p3.patch b/meta/recipes-connectivity/openssh/openssh/CVE-2026-106553_CVE-2026-106555_p3.patch
new file mode 100644
index 0000000000..f3c8cadf30
--- /dev/null
+++ b/meta/recipes-connectivity/openssh/openssh/CVE-2026-106553_CVE-2026-106555_p3.patch
@@ -0,0 +1,56 @@
+From ef5c9639935048ca89cca6d8d44cfb89eb520839 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
+
+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 the upstream OpenBSD revision-only hunks.
+
+Signed-off-by: Ashishkumar Parmar <asparmar@cisco.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 4383062..f9d6fd8 100644
+--- a/gss-serv.c
++++ b/gss-serv.c
+@@ -368,7 +368,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 debe118..eee5220 100644
+--- a/ssh-gss.h
++++ b/ssh-gss.h
+@@ -133,7 +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();
++void ssh_gssapi_cleanup_global_client(void);
+
+ #endif /* GSSAPI */
+
diff --git a/meta/recipes-connectivity/openssh/openssh_10.5p1.bb b/meta/recipes-connectivity/openssh/openssh_10.5p1.bb
index 04454382c4..bf06d6b5d0 100644
--- a/meta/recipes-connectivity/openssh/openssh_10.5p1.bb
+++ b/meta/recipes-connectivity/openssh/openssh_10.5p1.bb
@@ -34,6 +34,9 @@ SRC_URI = "https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-${PV}.ta
file://CVE-2026-106585.patch \
file://CVE-2026-106583.patch \
file://CVE-2026-106552.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] = "d44d28a839ea9daf969cc69150fde59910b2b39361dad81a3bd6cbd19218db11"
--
2.35.6
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 ` [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 ` Ashishkumar Parmar X (asparmar - E INFOCHIPS PRIVATE LIMITED at Cisco) [this message]
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-11-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