Skip to main content
Mallory
HighPublic exploitVulnerability

CVE-2026-46243: CIFSwitch

Published Jun 1, 2026 · Updated 2 days ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 days1 mention · peak 1 in a dayToday
CVSS7.8High · v3.1
EPSS0.20%6th percentile
CISA KEVNoNot listed
In the wildNonePublic exploit, no exploitation reported
Vendor
Linux
IdentifiersCVE-2026-46243CWE-346

CIFSwitch is a local privilege-escalation vulnerability in the Linux kernel SMB/CIFS client involving insufficient origin validation of cifs.spnego key descriptions. Unprivileged userspace processes can create these keys through request_key(2) or add_key(2), supplying authority-bearing pid, uid, creduid, and upcall_target fields that the cifs.upcall authentication helper trusts as kernel-generated. On susceptible configurations, a forged request launches the helper as root and directs it into an attacker-controlled namespace. An ensuing getpwuid() lookup can load attacker-controlled Name Service Switch (NSS) code before the helper completes its identity transition and capability drop. Exploitability depends on the kernel, cifs-utils behavior, request-key configuration, namespace availability, and security policies.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

Impact, mitigation & remediation

What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

An unprivileged local attacker can execute code with root privileges on susceptible systems, compromising host confidentiality, integrity, and availability. The demonstrated exploitation chain modifies sudo authorization to grant elevated access. The vulnerability is local; direct unauthenticated remote exploitation is not established. Distribution-specific helper versions and mandatory access-control policies can prevent the described escalation even when the kernel-side flaw is present.

Mitigation

If you can’t patch tonight, do this now.

Where CIFS is unnecessary, prevent the cifs kernel module from loading; this approach does not apply when CIFS is built into the kernel and disrupts SMB-dependent functionality. Remove unnecessary cifs-utils installations or disable the cifs.spnego request-key rule where Kerberos-based CIFS authentication is not required. Disabling unprivileged user namespaces blocks the described namespace-based exploitation chain. Enforce applicable SELinux or AppArmor restrictions and limit untrusted local execution as additional defenses; policy effectiveness varies by distribution and configuration.

Remediation

Patch, then assume compromise.

Install a vendor-supported kernel update containing the CIFS origin-validation fix. The fix adds cifs_spnego_key_vet_description(), which accepts descriptions only when current_cred() matches CIFS's private spnego_cred credentials, blocking userspace-originated requests. Reboot into the corrected kernel, or apply and verify a supported live patch for the exact running kernel. Fixed product examples include RHEL 10.0 kernel 6.12.0-55.79.1.el10_0 under RHSA-2026:25908, XCP-ng 8.3 kernel 4.19.19-8.0.46.6.xcpng8.3, and XOA Debian kernel 6.1.174-1. Use the applicable vendor update for other products and release streams.

Public exploits

Exploits

1 exploit validated by Mallory's analysis. Hidden: 4 rejected by Mallory's analysis as not a working exploit.

View more in app →
CIFSwitch-goThis repository is a standalone Go local privilege escalation exploit, not tied to a common exploit framework. It contains 6 files: README.md, go.mod, and three code files (main.go, nss.go, trigger.go). The code implements a Go port of the CIFSwitch technique abusing Linux kernel keyring handling for cifs.spnego together with cifs-utils' cifs.upcall behavior. Repository structure and purpose: main.go is the primary entry point and orchestration logic. It performs environment checks, determines the current username, verifies prerequisites (gcc, unshare, sudo, mount, /usr/sbin/cifs.upcall, active request-key rule, user namespaces, loaded CIFS module), compiles the malicious NSS library, writes a fake nsswitch.conf, launches the namespace-isolated trigger stage, checks evidence of successful code execution as root, and finally invokes sudo -n /bin/bash -p for a root shell. nss.go contains the embedded C source template for libnss_pwn.so.2 and the helper functions that compile it and generate the fake nsswitch.conf. The malicious NSS module uses a constructor that executes immediately on dlopen(), writes an evidence log, attempts to create a passwordless sudoers entry under /etc/sudoers.d/, and if that fails, creates a setuid-root copy of /bin/bash in /var/tmp. trigger.go handles the namespace setup and exploit trigger: it re-execs the binary inside a new user and mount namespace, makes mounts private, optionally triggers CIFS module autoload via a dummy mount, masks nscd cache directories, bind-mounts the fake nsswitch.conf over /etc/nsswitch.conf or /usr/etc/nsswitch.conf, overlays attacker-controlled NSS library directories over system NSS library paths, and finally issues a forged request_key syscall for key type cifs.spnego with upcall_target=app and pid=<self>. Main exploit capability: local root privilege escalation. The exploit abuses the fact that cifs.upcall, started as root by request-key, can be induced to switch into the attacker's mount namespace before NSS lookups and before dropping privileges. By controlling nsswitch.conf and the NSS library search path inside that namespace, the attacker causes root to load libnss_pwn.so.2, whose constructor performs privileged file writes. The intended result is a passwordless sudoers rule for the current user, followed by execution of a root bash shell. A fallback path creates a setuid-root shell if direct sudoers creation fails. This is clearly an operational exploit rather than a detector: it contains full exploitation logic, runtime payload generation, namespace manipulation, syscall wrappers for request_key and keyctl, and post-exploitation steps to obtain an interactive root shell.Koshmare-Blossom · Disclosed Jun 1, 2026 · go · c · localOperational
Exposure surface

Affected products & vendors

Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.

VendorProductType
LinuxLinux Kerneloperating_system
FAQ

Frequently asked questions

Is CVE-2026-46243 exploited in the wild?
As of Nov 27, 2026, Mallory has no reports of CVE-2026-46243 being exploited in the wild. It is not listed in CISA KEV.
Is there a public exploit for CVE-2026-46243?
Yes. Mallory tracks 1 public exploit or proof of concept for CVE-2026-46243, the earliest disclosed Jun 1, 2026.
Is there a patch for CVE-2026-46243?
Install a vendor-supported kernel update containing the CIFS origin-validation fix. The fix adds cifs_spnego_key_vet_description(), which accepts descriptions only when current_cred() matches CIFS's private spnego_cred credentials, blocking userspace-originated requests.
What products are affected by CVE-2026-46243?
Linux Kernel.
How severe is CVE-2026-46243?
CVE-2026-46243 has a CVSS v3.1 score of 7.8 (High) and an EPSS score of 0.20% (6th percentile) as of Nov 27, 2026.
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidenceEvery report linking this CVE to a named adversary.
Associated malwareMalware families linked to this CVE, with evidence and IOCs.
Detection signaturesYARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity34Community discussion across Reddit, Mastodon, and other social sources.