KernelScan.io

HIGH

CIFSwitch

CVE-2026-46243

CVSS 7.1 / 10.0 NVD

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N

KernelScan AI7.8HIGH

01

In the Linux kernel, the following vulnerability has been resolved: smb: client: reject userspace cifs.spnego descriptions cifs.spnego key descriptions contain authority-bearing fields such as pid, uid, creduid, and upcall_target that cifs.upcall treats as kernel-originating inputs. However, userspace can also create keys of this type through request_key(2) or add_key(2), allowing those fields to be supplied without CIFS origin. Only accept cifs.spnego descriptions while CIFS is using its private spnego_cred to request the key.

02

Engine voss-security-thread-2.3

Risk summary

Unprivileged local users on systems with cifs-utils and user namespaces enabled can escalate to root by crafting a malicious cifs.spnego upcall. A public proof-of-concept exploit is available. Many distributions are exploitable by default unless SELinux/AppArmor rules explicitly block the attack.

Affectedfs/smb/client/cifs_spnego.c

Vulnerability analysis

Summary: A local attacker can trigger a forged request-key upcall to gain root privileges.

Root Cause: cifs.upcall (userspace helper running as root) trusts attacker-supplied pid, uid, creduid, and upcall_target fields from the kernel's cifs.spnego description without validation. By providing upcall_target=app, the helper switches into the attacker's namespaces and performs NSS lookup before dropping privileges, loading attacker-controlled libraries from a private mount namespace.

Attack Surface: Any unprivileged user with the ability to create user and mount namespaces (typically enabled on many distributions) can exploit this when cifs-utils is installed and the CIFS kernel module is available.

Fix Mechanism: The kernel fix (commit 3da1fdf4efbc) rejects forged cifs.spnego descriptions coming from userspace, preventing the attack at the source.

03

BranchFixed inPatch commit
5.105.10.2587713bd320ed4
5.155.15.2099544559e5943
6.16.1.175cf20038657d6
6.126.12.92a3bbda6502a9
6.186.18.3491f89c1d83e8
6.66.6.1422035acfb1722
7.07.0.110aece6685fc8
mainline7.1-rc53da1fdf4efbc