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

> Local attackers can escalate privileges to root by exploiting a flaw in cifs.upcall that allows loading malicious NSS modules via crafted key requests.

- **Severity:** High 7.8 (`CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`)
- **Exploited in the wild:** Not known
- **Login needed:** Any signed-in user
- **Attackable:** Local or same network only
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 18 Jun 2026
- **Updated:** 14 Oct 2026
- **Also known as:** ALSA-2026:39575, ALSA-2026:39576, AZL-91131, CLSA-2026-1784560784, CLSA-2026-1784818499, DEBIAN-CVE-2026-12505, ECHO-384f-89a4-ea70, GHSA-58j9-p7xf-pjx7, MGASA-2026-0291, OESA-2026-3028, OESA-2026-3032, RHSA-2026:32990, RHSA-2026:39575, RHSA-2026:39576, RLSA-2026:32990, RLSA-2026:39575, RLSA-2026:39576, SUSE-SU-2026:22888-1, SUSE-SU-2026:2699-1, SUSE-SU-2026:2700-1, UBUNTU-CVE-2026-12505, USN-8496-3

## What is CVE-2026-12505?

CVE-2026-12505 is a high-severity vulnerability in Red Hat Enterprise Linux 10, published on 18 Jun 2026. It can only be exploited from the same machine or local network, with no action from the victim.

### Official description

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 request_key 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.

Weakness: CWE-250 (Execution with Unnecessary Privileges)

## Which versions are affected by CVE-2026-12505?


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `cifs-utils` | AlmaLinux:8 | All versions | 7.0-5.el8_10 |
| `cifs-utils-devel` | AlmaLinux:8 | All versions | 7.0-5.el8_10 |
| `pam_cifscreds` | AlmaLinux:8 | All versions | 7.0-5.el8_10 |
| `cifs-utils` | AlmaLinux:9 | All versions | 7.6-2.el9_8 |
| `cifs-utils-devel` | AlmaLinux:9 | All versions | 7.6-2.el9_8 |
| `pam_cifscreds` | AlmaLinux:9 | All versions | 7.6-2.el9_8 |
| `cifs-utils` | Red Hat:enterprise_linux:10.2 | All versions | 0:7.6-1.el10_2 |
| `cifs-utils-debuginfo` | Red Hat:enterprise_linux:10.2 | All versions | 0:7.6-1.el10_2 |
| `cifs-utils-debugsource` | Red Hat:enterprise_linux:10.2 | All versions | 0:7.6-1.el10_2 |
| `cifs-utils-devel` | Red Hat:enterprise_linux:10.2 | All versions | 0:7.6-1.el10_2 |
| `pam_cifscreds` | Red Hat:enterprise_linux:10.2 | All versions | 0:7.6-1.el10_2 |
| `pam_cifscreds-debuginfo` | Red Hat:enterprise_linux:10.2 | All versions | 0:7.6-1.el10_2 |
| `cifs-utils` | Red Hat:enterprise_linux:8::baseos | All versions | 0:7.0-5.el8_10 |
| `cifs-utils-debuginfo` | Red Hat:enterprise_linux:8::baseos | All versions | 0:7.0-5.el8_10 |
| `cifs-utils-debugsource` | Red Hat:enterprise_linux:8::baseos | All versions | 0:7.0-5.el8_10 |
| `pam_cifscreds` | Red Hat:enterprise_linux:8::baseos | All versions | 0:7.0-5.el8_10 |
| `pam_cifscreds-debuginfo` | Red Hat:enterprise_linux:8::baseos | All versions | 0:7.0-5.el8_10 |
| `cifs-utils-debuginfo` | Red Hat:enterprise_linux:8::crb | All versions | 0:7.0-5.el8_10 |
| `cifs-utils-debugsource` | Red Hat:enterprise_linux:8::crb | All versions | 0:7.0-5.el8_10 |
| `cifs-utils-devel` | Red Hat:enterprise_linux:8::crb | All versions | 0:7.0-5.el8_10 |
| `pam_cifscreds-debuginfo` | Red Hat:enterprise_linux:8::crb | All versions | 0:7.0-5.el8_10 |
| `cifs-utils-debuginfo` | Red Hat:enterprise_linux:9::appstream | All versions | 0:7.6-2.el9_8 |
| `cifs-utils-debugsource` | Red Hat:enterprise_linux:9::appstream | All versions | 0:7.6-2.el9_8 |
| `pam_cifscreds` | Red Hat:enterprise_linux:9::appstream | All versions | 0:7.6-2.el9_8 |
| `pam_cifscreds-debuginfo` | Red Hat:enterprise_linux:9::appstream | All versions | 0:7.6-2.el9_8 |
| `cifs-utils` | Red Hat:enterprise_linux:9::baseos | All versions | 0:7.6-2.el9_8 |
| `cifs-utils-debuginfo` | Red Hat:enterprise_linux:9::baseos | All versions | 0:7.6-2.el9_8 |
| `cifs-utils-debugsource` | Red Hat:enterprise_linux:9::baseos | All versions | 0:7.6-2.el9_8 |
| `pam_cifscreds-debuginfo` | Red Hat:enterprise_linux:9::baseos | All versions | 0:7.6-2.el9_8 |
| `cifs-utils-debuginfo` | Red Hat:enterprise_linux:9::crb | All versions | 0:7.6-2.el9_8 |
| `cifs-utils-debugsource` | Red Hat:enterprise_linux:9::crb | All versions | 0:7.6-2.el9_8 |
| `cifs-utils-devel` | Red Hat:enterprise_linux:9::crb | All versions | 0:7.6-2.el9_8 |
| `pam_cifscreds-debuginfo` | Red Hat:enterprise_linux:9::crb | All versions | 0:7.6-2.el9_8 |
| `cifs-utils` | Rocky Linux:10 | All versions | 0:7.6-1.el10_2 |
| `cifs-utils` | Rocky Linux:8 | All versions | 0:7.0-5.el8_10 |
| `cifs-utils` | Rocky Linux:9 | All versions | 0:7.6-2.el9_8 |
| `cifs-utils` | SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS | All versions | 6.15-150400.3.21.1 |
| `cifs-utils` | SUSE:Linux Enterprise High Performance Computing 15 SP4-LTSS | All versions | 6.15-150400.3.21.1 |
| `cifs-utils` | SUSE:Linux Enterprise High Performance Computing 15 SP5-ESPOS | All versions | 6.15-150400.3.21.1 |
| `cifs-utils` | SUSE:Linux Enterprise High Performance Computing 15 SP5-LTSS | All versions | 6.15-150400.3.21.1 |

## How do I fix CVE-2026-12505?

Apply the vendor's patch.

## Is CVE-2026-12505 being exploited?

There is no known exploitation of CVE-2026-12505 in the wild and no public exploit code.

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2026-12505 and fix it if it is affected.

What it is: CVE-2026-12505 is a high-severity vulnerability in Red Hat Enterprise Linux 10, published on 18 Jun 2026. It can only be exploited from the same machine or local network, with no action from the victim.
Exploitation: There is no known exploitation of CVE-2026-12505 in the wild and no public exploit code.

Affected product: Red Hat Enterprise Linux 10. No package-level version data is available, so check the vendor advisory linked from the reference page.

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2026-12505/ (Markdown: https://insights.sbomify.com/CVE-2026-12505/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2026-12505
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-12505
- OSV: https://osv.dev/vulnerability/CVE-2026-12505

---
From sbomify Insights: https://insights.sbomify.com/CVE-2026-12505/
Summaries are generated and may contain mistakes; the official description above is the record.
