CVE-2026-12505: Cifs-utils: local privilege escalation via forged cifs.spnego key description in cifs.upcall
A flaw was found in the cifs-utils package where the cifs.upcall helper fails to securely drop its root privileges before looking up user information inside a user-controlled environment. A local, low privileged attacker can exploit this by using a crafted requestkey payload to trick the root-owned helper into entering a custom environment (namespace) containing a malicious NSS module. This forces the system to load the attacker's controlled NSS Module and configuration, allowing them to execute arbitrary commands as the root user, elevating their privileges and fully compromising the system.
Other sources
Cifs-utils: local privilege escalation via forged cifs.spnego key description in cifs.upcall
— Microsoft
The vulnerability affects cifs.upcall in cifs-utils. When processing a cifs.spnego key request, cifs.upcall may switch into attacker-controlled namespaces before fully dropping its root privileges. During this transition, the helper performs NSS lookups using getpwuid() while still retaining privileged kernel credentials. An attacker may create a controlled user and mount namespace containing a malicious NSS configuration and NSS module. By triggering a crafted cifs.spnego request through requestkey(), the attacker can cause cifs.upcall to load the malicious NSS module before privileges are fully dropped.
— Red Hat
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 7.6-1 - Upgrade
Upgrade
debian/cifs-utilsto a version that resolves this vulnerability.Fixed in 2:7.4-1+deb13u1Fixed in 2:7.8-1 - Upgrade
Upgrade
ubuntu/cifs-utilsto a version that resolves this vulnerability.Fixed in 2:6.14-1ubuntu0.6 - Upgrade
Upgrade
ubuntu/cifs-utilsto a version that resolves this vulnerability.Fixed in 2:7.0-2ubuntu0.5 - Upgrade
Upgrade
ubuntu/cifs-utilsto a version that resolves this vulnerability.Fixed in 2:7.4-1ubuntu0.26.04.3 - Upgrade
Upgrade
debian/cifs-utilsto a version that resolves this vulnerability.Fixed in 2:7.0-2+deb12u1 - Upgrade
Upgrade
debian/cifs-utilsto a version that resolves this vulnerability.Fixed in 2:7.4-1+deb13u1 - Upgrade
Upgrade
debian/cifs-utilsto a version that resolves this vulnerability.Fixed in 2:7.8-1
Event History
Frequently Asked Questions
What level of access does an attacker need?
The attacker needs local, low-privileged access to the system. No user interaction is required.
What capabilities are needed to trigger exploitation?
The attacker must be able to submit a crafted cifs.spnego request_key payload and create controlled user and mount namespaces containing a malicious NSS configuration and NSS module.
Which listed software is affected?
The affected component is cifs.upcall in cifs-utils. The supplied software data specifically lists Microsoft azl3 cifs-utils 7.3-1 and Debian cifs-utils.