CIFSwitch Linux Flaw Can Give Local Attackers Root on Multiple Distributions

· Original article ↗

Summary

CIFSwitch lets local unprivileged attackers forge CIFS authentication requests and potentially gain root through a vulnerable cifs-utils workflow. A kernel patch validates request origins; disabling CIFS or user namespaces can reduce exposure.

Key points

  • The flaw is in the Linux kernel CIFS subsystem, which fails to verify that cifs.spnego key requests originate from the kernel CIFS client.
  • An unprivileged local attacker can forge a request and abuse root-privileged cifs.upcall behavior, potentially loading a malicious NSS module to execute code as root.
  • Exploitation depends on vulnerable kernel and cifs-utils versions, available user namespaces, and security policies that do not block the attack.
  • The researcher confirmed vulnerable default configurations in Linux Mint 21.3/22.3, CentOS Stream 9, Rocky Linux 9, AlmaLinux 9, Kali Linux 2021.4–2026.1, and SLES 15 SP7.
  • A kernel patch validates the origin of cifs.spnego requests; which kernel versions include it varies by distribution.
  • Recommended mitigations include disabling CIFS if unused, removing unnecessary cifs-utils, and disabling unprivileged user namespaces.

Article Details

Vulnerability Types
  • Local privilege escalation
  • Failure to validate CIFS authentication key request origins
Affected Versions
  • cifs-utils 6.14 and higher (some older variants are also affected)
  • Linux Mint 21.3 / 22.3
  • CentOS Stream 9
  • Rocky Linux 9
  • AlmaLinux 9
  • Kali Linux 2021.4–2026.1
  • SLES 15 SP7
Exploitation Status
unknown
Exploit Availability
public_poc
Patch Status
available
Workarounds
  • Disable or blacklist the CIFS module if unused.
  • Remove the cifs-utils package if unnecessary.
  • Disable unprivileged user namespaces.

MITRE ATT&CK

People

Products

Related Articles