top of page

CIFSwitch: 19-Year-Old Linux Kernel Privilege escalation threatens complete hijacking

Known for its high security, the Linux ecosystem has just faced a massive challenge. A critical information security vulnerability named CIFSwitch was recently exposed after silently existing for nearly two decades.

CIFSwitch vulnerability allows an attacker from a low-privileged user account to easily escalate to root privilege - the highest privilege level capable of controlling the entire system.

How AI exposed CIFSwitch?

The CIFSwitch vulnerability was discovered by Asim Viladi Oglu Manizada from the technology corporation SpaceX. Beyond the age of the flaw, what particularly caught the tech world's attention was how it was detecCIFSwitch: 19-Year-Old Linux Kernel Privilege escalation threatens complete hijackingted.

Instead of traditional source code scanning methods, the researcher utilized a new approach supported by AI. By constructing and analyzing linkage graphs between processing flows and security objects, AI helped connect very minor and faint logic errors into a complete, real-world exploit chain. As a result, a vulnerability dating back to 2007 was forced into the light after 19 years of being "invisible."

CIFSwitch vulnerability dating back to 2007 was forced into the light after 19 years of being "invisible."
CIFSwitch vulnerability dating back to 2007 was forced into the light after 19 years of being "invisible."

The Mechanism of CIFSwitch Root Privilege Escalation

To understand it simply, CIFSwitch relates to how the Linux operating system handles network file sharing (CIFS/SMB protocol), a very common feature when Linux computers need to connect to Windows-style network drives.

In the Linux architecture, this process requires coordination between two components:

  • Linux kernel: Where underlying core operations are handled.

  • cifs.upcall: A helper process running in user space but granted supreme privilege (root) to authenticate identities.

When there is a network connection request, the kernel sends a message (called cifs.spnego) to the cifs.upcall process for handling. The essence of the vulnerability lies in the fact that the Linux kernel failed to thoroughly check whether that request was actually generated by itself.

Exploiting this loophole, a regular user can self-create spoofed requests formatted exactly like system requests. The cifs.upcall process was deceived upon receiving this spoofed message. By manipulating technical parameters (such as pid and upcall_target), attackers can force the system to redirect to a space under their control. Here, the system is tricked into loading malicious network structure configuration files and libraries, thereby automatically appending the attacker's name to the list of those with supreme privileges (/etc/sudoers.d).

According to records, affected operating systems under default configurations include:

  • Linux Mint (versions 21.3 and 22.3),

  • CentOS Stream 9,

  • Rocky Linux 9,

  • AlmaLinux 9,

  • SLES 15 SP7

  • Kali Linux (from version 2021.4 to 2026.1).

In addition, systems such as Ubuntu, Debian, Pop!_OS, Oracle Linux, Amazon Linux, and openSUSE will also be threatened if users have additionally installed the cifs-utils network sharing toolkit.

According to records, affected operating systems under default configurations include: Linux Mint (versions 21.3 and 22.3), CentOS Stream 9, Rocky Linux 9, AlmaLinux 9, SLES 15 SP7 and Kali Linux (from version 2021.4 to 2026.1).
According to records, affected operating systems under default configurations include: Linux Mint (versions 21.3 and 22.3), CentOS Stream 9, Rocky Linux 9, AlmaLinux 9, SLES 15 SP7 and Kali Linux (from version 2021.4 to 2026.1). 

Countermeasures and defense against the 19-Year-Old vulnerability

Currently, an official patch has been updated in the common Linux source code by adding a strict origin verification mechanism, preventing user space from spoofing the kernel. However, the speed of updates reaching end-users will depend on each operating system distribution.

Notably, Asim Manizada has publicly released the entire “CIFSwitch” technical documentation and PoC exploit code on GitHub. Although the primary purpose is to assist in evaluating mitigation measures and patch coverage, the appearance of the PoC also increases the risk of real-world attacks. Accordingly, experts recommend that system administrators take the following steps:

  1. Immediate Update: Check and upgrade to the latest operating system patches.

  2. Disable Redundant Features: Disable CIFS if the enterprise or individual has no need for network file sharing.

  3. Remove Dangerous Tools: Remove the cifs-utils package on unnecessary workstations.

  4. Tighten Security: Restrict or disable user namespace creation privileges for regular user accounts.

To date, CIFSwitch is not the only name causing headaches for administrators recently. This vulnerability continues to lengthen the list of critical Linux incidents discovered lately, such as Copy Fail, Dirty Frag, Fragnesia, DirtyDecrypt, or PinTheft. The continuous discovery of long-standing vulnerabilities shows that no matter how open-source and thoroughly tested a system is, logical blind spots can still exist and always pose permanent threats to system security.

Reference:

  • New Linux CIFSwitch Kernel Vulnerability Allows Attackers to Gain Root Access - Cyber Security News

Comments


follow ipsip vietnam.png
40051abd5a76713af8f015988fc6780e-blue-phone-icon-with-a-wave-on-it.webp
whatsapp-mobile-software-icon-png-image_6315991.png
pngtree-minimal-calendar-icon-vector-png-image_21233134.png
IPSIP logo transparent.png

IPSIP VIETNAM ONE MEMBER LIMITED LIABILITY COMPANY (IPSIP VIETNAM OMLLC)

Tax code: 0313859600

🏢 SH05.01, B4 Street, Saritown Area, An Khanh Ward, Ho Chi Minh City, Vietnam

​☎  +84 918 397 489

  • Linkedin
  • Facebook
  • TikTok
  • Email liên hệ
png-clipart-iso-iec-27001-information-security-management-iso-iec-27002-international-orga
soc 2 type ii

Our Services

Sign up to receive in-depth cybersecurity documents and news from IPSIP Vietnam.

bottom of page