[Pkg-sssd-devel] [Git][sssd-team/sssd][bookworm] 8 commits: CVE-2025-11561

Bastien Roucariès (@rouca) gitlab at salsa.debian.org
Tue Dec 1 10:25:09 GMT 2026



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


Commits:
bb289a41 by Bastien Roucariès at 2026-12-01T09:37:24+01:00
CVE-2025-11561

- - - - -
74f6ec4f by Bastien Roucariès at 2026-12-01T09:42:57+01:00
CVE-2026-12610

- - - - -
66582a66 by Bastien Roucariès at 2026-12-01T10:38:36+01:00
CVE-2026-14474

- - - - -
246acd9e by Bastien Roucariès at 2026-12-01T10:38:40+01:00
CVE-2026-14476

- - - - -
80830a40 by Bastien Roucariès at 2026-12-01T10:38:41+01:00
CVE-2026-68742

- - - - -
f11f0544 by Bastien Roucariès at 2026-12-01T10:38:42+01:00
CVE-2026-68743

- - - - -
1c29c915 by Bastien Roucariès at 2026-12-01T10:38:44+01:00
CVE-2026-68744

- - - - -
de87d389 by Bastien Roucariès at 2026-12-01T10:38:45+01:00
Finalize

- - - - -


9 changed files:

- debian/changelog
- + debian/patches/CVE-2025-11561.patch
- + debian/patches/CVE-2026-12610.patch
- + debian/patches/CVE-2026-14474.patch
- + debian/patches/CVE-2026-14476.patch
- + debian/patches/CVE-2026-68742.patch
- + debian/patches/CVE-2026-68743.patch
- + debian/patches/CVE-2026-68744.patch
- debian/patches/series


Changes:

