Linux CIFSwitch Kernel Vulnerability Allows Attackers to Gain Root Access
- 60% of MD5 Password Hashes Can Be Cracked in Under an Hour with a Single GPU
- Dirty Frag: Root Access on Every Major Linux Distribution — No Patch, No Warning
- Ubuntu 26.04 LTS (Resolute Raccoon): The Most Ambitious Ubuntu LTS in a Decade
- Proton Mail: Data Transferred to FBI Again!
- How Close Are Quantum Computers to Breaking RSA-2048?
- How to Prevent Ransomware Infection Risks?
- What is the best alternative to Microsoft Office?
Linux CIFSwitch Kernel Vulnerability Allows Attackers to Gain Root Access
A newly disclosed local privilege escalation flaw in the Linux kernel’s CIFS client lets unprivileged local users reach full root access on certain configurations — with a public proof-of-concept already in the wild.
Overview
A newly disclosed Linux local privilege escalation (LPE) vulnerability, dubbed CIFSwitch, enables low-privileged users to gain full root access by exploiting a logic flaw between the Linux kernel’s CIFS client and the userspace cifs-utils package. The vulnerability was disclosed publicly on May 28, 2026 by security researcher Asim Manizada, who has released a full technical write-up and proof-of-concept exploit on GitHub to help administrators assess exposure and verify patch coverage.
The flaw is notably not universal — exploitability depends on a specific combination of distribution configuration and installed packages. However, on affected hosts, any unprivileged local user can achieve root in a single command, making urgent remediation critical for organisations running at-risk configurations.
CIFSwitch is the fourth major Linux kernel privilege escalation vulnerability requiring immediate action in recent weeks, following Copy Fail (April 29), Dirty Frag (May 7), and Fragnesia (May 13). This pattern underscores an accelerating pace of kernel-level LPE disclosures.
Technical Background: How the Attack Works
CIFS (Common Internet File System), also known as SMB, is a Windows-style network file-sharing protocol widely used on Linux systems to mount remote shares. The Linux kernel’s CIFS client handles core filesystem operations, while Kerberos/SPNEGO authentication is delegated to cifs-upcall — a user-space helper that runs with root privileges, supplied by the cifs-utils package.
The kernel calls request_key() for CIFS, passing the cifs.spnego key type and a trusted description string that encodes parameters including the server address, UID, credential UID, PID, and namespace target. The /sbin/request-key policy then launches cifs-upcall as root to handle the request.
The root cause is that the kernel fails to validate whether a cifs.spnego key description actually originates from the kernel’s own CIFS subsystem before treating it as trusted. An unprivileged attacker can therefore issue a request_key() syscall with a crafted fake description string, causing the rootful helper to launch — effectively impersonating a legitimate kernel upcall.
Critically, the fake description contains security-relevant fields: the pid field, combined with the upcall_target=app parameter, controls which namespace the helper actually executes in. By manipulating this, the attacker can convert a namespace confusion into full root on the host machine. This bug has been latent in the kernel since 2007.
Discovery: AI-Assisted Multi-Hop Reasoning
CIFSwitch stands out not only for its impact but for how it was found. Manizada employed an AI-assisted, multi-hop reasoning methodology that constructs and traverses semantic graphs of security-relevant objects and data flows, enabling the automated chaining of subtle logical flaws into a complete practical exploit. This approach represents a meaningful shift in the vulnerability research landscape — demonstrating that AI tools can uncover complex, multi-step attack paths that may have remained hidden to manual analysis for years.
Affected Systems
The vulnerability is distribution-specific. Exploitation requires: a vulnerable kernel version, an affected cifs-utils version installed, the default cifs.spnego request-key rule active, unprivileged user namespaces enabled, and SELinux or AppArmor policies that do not block the attack chain.
- Linux Mint 21.3 & 22.3
- CentOS Stream 9
- Rocky Linux 9
- Kali Linux 2021.4 – 2026.1 (headless)
- AlmaLinux 9.7 & Azure cloud image
- SLES 15 SP7 & SLES SAP 15 SP7
- SLES SAP 16 (SELinux permissive)
- Ubuntu 18.04, 20.04, 22.04 LTS
- Debian 11 “Bullseye”, 12 “Bookworm”, 13 “Trixie”
- Pop!_OS 22.04 & 24.04
- openSUSE Leap 15.6
- Rocky Linux 8 GenericCloud
- Oracle Linux 8 & 9 KVM
- Amazon Linux 2023 (SELinux permissive)
Recommended Mitigations
Administrators should act immediately. The following steps are recommended, in order of priority:
-
01
Apply the upstream kernel patch. Deploy backported kernel packages from your distribution’s security channel as soon as they are available. On Debian/Ubuntu:
sudo apt update && sudo apt upgrade. On RHEL/CentOS:sudo yum update. - 02 Remove or disable cifs-utils on hosts that do not require CIFS/SMB network mounts. This eliminates the attack surface entirely on systems where the package is installed but unnecessary.
-
03
Restrict unprivileged user namespaces. On systems where namespaces are not required, disable them via
kernel.unprivileged_userns_clone=0(Debian-based) or equivalent sysctl settings to break the exploit chain. -
04
Tighten request-key rules. Harden the
/etc/request-key.confpolicy for thecifs.spnegokey type to limit which callers can trigger the upcall mechanism. - 05 Enforce SELinux or AppArmor policies that block the attack chain. Permissive mode offers no protection — ensure mandatory access control is in enforcing mode on production systems.
Disclosure & Coordinated Embargo
Manizada coordinated the disclosure with Linux distribution security teams through an embargo that ran through May 27, 2026 — giving distributions time to prepare patches before public release. The advisory became public on May 28, 2026 via the oss-security mailing list, simultaneously with the release of the PoC exploit on GitHub. No CVE identifier had been assigned at the time of initial publication; one is pending.
The upstream kernel fix was queued for the stable branch more than a week before the embargo lifted, meaning patched kernels were ready for deployment at the time of public disclosure. Administrators should check their distribution’s security advisories for the relevant backported packages.
