[Pkg-sssd-devel] [Git][sssd-team/sssd][trixie] CVE-2026-104034

Bastien Roucariès (@rouca) gitlab at salsa.debian.org
Sun Nov 15 11:19:42 GMT 2026



Bastien Roucariès pushed to branch trixie at Debian SSSD packaging / sssd


Commits:
fa9e802d by Bastien Roucariès at 2026-11-15T12:18:19+01:00
CVE-2026-104034

- - - - -


5 changed files:

- debian/changelog
- + debian/patches/CVE-2026-104034_1.diff
- + debian/patches/CVE-2026-104034_2.diff
- + debian/patches/CVE-2026-104034_3.diff
- debian/patches/series


Changes:

=====================================
debian/changelog
=====================================
@@ -110,6 +110,14 @@ sssd (2.10.1-2+deb13u2) trixie-security; urgency=medium
       flaw to bypass access controls and authenticate to the system. This
       allows unauthorized access to persist after the account was intended
       to be deactivated.
+    + Add CVE-2026-104034.diff:
+      A use-after-free vulnerability exists in the Kerberos
+      Credential Manager (KCM) responder during Kerberos
+      ticket-granting ticket (TGT) renewal, where a deferred callback
+      accesses memory that has already been released. An authenticated
+      local user with a renewable Kerberos ticket can trigger this
+      issue on systems configured with KCM renewal, causing the KCM
+      responder service to crash and resulting in a Denial of Service (DoS).
     + Add CVE-2026-104035.diff:
       An issue in the Kerberos Credential Manager (KCM) responder allows a
       local user to cause a Denial of Service (DoS) by maintaining a


