public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Zoltan Fridrich <zfridric@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/openssh] rawhide: Fix CVE-2026-106553
Date: Thu, 26 Nov 2026 15:54:29 GMT [thread overview]
Message-ID: <179570846935.1.13647818294289623863.rpms-openssh-653269e16db1@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/openssh
Branch : rawhide
Commit : 653269e16db16cb2e203bc1cf52f47716005d1a9
Author : Zoltan Fridrich <zfridric@redhat.com>
Date : 2026-11-26T16:33:54+01:00
Stats : +104/-0 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/openssh/c/653269e16db16cb2e203bc1cf52f47716005d1a9?branch=rawhide
Log:
Fix CVE-2026-106553
Fix credentials persisting after GSSAPI authentication attempt failure
Signed-off-by: Zoltan Fridrich <zfridric@redhat.com>
---
diff --git a/0057-CVE-2026-106553.patch b/0057-CVE-2026-106553.patch
new file mode 100644
index 0000000..4c5565f
--- /dev/null
+++ b/0057-CVE-2026-106553.patch
@@ -0,0 +1,102 @@
+diff --git a/gss-serv.c b/gss-serv.c
+index 67fa98c..4f01c50 100644
+--- a/gss-serv.c
++++ b/gss-serv.c
+@@ -390,8 +390,32 @@ out:
+ return ctx->major;
+ }
+
+-/* Extract the client details from a given context. This can only reliably
+- * be called once for a context */
++/*
++ * Release the client identity, leaving the fields in a safe empty state.
++ * The credential store and the flags that track it (store, used, updated)
++ * describe the session rather than the GSSAPI context and are left alone;
++ * tearing them down here would orphan the user's ccache.
++ */
++static void
++ssh_gssapi_release_client_identity(ssh_gssapi_client *client)
++{
++ OM_uint32 lmin;
++ size_t i;
++
++ gss_release_buffer(&lmin, &client->displayname);
++ gss_release_buffer(&lmin, &client->exportedname);
++ gss_release_cred(&lmin, &client->creds);
++ gss_release_name(&lmin, &client->name);
++
++ if (client->indicators != NULL) {
++ for (i = 0; client->indicators[i] != NULL; i++)
++ free(client->indicators[i]);
++ free(client->indicators);
++ client->indicators = NULL;
++ }
++}
++
++/* Extract the client details from a given context. */
+
+ /* Privileged (called from accept_secure_ctx) */
+ OM_uint32
+@@ -448,6 +472,12 @@ ssh_gssapi_getclient(Gssctxt *ctx, ssh_gssapi_client *client)
+ return GSS_S_COMPLETE;
+ }
+
++ /*
++ * This function runs for every GSSAPI rekey.
++ * Release the client identity to prevent memory leaks.
++ */
++ ssh_gssapi_release_client_identity(client);
++
+ client->userok = 0;
+ client->mech = NULL;
+
+@@ -720,6 +750,9 @@ ssh_gssapi_s4u2self(const char *user, u_int lifetime)
+ return -1;
+ }
+
++ /* Discard any left over state from an earlier GSSAPI exchange */
++ ssh_gssapi_cleanup_global_client();
++
+ /* Populate gssapi_client for storecreds_s4u2self and s4u2proxy */
+ gssapi_client.mech = &gssapi_kerberos_mech;
+ gssapi_client.creds = impersonated_creds;
+@@ -921,18 +954,7 @@ ssh_gssapi_do_child(char ***envp, u_int *envsizep)
+ void
+ ssh_gssapi_cleanup_global_client()
+ {
+- OM_uint32 lmin;
+- size_t i;
+-
+- gss_release_buffer(&lmin, &gssapi_client.displayname);
+- gss_release_buffer(&lmin, &gssapi_client.exportedname);
+- gss_release_cred(&lmin, &gssapi_client.creds);
+-
+- if (gssapi_client.indicators != NULL) {
+- for (i = 0; gssapi_client.indicators[i] != NULL; i++)
+- free(gssapi_client.indicators[i]);
+- free(gssapi_client.indicators);
+- }
++ ssh_gssapi_release_client_identity(&gssapi_client);
+ explicit_bzero(&gssapi_client, sizeof(ssh_gssapi_client));
+ }
+
+diff --git a/monitor.c b/monitor.c
+index c3d8ff2..6c21a3a 100644
+--- a/monitor.c
++++ b/monitor.c
+@@ -2160,7 +2160,14 @@ mm_answer_gss_setup_ctx(struct ssh *ssh, int sock, struct sshbuf *m)
+ if (!options.gss_authentication && !options.gss_keyex)
+ fatal_f("GSSAPI not enabled");
+
+- ssh_gssapi_cleanup_global_client();
++ /*
++ * Discard any state left behind by a previous, possibly incomplete,
++ * authentication attempt. Once authenticated this request is a
++ * GSSAPI rekey instead, and the global client then owns credentials
++ * and a ccache that the session still needs.
++ */
++ if (!authctxt->authenticated)
++ ssh_gssapi_cleanup_global_client();
+
+ if ((r = sshbuf_get_string(m, &p, &len)) != 0)
+ fatal_fr(r, "parse");
diff --git a/openssh.spec b/openssh.spec
index ffdecb6..faaba85 100644
--- a/openssh.spec
+++ b/openssh.spec
@@ -116,6 +116,7 @@ Patch0053: 0053-gssapi-tests.patch
Patch0054: 0054-Implement-ML-DSA-signature-algorithms-per-draft-sflu.patch
Patch0055: 0055-Use-golang.org-suffix-for-certificates.patch
Patch0056: 0056-Fix-max_pk_ok-default-not-being-set-when-PubkeyAuthO.patch
+Patch0057: 0057-CVE-2026-106553.patch
License: BSD-3-Clause AND BSD-2-Clause AND ISC AND SSH-OpenSSH AND ssh-keyscan AND snprintf AND LicenseRef-Fedora-Public-Domain AND X11-distribute-modifications-variant
Requires: openssl-libs >= 1:3.5.0
@@ -527,6 +528,7 @@ test -f %{sysconfig_anaconda} && \
* Thu Nov 26 2026 Zoltan Fridrich <zfridric@redhat.com> - 10.6p2-2
- Remove duplicate release in ssh_gssapi_getclient()
- Drop obsolete 0050-openssh-10.2p1-pam-auth.patch
+- CVE-2026-106553: Fix credentials persisting after GSSAPI authentication attempt failure
* Fri Nov 13 2026 Dmitry Belyavskiy <dbelyavs@redhat.com> - 10.6p2-1
- Rebasing OpenSSH to 10.6p2
reply other threads:[~2026-11-26 15:54 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=179570846935.1.13647818294289623863.rpms-openssh-653269e16db1@fedoraproject.org \
--to=zfridric@redhat.com \
--cc=git-commits@fedoraproject.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