惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

B
Blog
量子位
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Last Week in AI
Last Week in AI
酷 壳 – CoolShell
酷 壳 – CoolShell
人人都是产品经理
人人都是产品经理
Jina AI
Jina AI
雷峰网
雷峰网
博客园_首页
WordPress大学
WordPress大学
博客园 - 司徒正美
爱范儿
爱范儿
博客园 - 聂微东
IT之家
IT之家
美团技术团队
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
博客园 - 三生石上(FineUI控件)
有赞技术团队
有赞技术团队
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
T
Tailwind CSS Blog
博客园 - Franky
V
V2EX
GbyAI
GbyAI
阮一峰的网络日志
阮一峰的网络日志

Security Affairs

Agent’s claims on WhatsApp access spark security concerns Meta accused of violating DSA by failing to safeguard minors Large-scale Roblox hacking operation shut down by Ukrainian authorities CVE-2026-42208: LiteLLM bug exploited 36 hours after its disclosure Internet censorship index reveals Russia’s lead and widespread content blocking All supported cPanel versions hit by critical auth bug, now patched U.S. CISA adds Microsoft Windows Shell and ConnectWise ScreenConnect flaws to its Known Exploited Vulnerabilities catalog ShinyHunters exploit Anodot incident to target Vimeo CVE-2026-3854 GitHub flaw enables remote code execution Signal Phishing Campaign Targets German Officials in Suspected Russian Operation Microsoft fixes Entra ID flaw enabling privilege escalation New Android spyware Morpheus linked to Italian surveillance firm NCSC launches SilentGlass, a plug-in device to secure HDMI and DisplayPort links Medtronic discloses security incident after ShinyHunters claimed theft of 9M+ records Chinese spy posed as researcher in spear-phishing campaign targeting NASA to steal defense software LINKEDIN BROWSERGATE Firefox bug CVE-2026-6770 enabled cross-site tracking and Tor fingerprinting Fast16: Pre-Stuxnet malware that targeted precision engineering software Italy moves to extradite Chinese national to the U.S. over hacking charges U.S. utility giant Itron discloses a security breach Critical bug in CrowdStrike LogScale let attackers access files GopherWhisper: new China-linked APT targets Mongolia with Go-based malware SECURITY AFFAIRS MALWARE NEWSLETTER ROUND 94 Trigona ransomware adopts custom tool to steal data and evade detection Security Affairs newsletter Round 574 by Pierluigi Paganini – INTERNATIONAL EDITION U.S. CISA adds SimpleHelp, Samsung, and D-Link flaws to its Known Exploited Vulnerabilities catalog Over 400,000 sites at risk as hackers exploit Breeze Cache plugin flaw (CVE-2026-3844) CISA reports persistent FIRESTARTER backdoor on Cisco ASA device in federal network 12-year-old Pack2TheRoot bug lets Linux users gain root privileges Signal phishing campaign targets Germany’s Bundestag President Julia Klöckner
CIFSwitch, a Linux Root Bug Hidden in Plain Sight for 19 ...
Pierluigi Paganini · 2026-06-01 · via Security Affairs

CIFSwitch is a 19-year-old Linux logic bug turning forged CIFS auth keys into root. Affects Mint, CentOS, Rocky, Kali, SLES.

CIFSwitch stands apart from typical privilege escalation vulnerabilities because of how it was discovered. Asim Manizada, a security engineer at SpaceX, didn’t find it by auditing source code the old-fashioned way. He built an AI-powered framework that constructs semantic graphs of kernel objects and their relationships, then had the models walk those graphs looking for mismatches between what a component creates and what a privileged consumer assumes. The result is a multi-step logic chain that reaches root on major distros, including Linux Mint, CentOS Stream 9, Rocky Linux 9, AlmaLinux 9, Kali Linux, and SLES 15.

The vulnerability has been in the Linux kernel since 2007. It lives at the intersection of the kernel’s CIFS client and the cifs-utils helper that handles Kerberos authentication for network file shares. When a CIFS mount needs Kerberos credentials, the kernel requests a key of type cifs.spnego and a root-privileged helper called cifs.upcall runs to fetch the authentication material. The problem is that nothing stops an unprivileged user from making the exact same key request with fabricated fields.

