Hackers News Hackers News
  • CyberSecurity News
  • Threats
  • Attacks
  • Vulnerabilities
  • Breaches
  • Comparisons

Social Media

Hackers News Hackers News
  • CyberSecurity News
  • Threats
  • Attacks
  • Vulnerabilities
  • Breaches
  • Comparisons
Search the Site
Popular Searches:
technology Amazon AI
Recent Posts
Canadian Man Pleads Guilty to Hacking US Cloud Storage Provider
August 6, 2026
Critical Jenkins CVE-2024-28973 Lets Attackers Run Code on Controllers
August 6, 2026
Linux Kernel Bridge Vulnerability Lets Attackers Crash Systems, Execute Code
August 6, 2026
Home/CyberSecurity News/Critical CIFS/SMB Linux Kernel Vulnerability Lets Attackers Gain Root Access
CyberSecurity News

Critical CIFS/SMB Linux Kernel Vulnerability Lets Attackers Gain Root Access

Key Takeaways A critical local privilege escalation (LPE) vulnerability, dubbed “CIFSwitch,” has been discovered in the Linux kernel’s CIFS/SMB client. The flaw allows...

Marcus Rodriguez
Marcus Rodriguez
May 28, 2026 4 Min Read
54 0

Key Takeaways

  • A critical local privilege escalation (LPE) vulnerability, dubbed “CIFSwitch,” has been discovered in the Linux kernel’s CIFS/SMB client.
  • The flaw allows low-privileged local users to gain root access on affected Linux systems.
  • The vulnerability (CVE-2023-XXXX, specific CVE ID not provided in source) exploits a logic error between the kernel’s CIFS client and the userspace cifs-utils package.
  • Patches are available for the Linux kernel, and administrators are urged to apply them immediately.

A significant security vulnerability, now known as “CIFSwitch,” has been identified within the Linux kernel’s CIFS/SMB client, enabling unprivileged local users to elevate their access to root. This critical flaw stems from a logical error in how the kernel’s CIFS client interacts with the cifs-utils package in userspace.

Table Of Content

  • Key Takeaways
  • Linux CIFSwitch Kernel Vulnerability Explained
  • Exploitation Mechanism
  • Patch and Mitigation
  • What You Should Do

Security researcher Asim Manizada is credited with uncovering this vulnerability. Manizada has since published a comprehensive technical analysis and a Proof-of-Concept (PoC) exploit. These resources are intended to assist cybersecurity professionals in evaluating their systems’ exposure and validating the effectiveness of patches.

The core of the issue lies in insufficient validation of key descriptions associated with the CIFS.Spnego key type. This oversight permits non-privileged users to craft requests that appear to originate from trusted kernel processes, thereby triggering operations that require elevated privileges.

Linux CIFSwitch Kernel Vulnerability Explained

The discovery of CIFSwitch was facilitated by an AI-powered, multi-hop reasoning methodology. This approach involved constructing and traversing semantic graphs of security-relevant objects and data flows, ultimately enabling the chaining of subtle logical flaws into a functional exploit.

Following a coordinated embargo period with various Linux distributions, an advisory was released, and upstream kernel patches addressing the vulnerability are now readily available.

CIFS/SMB, a network filesystem protocol commonly associated with Windows environments, is extensively used on Linux. Within this architecture, the Linux kernel’s CIFS client is responsible for handling fundamental filesystem operations. Authentication mechanisms like Kerberos/SPNEGO, however, are offloaded to a root-privileged userspace helper named cifs.upcall, which is part of the cifs-utils package.

This interaction relies on Linux keyrings. The kernel initiates a request_key() call for a CIFS.spnego key, supplying a trusted description string that encapsulates critical parameters such as the server, UID, credential UID, PID, and namespace target. Subsequently, the /sbin/request-key policy executes cifs.upcall with root privileges to process this request.

Manizada’s research revealed a critical oversight: the kernel failed to verify that the cifs.spnego key description genuinely originated from the CIFS subsystem before treating it as a trusted input. This omission allows any unprivileged process to directly invoke request_key("cifs.spnego", , ...) with a maliciously constructed description.

Because the key type is cifs.spnego, the default request-key rule still spawns cifs.upcall as root, even though the description’s content is entirely controlled by an attacker.

Exploitation Mechanism

The exploit chain hinges on two specific elements within the forged key description: pid and upcall_target. By setting upcall_target=app and providing a malicious pid, an attacker can manipulate cifs.upcall to switch into the namespaces of an attacker-controlled process before it performs NSS-based account lookups and eventually drops its privileges.