=====================================
debian/changelog
=====================================
@@ -1,3 +1,68 @@
+sssd (2.8.2-4+deb12u2) bookworm-security; urgency=medium
+
+  * Non Maintainer upload by LTS team
+  * Multiple security fixes (Closes: #1141769)
+  * Fix CVE-2025-11561 (Closes: #1117935)
+    A flaw was found in the integration of Active Directory and the System
+    Security Services Daemon (SSSD) on Linux systems. In default
+    configurations, the Kerberos local authentication plugin
+    (sssd_krb5_localauth_plugin) is enabled, but a fallback to the an2ln
+    plugin is possible. This fallback allows an attacker with permission
+    to modify certain AD attributes (such as userPrincipalName or
+    samAccountName) to impersonate privileged users, potentially resulting
+    in unauthorized access or privilege escalation on domain-joined Linux
+    hosts.
+  * Fix CVE-2026-12610 (Closes: #1141323)
+    When authenticating with a YubiKey, the SSSD PAM responder can crash
+    due to a use-after-free vulnerability, where a memory pointer is
+    incorrectly handled. A local attacker could exploit this flaw by
+    manipulating smartcard or YubiKey contents, leading to a denial of
+    service that disrupts authentication. This vulnerability also presents
+    a potential for privilege escalation, although it is difficult to
+    exploit.
+  * Warn about misconfiguration and CVE-2026-14474
+    When the ldap_sudo_search_base option is not explicitly configured,
+    SSSD searches the entire LDAP directory tree for sudoRole objects. An
+    authenticated attacker with write access to any subtree can inject a
+    sudoRole object granting root-level sudo privileges on all
+    SSSD-enrolled hosts.
+    .
+    This patch adds a warning log when the fallback occurs, alerting
+    administrators that their configuration searches the entire directory
+    tree for sudo rules. A future hardening step would be to default to
+    ou=sudoers,<base_dn> instead of the root DN.
+  * Fix CVE-2026-14476
+    A path traversal flaw was found in SSSD's AD GPO provider.  The
+    ad_gpo_extract_smb_components() function does not sanitize
+    .. sequences in the gPCFileSysPath LDAP attribute, allowing an
+    attacker with AD GPO management access to write files outside the GPO
+    cache directory as root. On default RHEL configurations with SELinux
+    enforcing, this can be used to inject Kerberos configuration leading
+    to authentication bypass.
+  * Fix CVE-2026-68742 (Closes: #1143600)
+    A flaw was found in SSSD. The sss_nss_protocol_parse_addr() function
+    in the NSS responder does not validate the addrlen field against the
+    remaining packet body size. A local attacker can exploit this via a
+    crafted GETHOSTBYADDR request to the NSS responder socket, causing an
+    out-of-bounds read and process crash, resulting in a denial of
+    service.
+  * Fix CVE-2026-68743 (Closes: #1143947)
+    The extract_authtok_v1() function in the PAM responder does not
+    validate the auth_token_length field against the remaining buffer size
+    before processing. A local attacker can exploit this via a crafted
+    protocol v1 request to the PAM responder socket, causing an
+    out-of-bounds read and process crash, resulting in a denial of
+    service.
+  * Fix CVE-2026-68744:
+    The sss_nss_protocol_fill_initgr() function in the NSS responder
+    pre-allocates reply space for all group entries but does not shrink
+    the packet when groups are skipped, causing uninitialized heap bytes
+    to be transmitted to the client. A local attacker can exploit this to
+    disclose cached directory data and heap layout information from the
+    sssd_nss process.
+
+ -- Bastien Roucariès <rouca at debian.org>  Tue, 01 Dec 2026 10:24:17 +0100
+
 sssd (2.8.2-4+deb12u1) bookworm; urgency=medium
 
   * Non-maintainer upload.


=====================================
debian/patches/CVE-2025-11561.patch
=====================================
@@ -0,0 +1,48 @@
+From: Sumit Bose <sbose at redhat.com>
+Date: Fri, 10 Oct 2025 12:57:40 +0200
+Subject: krb5: disable Kerberos localauth an2ln plugin for AD/IPA
+MIME-Version: 1.0
+Content-Type: text/plain; charset="utf-8"
+Content-Transfer-Encoding: 8bit
+
+If a client is joined to AD or IPA SSSD's localauth plugin can handle
+the mapping of Kerberos principals to local accounts. In case it cannot
+map the Kerberos principals libkrb5 is currently configured to fall back
+to the default localauth plugins 'default', 'rule', 'names',
+'auth_to_local', 'k5login' and 'an2ln' (see man krb5.conf for details).
+All plugins except 'an2ln' require some explicit configuration by either
+the administrator or the local user. To avoid some unexpected mapping is
+done by the 'an2ln' plugin this patch disables it in the configuration
+snippets for SSSD's localauth plugin.
+
+Resolves: https://github.com/SSSD/sssd/issues/8021
+
+:relnote: After startup SSSD already creates a Kerberos configuration
+ snippet typically in /var/lib/sss/pubconf/krb5.include.d/localauth_plugin
+ if the AD or IPA providers are used. This enables SSSD's localauth plugin.
+ Starting with this release the an2ln plugin is disabled in the
+ configuration snippet as well. If this file or its content are included in
+ the Kerberos configuration it will fix CVE-2025-11561.
+
+Reviewed-by: Alexey Tikhonov <atikhono at redhat.com>
+Reviewed-by: Pavel Březina <pbrezina at redhat.com>
+(cherry picked from commit 9939c39d1949fad48af2f0b43c788bad0809e310)
+(cherry picked from commit a0336f4cd69c25b3d501a3d361d3d286c00da4d2)
+
+origin: upstream, https://github.com/SSSD/sssd/commit/a0336f4cd69c25b3d501a3d361d3d286c00da4d2
+---
+ src/util/domain_info_utils.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/src/util/domain_info_utils.c b/src/util/domain_info_utils.c
+index 33aaa6e..5cbc13b 100644
+--- a/src/util/domain_info_utils.c
++++ b/src/util/domain_info_utils.c
+@@ -741,6 +741,7 @@ done:
+ #define LOCALAUTH_PLUGIN_CONFIG \
+ "[plugins]\n" \
+ " localauth = {\n" \
++"  disable = an2ln\n" \
+ "  module = sssd:"APP_MODULES_PATH"/sssd_krb5_localauth_plugin.so\n" \
+ " }\n"
+ 


=====================================
debian/patches/CVE-2026-12610.patch
=====================================
@@ -0,0 +1,110 @@
+From: Alexey Tikhonov <atikhono at redhat.com>
+Date: Mon, 29 Jun 2026 21:46:46 +0200
+Subject: PAM: fix use-after-free during p11_child processing
+
+`pam_check_cert_send()` stored `pctx->sss_certmap_ctx` in the
+request state. If `p11_refresh_certmap_ctx()` ran while `p11_child`
+was still executing (e.g. triggered by a domain refresh), it freed
+and replaced the certmap context, leaving the request state holding
+a dangling pointer. `p11_child_done()` could later use that pointer.
+
+Fix this by passing the `pam_ctx` into `pam_check_cert_send()` and
+dereferencing `pctx->sss_certmap_ctx` at the time it is actually needed
+in `p11_child_done()`, so the current context is always used.
+
+Resolves: https://github.com/SSSD/sssd/issues/8796
+Fixes: CVE-2026-12610
+
+Assisted-By: Claude Code (Opus 4.6)
+Reviewed-by: Iker Pedrosa <ipedrosa at redhat.com>
+Reviewed-by: Sumit Bose <sbose at redhat.com>
+(cherry picked from commit fa7a55949a30fed064a28ea6f0c801fc5e8c5ba7)
+(cherry picked from commit db7ffa3ea6a971bb84bc54558ca7217751724334)
+
+origin: upstream, https://github.com/SSSD/sssd/commit/db7ffa3ea6a971bb84bc54558ca7217751724334
+---
+ src/responder/pam/pamsrv.h     |  2 +-
+ src/responder/pam/pamsrv_cmd.c |  2 +-
+ src/responder/pam/pamsrv_p11.c | 11 ++++++-----
+ 3 files changed, 8 insertions(+), 7 deletions(-)
+
+diff --git a/src/responder/pam/pamsrv.h b/src/responder/pam/pamsrv.h
+index 85af2f8..3f70dc3 100644
+--- a/src/responder/pam/pamsrv.h
++++ b/src/responder/pam/pamsrv.h
+@@ -121,7 +121,7 @@ struct tevent_req *pam_check_cert_send(TALLOC_CTX *mem_ctx,
+                                        const char *ca_db,
+                                        time_t timeout,
+                                        const char *verify_opts,
+-                                       struct sss_certmap_ctx *sss_certmap_ctx,
++                                       struct pam_ctx *pctx,
+                                        const char *uri,
+                                        struct pam_data *pd);
+ errno_t pam_check_cert_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx,
+diff --git a/src/responder/pam/pamsrv_cmd.c b/src/responder/pam/pamsrv_cmd.c
+index 1695554..da5b516 100644
+--- a/src/responder/pam/pamsrv_cmd.c
++++ b/src/responder/pam/pamsrv_cmd.c
+@@ -1466,7 +1466,7 @@ static errno_t check_cert(TALLOC_CTX *mctx,
+ 
+     req = pam_check_cert_send(mctx, ev,
+                               pctx->ca_db, p11_child_timeout,
+-                              cert_verification_opts, pctx->sss_certmap_ctx,
++                              cert_verification_opts, pctx,
+                               uri, pd);
+     if (req == NULL) {
+         DEBUG(SSSDBG_OP_FAILURE, "pam_check_cert_send failed.\n");
+diff --git a/src/responder/pam/pamsrv_p11.c b/src/responder/pam/pamsrv_p11.c
+index 88bd09e..b6f7f64 100644
+--- a/src/responder/pam/pamsrv_p11.c
++++ b/src/responder/pam/pamsrv_p11.c
+@@ -715,7 +715,7 @@ struct pam_check_cert_state {
+     struct sss_child_ctx_old *child_ctx;
+     struct tevent_timer *timeout_handler;
+     struct tevent_context *ev;
+-    struct sss_certmap_ctx *sss_certmap_ctx;
++    struct pam_ctx *pctx;
+ 
+     struct child_io_fds *io;
+ 
+@@ -734,7 +734,7 @@ struct tevent_req *pam_check_cert_send(TALLOC_CTX *mem_ctx,
+                                        const char *ca_db,
+                                        time_t timeout,
+                                        const char *verify_opts,
+-                                       struct sss_certmap_ctx *sss_certmap_ctx,
++                                       struct pam_ctx *pctx,
+                                        const char *uri,
+                                        struct pam_data *pd)
+ {
+@@ -767,11 +767,12 @@ struct tevent_req *pam_check_cert_send(TALLOC_CTX *mem_ctx,
+         goto done;
+     }
+ 
+-    if (sss_certmap_ctx == NULL) {
++    if (pctx == NULL || pctx->sss_certmap_ctx == NULL) {
+         DEBUG(SSSDBG_CRIT_FAILURE, "Missing certificate matching context.\n");
+         ret = EINVAL;
+         goto done;
+     }
++    state->pctx = pctx;
+ 
+     state->pam_data = pd;
+ 
+@@ -851,7 +852,6 @@ struct tevent_req *pam_check_cert_send(TALLOC_CTX *mem_ctx,
+     }
+ 
+     state->ev = ev;
+-    state->sss_certmap_ctx = sss_certmap_ctx;
+     state->child_status = EFAULT;
+     state->io = talloc(state, struct child_io_fds);
+     if (state->io == NULL) {
+@@ -1012,7 +1012,8 @@ static void p11_child_done(struct tevent_req *subreq)
+ 
+     PIPE_FD_CLOSE(state->io->read_from_child_fd);
+ 
+-    ret = parse_p11_child_response(state, buf, buf_len, state->sss_certmap_ctx,
++    ret = parse_p11_child_response(state, buf, buf_len,
++                                   state->pctx->sss_certmap_ctx,
+                                    &state->cert_list);
+     if (ret != EOK) {
+         if (ret == ERR_P11_PIN_LOCKED) {


=====================================
debian/patches/CVE-2026-14474.patch
=====================================
@@ -0,0 +1,66 @@
+From: Alexey Tikhonov <atikhono at redhat.com>
+Date: Fri, 3 Jul 2026 13:25:08 +0200
+Subject: sudo: warn when ldap_sudo_search_base falls back to root DN
+MIME-Version: 1.0
+Content-Type: text/plain; charset="utf-8"
+Content-Transfer-Encoding: 8bit
+
+When ldap_sudo_search_base is not explicitly configured, SSSD falls back
+to the domain's naming context (root DN) and searches the entire LDAP
+directory tree for sudoRole objects. Any LDAP principal with write access
+to any subtree can inject a sudoRole granting arbitrary sudo privileges
+on every enrolled host.
+
+This patch adds a warning log when the fallback occurs, alerting
+administrators that their configuration searches the entire directory
+tree for sudo rules. A future hardening step would be to default to
+ou=sudoers,<base_dn> instead of the root DN.
+
+The warning approach preserves backwards compatibility while ensuring
+administrators are aware of the security implications.
+
+Based on the patch by: Ian Murphy <imurphy at redhat.com>
+Amended by: Alexey Tikhonov <atikhono at redhat.com>
+
+:fixes: CVE-2026-14474
+
+Reviewed-by: Sumit Bose <sbose at redhat.com>
+Reviewed-by: Tomáš Halman <thalman at redhat.com>
+(cherry picked from commit ff8c1b19bcdbf79b733b052a7d926bd920b1205d)
+(cherry picked from commit 71f52c4a112b9a2e0e07b348ce28170cc673d532)
+
+origin: backport, https://github.com/SSSD/sssd/commit/71f52c4a112b9a2e0e07b348ce28170cc673d532
+---
+ src/providers/ldap/sdap.c | 19 +++++++++++++++++++
+ 1 file changed, 19 insertions(+)
+
+diff --git a/src/providers/ldap/sdap.c b/src/providers/ldap/sdap.c
+index ef9c3fc..c4331a0 100644
+--- a/src/providers/ldap/sdap.c
++++ b/src/providers/ldap/sdap.c
+@@ -1323,6 +1323,25 @@ errno_t sdap_set_config_options_with_rootdse(struct sysdb_attrs *rootdse,
+ 
+     /* Sudo */
+     if (!sdom->sudo_search_bases) {
++        /* At some point make this option mandatory,
++         * i.e. disable sudo rules lookup if 'sudo_search_bases' not set.
++         */
++        DEBUG(SSSDBG_IMPORTANT_INFO,
++              "`ldap_sudo_search_base` is not set. SSSD will search the entire "
++              "directory tree (%s) for sudoRole objects. This may allow any "
++              "LDAP principal with write access to any subtree to inject "
++              "sudo rules granting arbitrary privileges. Set "
++              "`ldap_sudo_search_base` to restrict the search scope "
++              "(e.g., 'ou=sudoers,dc=example,dc=com').\n",
++              naming_context);
++       sss_log(SSS_LOG_ALERT,
++               "`ldap_sudo_search_base` is not set. SSSD will search the entire "
++               "directory tree (%s) for sudoRole objects. This may allow any "
++               "LDAP principal with write access to any subtree to inject "
++               "sudo rules granting arbitrary privileges. Set "
++               "`ldap_sudo_search_base` to restrict the search scope "
++               "(e.g., 'ou=sudoers,dc=example,dc=com').",
++               naming_context);
+        ret = sdap_set_search_base(opts, sdom,
+                                    SDAP_SUDO_SEARCH_BASE,
+                                    naming_context);


=====================================
debian/patches/CVE-2026-14476.patch
=====================================
@@ -0,0 +1,175 @@
+From: Alexey Tikhonov <atikhono at redhat.com>
+Date: Thu, 2 Jul 2026 17:29:51 +0200
+Subject: gpo: reject path traversal in gPCFileSysPath
+MIME-Version: 1.0
+Content-Type: text/plain; charset="utf-8"
+Content-Transfer-Encoding: 8bit
+
+The gPCFileSysPath LDAP attribute from AD Group Policy Objects is parsed
+by ad_gpo_extract_smb_components() which converts backslashes to forward
+slashes but does not reject ".." path traversal sequences. The resulting
+smb_path is used directly in gpo_cache_store_file() to construct a local
+filesystem path under GPO_CACHE_PATH, allowing an attacker with GPO
+write access to write files outside the cache directory.
+
+Due to differential path resolution between libsmbclient (which clamps
+".." at the SMB share root) and the kernel (which resolves ".." fully),
+the SMB download succeeds while the local file write escapes the cache.
+On systems with SELinux enforcing, this enables Kerberos configuration
+injection via /var/lib/sss/pubconf/krb5.include.d/ (sssd_public_t,
+writable by sssd_t). On systems without SELinux, this enables arbitrary
+file writes including cron job injection for root code execution.
+
+This patch adds two layers of defense:
+
+1. Reject ".." as a path component in smb_path at parse time in
+   ad_gpo_extract_smb_components(). Uses component-aware validation
+   that checks for "/..", "../", and exact ".." — not substring matching
+   which would false-positive on legitimate names containing "..".
+
+2. Validate the resolved cache path stays within GPO_CACHE_PATH in
+   gpo_cache_store_file() using realpath(), with a trailing-slash
+   prefix check to prevent prefix-collision attacks (e.g.,
+   /var/lib/sss/gpo_cache_evil/ matching /var/lib/sss/gpo_cache).
+
+Based on the patch by: Ian Murphy <imurphy at redhat.com>
+Amended by: Alexey Tikhonov <atikhono at redhat.com>
+
+:fixes: CVE-2026-14476
+
+Reviewed-by: Sumit Bose <sbose at redhat.com>
+Reviewed-by: Tomáš Halman <thalman at redhat.com>
+(cherry picked from commit ba207eab76ff5253662a763b9b6e9ea42f03d31b)
+(cherry picked from commit 91017d89f44da47ae16c140e94a5bcafc43badb5)
+
+origin: usptream, https://github.com/SSSD/sssd/commit/91017d89f44da47ae16c140e94a5bcafc43badb5
+---
+ src/providers/ad/ad_gpo.c       | 47 +++++++++++++++++++++++++++++++++++++++
+ src/providers/ad/ad_gpo_child.c | 49 +++++++++++++++++++++++++++++++++++++++++
+ 2 files changed, 96 insertions(+)
+
+diff --git a/src/providers/ad/ad_gpo.c b/src/providers/ad/ad_gpo.c
+index 904aa1e..7152622 100644
+--- a/src/providers/ad/ad_gpo.c
++++ b/src/providers/ad/ad_gpo.c
+@@ -3835,6 +3835,43 @@ ad_gpo_populate_candidate_gpos(TALLOC_CTX *mem_ctx,
+     return ret;
+ }
+ 
++/*
++ * Check whether a path contains ".." as a path component.
++ * Returns true if traversal is detected, false if the path is safe.
++ *
++ * Checks for:
++ *   - "/.." anywhere in the path (component starting with ..)
++ *   - "../" at the start of the path
++ *   - exact match ".." (path is just "..")
++ *   - "/.." at the end of the path
++ *
++ * Does NOT match ".." as a substring of a longer component
++ * (e.g., "my..file" is allowed).
++ */
++static bool gpo_path_has_traversal(const char *path)
++{
++    const char *p;
++
++    if (path == NULL) {
++        return false;
++    }
++
++    /* Exact match */
++    if (strcmp(path, "..") == 0) return true;
++
++    /* Starts with ../ */
++    if (strncmp(path, "../", 3) == 0) return true;
++
++    /* Contains /../ or ends with /.. */
++    p = path;
++    while ((p = strstr(p, "/..")) != NULL) {
++        if (p[3] == '/' || p[3] == '\0') return true;
++        p += 3;
++    }
++
++    return false;
++}
++
+ /*
+  * This function parses the input_path into its components, replaces each
+  * back slash ('\') with a forward slash ('/'), and populates the output params.
+@@ -3911,6 +3948,16 @@ ad_gpo_extract_smb_components(TALLOC_CTX *mem_ctx,
+         goto done;
+     }
+ 
++    /* Reject path traversal. See function comment for what is matched. */
++    if (gpo_path_has_traversal(smb_path)) {
++        DEBUG(SSSDBG_CRIT_FAILURE,
++              "gPCFileSysPath contains path traversal component '..': "
++              "[%s]. Rejecting to prevent cache directory escape.\n",
++              smb_path);
++        ret = EINVAL;
++        goto done;
++    }
++
+     *_smb_server = talloc_asprintf(mem_ctx, "%s%s",
+                                    SMB_STANDARD_URI,
+                                    server_hostname);
+diff --git a/src/providers/ad/ad_gpo_child.c b/src/providers/ad/ad_gpo_child.c
+index 319156b..44af5d8 100644
+--- a/src/providers/ad/ad_gpo_child.c
++++ b/src/providers/ad/ad_gpo_child.c
+@@ -320,6 +320,55 @@ static errno_t gpo_cache_store_file(const char *smb_path,
+         goto done;
+     }
+ 
++    /* Defense-in-depth: verify the resolved path stays within the cache
++     * directory (when updating existing files). This catches any bypass
++     * of the ".." check in the parser, including encoding tricks, symlink
++     * attacks, or future regressions.
++     *
++     * The trailing-slash comparison prevents prefix-collision attacks:
++     * without it, a path resolving to "/var/lib/sss/gpo_cache_evil/"
++     * would incorrectly match the prefix "/var/lib/sss/gpo_cache".
++     */
++    {
++        char *resolved = realpath(filename, NULL);
++        if (resolved != NULL) {
++            /* Resolve GPO_CACHE_PATH too so the comparison works
++             * even when the cache path contains symlinks. */
++            char *resolved_cache = realpath(GPO_CACHE_PATH, NULL);
++            if (resolved_cache == NULL) {
++                ret = errno;
++                DEBUG(SSSDBG_CRIT_FAILURE,
++                      "realpath(\"%s\") failed: [%d][%s]\n",
++                      GPO_CACHE_PATH, ret, strerror(ret));
++                free(resolved);
++                goto done;
++            }
++
++            /* Check that resolved path starts with resolved cache + "/" */
++            size_t cache_len = strlen(resolved_cache);
++            bool inside = ((strlen(resolved) >= cache_len) &&
++                           (strncmp(resolved, resolved_cache, cache_len) == 0) &&
++                           (resolved[cache_len] == '/' || resolved[cache_len] == '\0'));
++            if (!inside) {
++                DEBUG(SSSDBG_CRIT_FAILURE,
++                      "GPO cache path escapes cache directory: [%s] "
++                      "resolves to [%s] which is outside [%s]. "
++                      "Rejecting.\n",
++                      filename, resolved, resolved_cache);
++                free(resolved_cache);
++                free(resolved);
++                ret = EINVAL;
++                goto done;
++            }
++            free(resolved_cache);
++            free(resolved);
++        }
++        /* If realpath returns NULL, the path doesn't exist yet.
++         * prepare_gpo_cache() will create it — the mkdir calls
++         * are validated by SELinux MAC policy.
++         */
++    }
++
+     tmp_name = talloc_asprintf(tmp_ctx, "%sXXXXXX", filename);
+     if (tmp_name == NULL) {
+         DEBUG(SSSDBG_CRIT_FAILURE, "talloc_asprintf failed.\n");


=====================================
debian/patches/CVE-2026-68742.patch
=====================================
@@ -0,0 +1,55 @@
+From: Alexey Tikhonov <atikhono at redhat.com>
+Date: Tue, 4 Aug 2026 20:08:28 +0200
+Subject: nss: validate addrlen in sss_nss_protocol_parse_addr()
+MIME-Version: 1.0
+Content-Type: text/plain; charset="utf-8"
+Content-Transfer-Encoding: 8bit
+
+:fixes: CVE-2026-68742
+
+Reviewed-by: Pavel Březina <pbrezina at redhat.com>
+Reviewed-by: Sumit Bose <sbose at redhat.com>
+(cherry picked from commit 2839e8ccffebbb6bd605047b012eaa5fdb56b9d3)
+(cherry picked from commit cb806786db2c7c7fc3b000fe824f761a7d8481e0)
+
+origin: upstream, https://github.com/SSSD/sssd/commit/cb806786db2c7c7fc3b000fe824f761a7d8481e0
+---
+ src/responder/nss/nss_protocol.c | 18 ++++++++++++++++++
+ 1 file changed, 18 insertions(+)
+
+diff --git a/src/responder/nss/nss_protocol.c b/src/responder/nss/nss_protocol.c
+index e6dc702..aa9eca3 100644
+--- a/src/responder/nss/nss_protocol.c
++++ b/src/responder/nss/nss_protocol.c
+@@ -23,6 +23,8 @@
+ #include "lib/idmap/sss_idmap.h"
+ #include "responder/nss/nss_protocol.h"
+ #include <arpa/inet.h>
++#include <sys/socket.h>
++#include <arpa/nameser.h>
+ 
+ errno_t
+ sss_nss_protocol_done(struct cli_ctx *cli_ctx, errno_t error)
+@@ -467,6 +469,22 @@ sss_nss_protocol_parse_addr(struct cli_ctx *cli_ctx,
+     SAFEALIGN_COPY_UINT32(&af, body, NULL);
+     SAFEALIGN_COPY_UINT32(&addrlen, body + sizeof(uint32_t), NULL);
+ 
++    if (addrlen != blen - sizeof(uint32_t) * 2) {
++        return EINVAL;
++    }
++
++    if (af == AF_INET) {
++        if (addrlen != INADDRSZ) {
++            return EINVAL;
++        }
++    } else if (af == AF_INET6) {
++        if (addrlen != IN6ADDRSZ) {
++            return EINVAL;
++        }
++    } else {
++        return EINVAL;
++    }
++
+     addr = body + sizeof(uint32_t) * 2;
+ 
+     /* If the body isn't a addr, fail */


=====================================
debian/patches/CVE-2026-68743.patch
=====================================
@@ -0,0 +1,38 @@
+From: Alexey Tikhonov <atikhono at redhat.com>
+Date: Tue, 4 Aug 2026 20:51:07 +0200
+Subject: pam: validate auth_token_length in extract_authtok_v1()
+MIME-Version: 1.0
+Content-Type: text/plain; charset="utf-8"
+Content-Transfer-Encoding: 8bit
+
+The check mimics one existing in `extract_authtok_v2()`
+
+:fixes: CVE-2026-68743
+
+Assisted-By: Claude Code (Opus 4.6)
+Reviewed-by: Pavel Březina <pbrezina at redhat.com>
+Reviewed-by: Sumit Bose <sbose at redhat.com>
+(cherry picked from commit bef9d12617f22335e65447609a2724a68c1bf68a)
+(cherry picked from commit 1ea0f2da77947598165da2b84202d355f43c9aa1)
+
+origin: upstream, https://github.com/SSSD/sssd/commit/1ea0f2da77947598165da2b84202d355f43c9aa1
+---
+ src/responder/pam/pamsrv_cmd.c | 5 +++++
+ 1 file changed, 5 insertions(+)
+
+diff --git a/src/responder/pam/pamsrv_cmd.c b/src/responder/pam/pamsrv_cmd.c
+index da5b516..92afc14 100644
+--- a/src/responder/pam/pamsrv_cmd.c
++++ b/src/responder/pam/pamsrv_cmd.c
+@@ -411,6 +411,11 @@ static int extract_authtok_v1(struct sss_auth_token *tok,
+ 
+     SAFEALIGN_COPY_UINT32_CHECK(&auth_token_type, &body[*c], blen, c);
+     SAFEALIGN_COPY_UINT32_CHECK(&auth_token_length, &body[*c], blen, c);
++
++    if (*c + auth_token_length > blen || SIZE_T_OVERFLOW(*c, auth_token_length)) {
++        return EINVAL;
++    }
++
+     auth_token_data = body+(*c);
+ 
+     switch (auth_token_type) {


=====================================
debian/patches/CVE-2026-68744.patch
=====================================
@@ -0,0 +1,54 @@
+From: Alexey Tikhonov <atikhono at redhat.com>
+Date: Mon, 3 Aug 2026 17:28:54 +0200
+Subject: NSS: fix initgroups packet heap disclosure
+MIME-Version: 1.0
+Content-Type: text/plain; charset="utf-8"
+Content-Transfer-Encoding: 8bit
+
+sss_nss_protocol_fill_initgr() pre-allocates the reply packet for all
+group entries in result->count, but groups may be skipped when they are
+non-POSIX, incomplete, or filtered by the negative cache.
+Shrink the packet after filling it so it contains exactly the data that
+was written.
+
+:fixes: CVE-2026-68744
+
+Assisted-By: Claude Code (Opus 4.6)
+Reviewed-by: Pavel Březina <pbrezina at redhat.com>
+Reviewed-by: Sumit Bose <sbose at redhat.com>
+(cherry picked from commit f5be5002a2e43ff9d2a22a95ffe4e0eeb56e0d3d)
+(cherry picked from commit 815d761330265484b2b8788742a3a81ace6d0484)
+
+origin: upstream, https://github.com/SSSD/sssd/commit/f5be5002a2e43ff9d2a22a95ffe4e0eeb56e0d3d
+---
+ src/responder/nss/nss_protocol_grent.c | 11 +++++++----
+ 1 file changed, 7 insertions(+), 4 deletions(-)
+
+diff --git a/src/responder/nss/nss_protocol_grent.c b/src/responder/nss/nss_protocol_grent.c
+index ee1b639..72e4396 100644
+--- a/src/responder/nss/nss_protocol_grent.c
++++ b/src/responder/nss/nss_protocol_grent.c
+@@ -451,10 +451,7 @@ sss_nss_protocol_fill_initgr(struct sss_nss_ctx *nss_ctx,
+         }
+     }
+ 
+-    if (orig_gid == 0) {
+-        /* Initialize allocated memory to be safe and make Valgrind happy. */
+-        SAFEALIGN_SET_UINT32(&body[rp], 0, &rp);
+-    } else {
++    if (orig_gid != 0) {
+         /* Insert original primary group into the result. */
+         SAFEALIGN_COPY_UINT32(&body[rp], &orig_gid, &rp);
+         num_results++;
+@@ -482,5 +479,11 @@ sss_nss_protocol_fill_initgr(struct sss_nss_ctx *nss_ctx,
+     SAFEALIGN_COPY_UINT32(body, &num_results, NULL);
+     SAFEALIGN_SETMEM_UINT32(body + sizeof(uint32_t), 0, NULL); /* reserved */
+ 
++    /* Shrink packet to actual data size to avoid sending uninitialized heap. */
++    ret = sss_packet_set_size(packet, (2 + num_results) * sizeof(uint32_t));
++    if (ret != EOK) {
++        return ret;
++    }
++
+     return EOK;
+ }


=====================================
debian/patches/series
=====================================
@@ -3,3 +3,10 @@ default-to-socket-activated-services.diff
 fix-shebang-on-sss_analyze.patch
 0004-Makefile-Install-dbus-policy-in-usr-not-etc.patch
 CVE-2023-3758.patch
+CVE-2025-11561.patch
+CVE-2026-12610.patch
+CVE-2026-14474.patch
+CVE-2026-14476.patch
+CVE-2026-68742.patch
+CVE-2026-68743.patch
+CVE-2026-68744.patch



View it on GitLab: https://salsa.debian.org/sssd-team/sssd/-/compare/747fff9c77fe574b70d6eefe15f0a2d267d4c917...de87d389d4c0037aba36401fd779510fc8cc655b

-- 
View it on GitLab: https://salsa.debian.org/sssd-team/sssd/-/compare/747fff9c77fe574b70d6eefe15f0a2d267d4c917...de87d389d4c0037aba36401fd779510fc8cc655b
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/20261201/d4cca4b5/attachment-0001.htm>


More information about the Pkg-sssd-devel mailing list