If your SSSD deployment includes ppolicy in ldap_access_order, you carry a fail-open authorization risk more dangerous than the CVSS 5.4 suggests. When the ppolicy lookup returns zero results—deprovisioned user, deleted entry, or an inactive overlay—the code interprets "no policy constraints found" as "no constraints violated" and grants access. SSSD then caches that allow decision, and downstream services query the cache rather than re-evaluating.
The "prior valid account" prerequisite does not narrow the attack surface meaningfully. The realistic scenario is credentials captured before deprovisioning: SSSD's cached allow keeps the identity technically alive across sudo, SSH, systemd-logind, D-Bus, and in containerized environments, the runtime. Short-lived Kerberos tickets don't bound this—the SSSD cache outlives ticket renewal. SSSD authorization is binary at the session layer, with no degraded mode: uid, gid, and sudo authorization granted on the cached allow propagate to every subsequent check.
Three actions:
- Identify hosts with
ppolicyinldap_access_orderand confirm the LDAP server actually runs the ppolicy overlay. If absent, the chain entry is silently nonfunctional but the code path still runs. - Audit the SSSD mmap cache (
/var/lib/sss/db/) for entries tied to recently deprovisioned accounts. The cache survives restarts unless explicitly invalidated. - Verify your IdM deprovisioning workflow sends an explicit cache-purge signal. Deleting the LDAP entry alone does not invalidate a cached allow.
The ldap_access_order interface contributes to the risk. It presents ppolicy as semantically equivalent to filter, expire, and rhost, but it is the only option that performs an external query which can return empty. "Empty result equals constraint satisfied" is a recurring LDAP middleware bug—SSSD inherited it from PADL-era nss_ldap, and the same pattern has surfaced in phpLDAPadmin, 389-ds, and Ruby's Net::LDAP. When reviewing the upstream fix, confirm it distinguishes "no policy entry" from "access granted" rather than papering over the empty-result case.