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-104112 Overview
CVE-2026-104112 is a resource exhaustion vulnerability in the illumos name service cache daemon (nscd). The switcher() door server procedure in usr/src/cmd/nscd/nscd_frontend.c fails to close file descriptors passed through door calls when the request does not consume them. Because the main nscd door at /var/run/name_service_door accepts descriptors from any user in its zone, and nscd runs without a file descriptor limit, an unprivileged local user can leak descriptors into kernel memory until the host becomes unresponsive. The flaw has existed since 2006 (illumos-gate commit cb5caa98) and is tracked as [CWE-772: Missing Release of Resource after Effective Lifetime].
Critical Impact
A local unprivileged user, including one confined to a non-global zone, can exhaust kernel memory and render processes in all zones on the host unresponsive.
Affected Products
- illumos-gate prior to commit af810a72
- Downstream illumos distributions shipping unpatched nscd
- Multi-zone illumos hosts where non-global zones can reach the local nscd door
Discovery Timeline
- 2026-10-09 - CVE CVE-2026-104112 published to NVD
- 2026-10-09 - Last updated in NVD database
Technical Details for CVE-2026-104112
Vulnerability Analysis
The nscd daemon exposes a door at /var/run/name_service_door to accept name service lookup requests from processes in its zone. Door calls can carry file descriptors alongside their data payload. The switcher() dispatch routine in nscd_frontend.c only consumes descriptors tied to specific request types. For all other request paths, the passed descriptors remain open in the nscd process after the handler returns.
Because nscd runs with an unlimited file descriptor rlimit, there is no soft ceiling on how large its descriptor table can grow. Each leaked descriptor consumes kernel memory for the file table entry and the referenced file_t structure. An attacker executing door_call() in a tight loop forces unbounded kernel memory growth tied to nscd.
The outcome is a denial of service that extends beyond nscd itself. Once kernel memory is exhausted, scheduling, allocation, and I/O across every zone on the host degrade or stall. A non-global zone tenant can therefore disrupt the global zone and sibling zones from an unprivileged shell.
Root Cause
Two defects combine. First, switcher() does not call close() on descriptors passed via door_desc_t when the handler ignores them. Second, the door is reachable by any UID in the zone and nscd has no RLIMIT_NOFILE cap, so there is no backstop against descriptor accumulation.
Attack Vector
Exploitation requires local access to a zone that runs nscd. The attacker opens any file descriptor, packages it as a door_desc_t with DOOR_DESCRIPTOR, and calls door_call() on /var/run/name_service_door using a request type that does not consume the descriptor. Repeating the call in a loop drives nscd's descriptor table and kernel memory usage upward until the system becomes unresponsive.
The following patch excerpt from the upstream fix illustrates the touched components:
* Copyright (c) 2006, 2010, Oracle and/or its affiliates. All rights reserved.
* Copyright 2012 Milan Jurik. All rights reserved.
* Copyright 2018 Joyent Inc.
+ * Copyright 2026 Oxide Computer Company
*/
#include <stdio.h>
Source: illumos-gate commit af810a72
Detection Methods for CVE-2026-104112
Indicators of Compromise
- Sustained growth of the nscd process file descriptor count, visible via pfiles $(pgrep nscd) or plockstat.
- Rising kernel memory consumption attributed to file table allocations in kstat -n file_cache or mdb -k ::kmastat.
- Repeated door_call() activity from unprivileged UIDs against /var/run/name_service_door in DTrace traces.
- nscd becoming unresponsive to lookups while CPU and syscall activity from a single local user remains high.
Detection Strategies
- Deploy DTrace probes on the door_call and door_return syscalls to flag callers that repeatedly pass descriptors without a matching request type.
- Baseline nscd descriptor count and alert when it exceeds a threshold (for example, several thousand open descriptors).
- Correlate per-user syscall rates with kernel memory pressure to attribute global degradation to a specific zone or UID.
Monitoring Recommendations
- Forward kernel memory and nscd process telemetry to a central analytics tier for trend analysis across zones.
- Add host health checks that verify nscd responsiveness and descriptor count during scheduled intervals.
- Audit non-global zones for untrusted local users, since the attack originates from within the zone.
How to Mitigate CVE-2026-104112
Immediate Actions Required
- Apply the illumos-gate fix at commit af810a72 or the equivalent backport provided by your distribution.
- Inventory hosts that run multi-tenant non-global zones and prioritize them for patching.
- Restrict shell access in non-global zones to trusted users until the patch is deployed.
Patch Information
The upstream fix is illumos-gate commit af810a72c09944e884ec695e8dbf1702a4f424ae, tracked as illumos issue #18494. The change closes passed file descriptors in the switcher() door procedure and tightens descriptor handling in nscd_selfcred.c. Downstream consumers should rebuild nscd from a tree that includes this commit. See the illumos developer discussion for related door server CVEs addressed in the same disclosure.
Workarounds
- Impose a RLIMIT_NOFILE ceiling on the nscd service via SMF method credentials to cap the maximum descriptor table size.
- Disable nscd in zones that do not require name service caching, removing the attack surface entirely.
- Enforce least privilege in non-global zones and avoid granting shell access to untrusted principals.
# Example: cap nscd file descriptors via SMF to bound kernel memory impact
svccfg -s svc:/system/name-service-cache:default setprop \
start/limit_descriptors = count: 4096
svcadm refresh svc:/system/name-service-cache:default
svcadm restart svc:/system/name-service-cache:default
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

