From patchwork Wed Dec 2 13:59:53 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Joao Marcos Costa X-Patchwork-Id: 106984 Received: from smtpout-02.galae.net (smtpout-02.galae.net [185.246.84.56]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.36206.1796220171954941142 for ; Wed, 02 Dec 2026 06:02:53 -0800 Authentication-Results: mx.groups.io; dkim=fail reason="dkim: body hash did not verify" header.i=@bootlin.com header.s=dkim header.b=QGTBPO4o; spf=pass (domain: bootlin.com, ip: 185.246.84.56, mailfrom: joaomarcos.costa@bootlin.com) Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-02.galae.net (Postfix) with ESMTPS id AE7E31A18E1 for ; Wed, 2 Dec 2026 14:02:49 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id 78D786075F; Wed, 2 Dec 2026 14:02:49 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 6742311EA0363; Wed, 02 Dec 2026 15:02:46 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1796220168; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding; bh=BNoPAuMwAZfvqfk+4sMs3scMEbnTrlKgJ9vaEFwmR4s=; b=QGTBPO4oX8lPgmH89LtMk7yc2DVqdQbBgNotpV4hp7yRse+bxVuzhC3qfoDBBMbXbF9h5a sne5NVNtmQIJ2FpCFKf/3A3xk8KpAX6s1ebYOVSaWrbZWc0TZnUyOvpX9h4FDO0/8emUdk Xju0LTsTUOHUATx1yqZuhnii4S+RoJSFZD4oTrCm5trZrh9yd0CQB8icDvd92ij4AyZ4RC JBFAEMQDgpS01KggsuSrwB3QkzTQJQZFAsQFcFschuB3A4u8cHc+vZVkwLNqUbBQuPcKuk l0WlgQX7w999ZB7ilZGQlofAiCAdkN0Cu/tsutP8c/zaqm0SEKrFcY9AWeto9Q== From: =?utf-8?q?Jo=C3=A3o_Marcos_Costa_=28Schneider_Electric=29?= To: openembedded-core@lists.openembedded.org Cc: thomas.petazzoni@bootlin.com, yoann.congal@smile.fr, hthakar@cisco.com, =?utf-8?q?Jo=C3=A3o_Marcos_Costa_=28Schneider_Electric=29?= Subject: [scarthgap][PATCH] openssh: fix CVE-2026-106553 and CVE-2026-106555 Date: Wed, 2 Dec 2026 14:59:53 +0100 Message-ID: <20261202135953.1814855-1-joaomarcos.costa@bootlin.com> X-Mailer: git-send-email 2.55.0 MIME-Version: 1.0 X-Last-TLS-Session-Version: TLSv1.3 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Wed, 02 Dec 2026 14:02:59 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/251834 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) --- .../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 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..c000f39ffe --- /dev/null +++ b/meta/recipes-connectivity/openssh/openssh/CVE-2026-106553_CVE-2026-106555_p1.patch @@ -0,0 +1,109 @@ +From b117713065b75481cba26186b6315ddfe2a6105a Mon Sep 17 00:00:00 2001 +From: "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 +--- + 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 */ + 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..e139bf0a42 --- /dev/null +++ b/meta/recipes-connectivity/openssh/openssh/CVE-2026-106553_CVE-2026-106555_p2.patch @@ -0,0 +1,91 @@ +From f293df0c0b39e6895eafd849c73763fd51f050d5 Mon Sep 17 00:00:00 2001 +From: "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 +--- + 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 { 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..0206b388ee --- /dev/null +++ b/meta/recipes-connectivity/openssh/openssh/CVE-2026-106553_CVE-2026-106555_p3.patch @@ -0,0 +1,59 @@ +From 14bc19ff0a2ce00561ac0f56b58ab0b5b0cf81f2 Mon Sep 17 00:00:00 2001 +From: "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 +--- + 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 */ + diff --git a/meta/recipes-connectivity/openssh/openssh_9.6p1.bb b/meta/recipes-connectivity/openssh/openssh_9.6p1.bb index 883e97f27f..38cc51e32f 100644 --- a/meta/recipes-connectivity/openssh/openssh_9.6p1.bb +++ b/meta/recipes-connectivity/openssh/openssh_9.6p1.bb @@ -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"