CVE-2026-12505: Cifs-utils: local privilege escalation via forged cifs.spnego key description in cifs.upcall

Published Jun 17, 2026
·
Updated

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

14 affected componentsFixes available
cifs-utils
Microsoft azl3 cifs-utils 7.3-1<7.6-1
7.6-1
debian/cifs-utils<=2:7.0-2
2:7.4-1+deb13u12:7.8-1
ubuntu/cifs-utils*
ubuntu/cifs-utils*
ubuntu/cifs-utils*
ubuntu/cifs-utils*
ubuntu/cifs-utils<2:6.14-1ubuntu0.6
2:6.14-1ubuntu0.6
ubuntu/cifs-utils<2:7.0-2ubuntu0.5
2:7.0-2ubuntu0.5
ubuntu/cifs-utils*
ubuntu/cifs-utils<2:7.4-1ubuntu0.26.04.3
2:7.4-1ubuntu0.26.04.3
debian/cifs-utils<2:7.0-2+deb12u1
2:7.0-2+deb12u1
debian/cifs-utils<2:7.4-1+deb13u1
2:7.4-1+deb13u1
debian/cifs-utils<2:7.8-1
2:7.8-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 7.6-1
  2. Upgrade

    Upgrade debian/cifs-utils to a version that resolves this vulnerability.

    Fixed in 2:7.4-1+deb13u1Fixed in 2:7.8-1
  3. Upgrade

    Upgrade ubuntu/cifs-utils to a version that resolves this vulnerability.

    Fixed in 2:6.14-1ubuntu0.6
  4. Upgrade

    Upgrade ubuntu/cifs-utils to a version that resolves this vulnerability.

    Fixed in 2:7.0-2ubuntu0.5
  5. Upgrade

    Upgrade ubuntu/cifs-utils to a version that resolves this vulnerability.

    Fixed in 2:7.4-1ubuntu0.26.04.3
  6. Upgrade

    Upgrade debian/cifs-utils to a version that resolves this vulnerability.

    Fixed in 2:7.0-2+deb12u1
  7. Upgrade

    Upgrade debian/cifs-utils to a version that resolves this vulnerability.

    Fixed in 2:7.4-1+deb13u1
  8. Upgrade

    Upgrade debian/cifs-utils to a version that resolves this vulnerability.

    Fixed in 2:7.8-1

Event History

Jun 17, 2026
Data Sourced
via Red Hat·10:22 AM
DescriptionSeverityAffected Software
Jun 18, 2026
CVE Published
via MITRE·03:34 AM
Data Sourced
via MITRE·03:34 AM
DescriptionSeverityWeakness
Data Sourced
via OSV·04:16 AM
DescriptionSeverityAffected Software
Data Sourced
via NVD·04:16 AM
DescriptionSeverityWeakness
Jun 27, 2026
Data Sourced
via Microsoft·08:04 AM
DescriptionSeverityWeaknessAffected Software
Jun 30, 2026
Updated
via NVD·03:17 AM
SeverityWeakness
Nov 30, 2026
Updated
via OSV·09:00 AM
Affected Software

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What level of access does an attacker need?

The attacker needs local, low-privileged access to the system. No user interaction is required.

2

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.

3

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203