Skip to main content
Vulnerability Database/CVE-2026-104041

CVE-2026-104041: SSSD Memory Exhaustion DoS Vulnerability

CVE-2026-104041 is a denial of service vulnerability in SSSD where unprivileged users can exhaust system memory through repeated NSS lookups. This article covers the technical details, affected versions, and mitigation strategies.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-104041 Overview

CVE-2026-104041 is a resource exhaustion flaw in the System Security Services Daemon (SSSD). An unprivileged local user can trigger memory exhaustion in the Name Service Switch (NSS) responder by issuing repeated lookups for nonexistent entries. The negative cache stores each miss but enforces no upper bound on total entries, and it only prunes expired records when an existing key is rechecked. The cache therefore grows without limit, eventually causing the responder to become unresponsive or terminate. The weakness is tracked as CWE-770: Allocation of Resources Without Limits or Throttling.

Critical Impact

A local, authenticated user can exhaust system memory and crash the SSSD NSS responder, disrupting identity resolution for all users and services on the host.

Affected Products

  • SSSD (System Security Services Daemon) NSS responder component
  • Red Hat Enterprise Linux distributions shipping affected SSSD builds (see Red Hat CVE-2026-104041 Advisory)
  • Linux systems using SSSD for centralized identity and authentication

Discovery Timeline

  • 2026-10-06 - CVE-2026-104041 published to NVD
  • 2026-10-06 - Last updated in NVD database

Technical Details for CVE-2026-104041

Vulnerability Analysis

SSSD provides access to identity and authentication providers through responder processes. The NSS responder answers getpwnam, getgrnam, and similar lookups by querying backends and caching results. To avoid repeated backend queries for entries that do not exist, SSSD maintains a negative cache keyed by the requested name.

The negative cache implementation applies a time-to-live to each entry but does not enforce a maximum size. Expiry is also lazy: an expired record is only evicted when the same key is queried again. If an attacker continuously requests fresh, unique nonexistent names, each query inserts a new negative cache entry while nothing triggers eviction of the prior ones.

Sustained lookups cause the responder's memory footprint to grow until the operating system kills it or the process becomes unresponsive. Because SSSD mediates user, group, and credential resolution for the entire host, failure of the responder cascades into login failures, authentication outages, and service disruption.

Root Cause

The root cause is missing resource bounds on the NSS responder's negative cache. The code lacks both a maximum entry count and a background eviction routine. See the Red Hat Bugzilla Report #2478864 for maintainer discussion.

Attack Vector

Exploitation requires local, authenticated access with low privileges and no user interaction. An attacker scripts repeated NSS lookups for randomly generated nonexistent user or group names using standard tools such as getent passwd <random> or direct getpwnam calls. Each miss inflates the negative cache. The attack produces no confidentiality or integrity impact but denies availability of identity services on the host.

No verified public exploit code is available. The vulnerability is described in prose; see the vendor advisory for authoritative technical details.

Detection Methods for CVE-2026-104041

Indicators of Compromise

  • Sustained growth of resident memory for the sssd_nss process without a corresponding increase in legitimate user activity.
  • High-rate getent, id, or getpwnam-style lookups originating from a single unprivileged user account.
  • SSSD log entries recording large numbers of negative cache insertions for distinct, nonexistent principals.
  • Out-of-memory kills (oom-killer) targeting sssd_nss in dmesg or journalctl output.

Detection Strategies

  • Monitor process memory for sssd_nss and alert on abnormal growth rates or absolute thresholds relative to baseline.
  • Correlate SSSD responder log volume with per-user NSS query rates to identify abusive lookup patterns.
  • Enable SSSD debug logging at a level that records cache insertions, then detect repeated misses for unique names from one source UID.

Monitoring Recommendations

  • Ingest /var/log/sssd/sssd_nss.log and journalctl -u sssd into centralized logging for pattern analysis.
  • Track OOM events and SSSD service restarts as high-signal availability indicators.
  • Baseline normal NSS query rates per host and alert on sustained deviations.

How to Mitigate CVE-2026-104041

Immediate Actions Required

  • Apply vendor-supplied SSSD updates as soon as they are released by your Linux distribution.
  • Restrict interactive and shell access on multi-tenant hosts to trusted users while a patch is pending.
  • Configure process-level resource limits for the SSSD service to cap memory consumption and force recovery instead of host-wide impact.
  • Monitor sssd_nss memory and restart the service on sustained anomalous growth.

Patch Information

Refer to the Red Hat CVE-2026-104041 Advisory for errata and fixed package versions. Apply updates through your distribution's package manager once available and restart the sssd service to load the fixed responder.

Workarounds

  • Set MemoryMax or MemoryHigh in a systemd drop-in for the sssd service to bound responder memory.
  • Reduce the negative cache time-to-live by lowering entry_negative_timeout in sssd.conf so entries expire sooner, mitigating accumulation under light abuse.
  • Rate-limit shell access and audit users capable of scripting high-volume NSS queries.
  • Schedule periodic restarts of the sssd service during maintenance windows if abuse is suspected.
bash
# Example systemd drop-in to cap SSSD memory usage
# /etc/systemd/system/sssd.service.d/memory-limit.conf
[Service]
MemoryHigh=512M
MemoryMax=1G

# Apply changes
sudo systemctl daemon-reload
sudo systemctl restart sssd

# Example /etc/sssd/sssd.conf tuning for negative cache
# [nss]
# entry_negative_timeout = 15

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.