“CIFS/SMB is a Windows-style network filesystem protocol. On Linux, the CIFS kernel client handles the actual filesystem parts: mounting the share, talking SMB to the server, doing reads/writes, etc. But, understandably, for Kerberos-auth’d mounts, kernel CIFS doesn’t roll its own auth stack and instead relies on a userspace helper provided by cifs-utils.” continues the report.

“The interaction happens through Linux keyrings. The kernel requests a cifs.spnego-type key, and the normal keyutils/request-key config runs cifs.upcall as root to fetch or build the Kerberos/SPNEGO material. That brings us to – ahem – the key part.”

The fake description can include an attacker-controlled pid and the field upcall_target=app, which tells cifs.upcall to switch into the namespaces of the supplied process before doing anything else. That’s where the second half of the chain kicks in. Before cifs.upcall drops its root privileges, it calls getpwuid() to look up the target account. That lookup goes through NSS, the Name Service Switch, which loads shared libraries named in nsswitch.conf.

“An attacker in userspace can call request_key("cifs.spnego", totally_fake_description, ...) directly.” continues the report. “In the kernel, the pre-patch cifs.spnego key type does not reject the untrusted userspace-created descriptions, treating them as if they came from kernel CIFS.”

The PoC uses this to drop a sudoers.d config file giving the attacker full sudo access, after which root is one command away.

The full chain is: forge a cifs.spnego key request, point the pid field at a process in a namespace you control, let cifs.upcall switch into your namespace while still root, trigger the NSS lookup before the privilege drop, load your malicious NSS module. Five steps, all logic bugs, no memory corruption.

“The interaction happens through Linux keyrings.” continues the report. “The kernel requests a cifs.spnego-type key, and the normal keyutils/request-key config runs cifs.upcall as root to fetch or build the Kerberos/SPNEGO material. That brings us to — the key part.”

The fix is a single kernel-side check added to the cifs_spnego_key_type definition: a .vet_description hook that rejects any cifs.spnego request not originating from CIFS’s own spnego_cred. The patch landed in the upstream kernel more than a week before Manizada published his report, and is queued for stable. But distros ship at different paces, and many vulnerable configurations exist right now on systems waiting for packaged updates.

Whether your system is at risk depends on three things landing together: a vulnerable kernel, a vulnerable cifs-utils version (6.14 or higher, though some older versions backported into scope), and either unprivileged user namespaces enabled or SELinux/AppArmor policies that don’t block the attack. Ubuntu 26.04, Fedora 40-44, CentOS Stream 10, and Rocky Linux 10 block exploitation in their default configurations. Everything else on the confirmed list doesn’t. If cifs-utils is installed on Ubuntu 18.04 through 24.04, Debian 11 through 13, openSUSE Leap 15.6, or Oracle Linux 8 or 9, the attack works. A public PoC is on GitHub.

If you don’t use CIFS or Kerberos authentication for network shares — and most desktop systems don’t — removing cifs-utils or blacklisting the CIFS kernel module closes the issue entirely without waiting for a patch. If you do use it, the kernel update is the right fix. Disabling unprivileged user namespaces also blocks the attack but affects other things, so it’s worth testing before deploying.

The other notable detail here is the method. Manizada didn’t find CIFSwitch by reading code. He used a scaffolded AI framework, complete with graph traversal tools, to build a map of privileged kernel consumers, the objects they trust, and where those objects can be tampered with. The agents found the missing .vet_description hook by reasoning through the graph and noticing that cifs.spnego key descriptions were trusted by a root helper but could be authored by anyone. It’s the same class of vulnerability a skilled human auditor would find. It just took an AI a fraction of the time, and came with a working exploit.

Recently, other Linux privilege-elevation vulnerabilities made the headlines, including Copy Fail, Dirty Frag, DirtyDecrypt, Fragnesia, and PinTheft.

Follow me on Twitter: @securityaffairs and Facebook and Mastodon

Pierluigi Paganini

(SecurityAffairs – hacking, CIFSwitch)