=====================================
debian/patches/CVE-2026-104034_1.diff
=====================================
@@ -0,0 +1,41 @@
+From: Dan Lavu <dlavu at redhat.com>
+Date: Fri, 24 Jul 2026 14:13:49 -0400
+Subject: KCM: fix use-after-free of ccache name during TGT renewal
+
+auth_data->ccname pointed at cc->name on a short-lived tmp_ctx that is
+freed before the tevent immediate renewal callback runs. Copy the name
+onto auth_data so krb5_child renews the correct KCM ccache.
+
+Co-authored-by: Cursor <cursoragent at cursor.com>
+Model used: Cursor Sonnet 5
+
+Reviewed-by: Alexey Tikhonov <atikhono at redhat.com>
+Reviewed-by: Justin Stephenson <jstephen at redhat.com>
+(cherry picked from commit 2373a46f90798b843488a4ef641bb6c7245846c3)
+origin: https://github.com/SSSD/sssd/pull/9017/changes/f4569d38087574a706a753a54605134270531d72
+---
+ src/responder/kcm/kcm_renew.c | 10 +++++++---
+ 1 file changed, 7 insertions(+), 3 deletions(-)
+
+diff --git a/src/responder/kcm/kcm_renew.c b/src/responder/kcm/kcm_renew.c
+index 39e9470..800ba28 100644
+--- a/src/responder/kcm/kcm_renew.c
++++ b/src/responder/kcm/kcm_renew.c
+@@ -580,10 +580,14 @@ static errno_t kcm_creds_check_times(TALLOC_CTX *mem_ctx,
+             auth_data->upn = talloc_strdup(auth_data, client_name);
+             auth_data->uid = cc->owner.uid;
+             auth_data->gid = cc->owner.gid;
+-            auth_data->ccname = cc->name;
+-            if (auth_data->upn == NULL) {
++            /* cc is owned by the caller tmp_ctx and freed when the renew scan
++             * returns; the renew callback runs later on the event loop, so
++             * the ccache name must be copied onto auth_data. */
++            auth_data->ccname = talloc_strdup(auth_data, cc->name);
++            if (auth_data->upn == NULL || auth_data->ccname == NULL) {
+                 ret = ENOMEM;
+-                DEBUG(SSSDBG_CRIT_FAILURE, "Unable to allocate auth_data->upn for renewals\n");
++                DEBUG(SSSDBG_CRIT_FAILURE,
++                      "Unable to allocate auth_data for renewals\n");
+                 goto done;
+             }
+ 


=====================================
debian/patches/CVE-2026-104034_2.diff
=====================================
@@ -0,0 +1,38 @@
+From: Dan Lavu <dlavu at redhat.com>
+Date: Fri, 24 Jul 2026 14:13:49 -0400
+Subject: KCM: free auth_data on TGT renewal setup failure
+
+Avoid leaking the partially initialized auth_data when strdup or
+tevent_create_immediate fails in kcm_creds_check_times().
+
+Co-authored-by: Cursor <cursoragent at cursor.com>
+Model used: Cursor Sonnet 5
+
+Reviewed-by: Alexey Tikhonov <atikhono at redhat.com>
+Reviewed-by: Justin Stephenson <jstephen at redhat.com>
+(cherry picked from commit 854dcda45d94997ad1ad1facb4e7e235cdb41830)
+origin: upstream, https://github.com/SSSD/sssd/pull/9017/changes/8096116c3bc42f5ce6298ac38e88d84cb922433d
+---
+ src/responder/kcm/kcm_renew.c | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/src/responder/kcm/kcm_renew.c b/src/responder/kcm/kcm_renew.c
+index 800ba28..6e05b19 100644
+--- a/src/responder/kcm/kcm_renew.c
++++ b/src/responder/kcm/kcm_renew.c
+@@ -588,6 +588,7 @@ static errno_t kcm_creds_check_times(TALLOC_CTX *mem_ctx,
+                 ret = ENOMEM;
+                 DEBUG(SSSDBG_CRIT_FAILURE,
+                       "Unable to allocate auth_data for renewals\n");
++                talloc_free(auth_data);
+                 goto done;
+             }
+ 
+@@ -595,6 +596,7 @@ static errno_t kcm_creds_check_times(TALLOC_CTX *mem_ctx,
+             if (imm == NULL) {
+                 ret = ENOMEM;
+                 DEBUG(SSSDBG_CRIT_FAILURE, "tevent_create_immediate failed\n");
++                talloc_free(auth_data);
+                 goto done;
+             }
+ 


=====================================
debian/patches/CVE-2026-104034_3.diff
=====================================
@@ -0,0 +1,60 @@
+From: Dan Lavu <dlavu at redhat.com>
+Date: Fri, 24 Jul 2026 14:13:49 -0400
+Subject: tests: widen KCM TGT renewal poll window
+
+Use a 10s lifetime and 30s renewable life so renew_till stays past
+endtime, and poll for half-life plus slack after the UAF fix.
+
+Co-authored-by: Cursor <cursoragent at cursor.com>
+Model used: Cursor Sonnet 5
+
+Reviewed-by: Alexey Tikhonov <atikhono at redhat.com>
+Reviewed-by: Justin Stephenson <jstephen at redhat.com>
+(cherry picked from commit 3efe248071fb37c57455dc5ac45b05bdf7c4e275)
+origin: backport, https://github.com/SSSD/sssd/pull/9017/changes/ba17b16c41afadaad774f3c4c62563cda812630f
+---
+ src/tests/system/tests/test_kcm.py | 32 ++++++++++++++++++++++++++------
+ 1 file changed, 26 insertions(+), 6 deletions(-)
+
+Index: sssd/src/tests/system/tests/test_kcm.py
+===================================================================
+--- sssd.orig/src/tests/system/tests/test_kcm.py	2026-11-15 11:28:56.955870597 +0100
++++ sssd/src/tests/system/tests/test_kcm.py	2026-11-15 11:28:56.953480561 +0100
+@@ -383,12 +383,32 @@
+ 
+     with client.ssh("tuser", "Secret123") as ssh:
+         with client.auth.kerberos(ssh) as krb:
+-            krb.kinit("tuser", password="Secret123", args=["-r", "2s", "-l", "2s"])
+-            (init_start, _) = krb.list_tgt_times(kdc.realm)
+-            time.sleep(2)
+-            (renew_start, _) = krb.list_tgt_times(kdc.realm)
++            # KCM renews only after ~50% of ticket lifetime (kcm_creds_check_times),
++            # and only while the ticket is still valid. Use renew_till > lifetime so
++            # renew_till >= endtime holds, and leave a few renew_interval ticks after
++            # half-life for the async krb5_child path.
++            lifetime_s = 10
++            renewable_s = 30
++            krb.kinit(
++                "tuser",
++                password="Secret123",
++                args=["-r", f"{renewable_s}s", "-l", f"{lifetime_s}s"],
++            )
++            init_start, init_end = krb.list_tgt_times(kdc.realm)
+ 
+-            assert init_start < renew_start, "Initial renewal times exceeds renewal interval!"
++            # Half-life + a few renew_interval ticks + slack for child latency.
++            deadline = time.monotonic() + (lifetime_s / 2) + 5.0
++            renew_start, renew_end = init_start, init_end
++            while time.monotonic() < deadline:
++                time.sleep(0.5)
++                renew_start, renew_end = krb.list_tgt_times(kdc.realm)
++                if renew_start > init_start or renew_end > init_end:
++                    break
++
++            assert renew_start > init_start or renew_end > init_end, (
++                "TGT was not renewed within timeout; "
++                f"initial=({init_start}, {init_end}), last=({renew_start}, {renew_end})."
++            )
+ 
+ 
+ @pytest.mark.topology(KnownTopology.Client)


=====================================
debian/patches/series
=====================================
@@ -38,3 +38,6 @@ CVE-2026-104027_CVE-2026-104029.patch
 CVE-2026-104030_pre1.patch
 CVE-2026-104030.diff
 CVE-2026-104035.diff
+CVE-2026-104034_1.diff
+CVE-2026-104034_2.diff
+CVE-2026-104034_3.diff



View it on GitLab: https://salsa.debian.org/sssd-team/sssd/-/commit/fa9e802d816fb2610444dd12899846f1ececdb33

-- 
View it on GitLab: https://salsa.debian.org/sssd-team/sssd/-/commit/fa9e802d816fb2610444dd12899846f1ececdb33
You're receiving this email because of your account on salsa.debian.org. Manage all notifications: https://salsa.debian.org/-/profile/notifications | Help: https://salsa.debian.org/help


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-sssd-devel/attachments/20261115/3c21bf42/attachment-0001.htm>


More information about the Pkg-sssd-devel mailing list