Within this attacker-controlled mount namespace, a malicious nsswitch.conf file and a rogue libnss_*.so.2 module can be strategically placed. This setup ensures that when a root-privileged NSS lookup occurs, it loads and executes arbitrary code supplied by the attacker. In Manizada’s Proof-of-Concept, the malicious NSS module achieves root access by injecting an entry into /etc/sudoers.d.

The underlying kernel bug has existed since 2007. However, successful exploitation requires a confluence of conditions:

  • A vulnerable kernel version.
  • A compatible cifs-utils version (specifically 6.14+ or older builds with specific backported changes).
  • The ability for unprivileged users to create namespaces.
  • Linux Security Module (LSM) policies, such as SELinux or AppArmor, that do not obstruct the attack path.

Testing indicates that many popular Linux distributions are vulnerable out-of-the-box if cifs-utils is installed. Other distributions may become exploitable only after cifs-utils is installed or if default LSM policies are relaxed.

Patch and Mitigation

The upstream kernel fix introduces a vet_description hook for the cifs.spnego key type. This hook ensures that key descriptions are only accepted if the request originates from the CIFS client’s internal spnego_cred, effectively preventing unprivileged userspace processes from impersonating the kernel.

Further hardening measures are also recommended for cifs-utils to prevent cifs.upcall from implicitly trusting key descriptions as originating from the kernel.

Asim Manizada has made the full technical write-up, “CIFSwitch,” and the PoC exploit available on GitHub. These resources are invaluable for defenders, maintainers, and incident responders to verify patch coverage and validate mitigation strategies.

What You Should Do

  • Immediately Apply Kernel Patches: System administrators must prioritize deploying the backported kernel patches provided by their Linux distribution vendors.
  • Consider Disabling CIFS: If CIFS functionality is not essential for your operations, consider disabling it to reduce the attack surface.
  • Remove cifs-utils if Unused: If the cifs-utils package is not required, remove it from your systems.
  • Tighten request-key Rules: Review and tighten request-key rules for cifs.spnego to restrict its usage.
  • Restrict Unprivileged User Namespaces: Implement policies to restrict the creation of unprivileged user namespaces where feasible, as this is a prerequisite for exploitation.

Disclaimer: HackersRadar reports on cybersecurity threats and incidents for informational and awareness purposes only. We do not engage in hacking activities, data exfiltration, or the hosting or distribution of stolen or leaked information. All content is based on publicly available sources.

Tags:

AttackExploitPatchSecurityVulnerability

Share Article

Marcus Rodriguez

Marcus Rodriguez

Marcus is a security researcher and investigative journalist with expertise in vulnerability research, bug bounties, and cloud security. Since 2017, Marcus has been breaking stories on critical vulnerabilities affecting major platforms. His investigative work has led to the disclosure of numerous security flaws and improved defenses across the industry. Marcus is an active participant in bug bounty programs and has been recognized for responsible disclosure practices. He holds multiple security certifications and regularly speaks at industry events.

Previous Post

ClearFake Malware Uses BSC Testnet Smart Contracts for Resilient C2

Next Post

New Browser Side-Channel Attack Tracks Users via SSD Timings

No Comment! Be the first one.

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Popular Posts
OpenAI Agents Uncover Critical Zero-Day Vulnerability
August 6, 2026
Meta AI Model Exploited to Hack Third-Party System
August 6, 2026
Cisco Patches Critical IOS XE Software Vulnerabilities
August 6, 2026
Top Authors
Marcus Rodriguez
Marcus Rodriguez
Emy Elsamnoudy
Emy Elsamnoudy
Jennifer sherman
Jennifer sherman
Let's Connect
156k
2.25m
285k

Related Posts

Jennifer sherman
By Jennifer sherman
Threats

GlassWorm Attacks macOS via Malicious VS Code…

January 1, 2026
Emy Elsamnoudy
By Emy Elsamnoudy
Attacks

ClickFix Attack Hides Malicious Code via Stegan Security

January 1, 2026
Sarah simpson
By Sarah simpson
Vulnerabilities

MongoBleed Detector Tool Released to Detect MongoDB Vulnerability(CVE-2025-14847)

January 1, 2026
Emy Elsamnoudy
By Emy Elsamnoudy
Breaches

Conti Ransomware Gang Leaders & Infrastructure Exposed

January 1, 2026
Hackers News Hackers News
  • [email protected]

Quick Links

  • Contact Us
  • Privacy Policy
  • Terms of service

Categories

Attacks
Breaches
Comparisons
CyberSecurity News
Threats
Vulnerabilities

Let's keep in touch

receive fresh updates and breaking cyber news every day and week!

All Rights Reserved by HackersRadar ©2026

Follow Us