
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-31392 is a credential validation flaw in the Linux kernel's SMB (CIFS) client implementation affecting Kerberos (krb5) mounts that use the username= mount option. When multiple SMB shares are mounted with sec=krb5 and different username= options against the same server, the kernel client incorrectly reuses an existing SMB session from a prior mount rather than establishing a new session with the specified principal. This means mounts that should fail with -ENOKEY (no matching principal in keytab) silently succeed using another user's credentials. Affected Linux kernel versions span from 2.6.36 through 6.1.166, 6.2 through 6.6.129, 6.7 through 6.12.77, 6.13 through 6.18.19, and 6.19 through 6.19.9, as well as kernel 7.0 release candidates prior to rc5. It was disclosed on April 3, 2026, and carries a CVSS v3.1 base score of 8.1 (High) (GitHub Advisory, Feedly).
The root cause is an improper authentication/session-matching logic flaw (related to CWE-287: Improper Authentication) in the match_session() function within the Linux kernel's SMB client (fs/smb/client). When a new mount.cifs call specifies sec=krb5 along with a username= option, the kernel's session lookup does not compare the requested username against existing sessions' usernames for Kerberos-authenticated connections — only NTLM-style mounts performed this check. As a result, the client reuses an already-established SMB session authenticated with a different Kerberos principal, bypassing the intended credential check. The fix, backported across multiple stable branches, modifies match_session() to also match the username mount option when Kerberos authentication is in use, consistent with the behavior supported by cifs.upcall(8) since cifs-utils-4.8 (GitHub Advisory, Feedly).
Successful exploitation allows a local privileged attacker (or misconfiguration scenario) to access SMB network shares using unintended Kerberos credentials, effectively bypassing access controls enforced by the SMB server. In multi-user or multi-service environments where different Kerberos principals are used to mount shares with distinct access permissions, this flaw could allow one principal's session to be reused to access shares restricted to another principal, leading to unauthorized data exposure or privilege escalation across network file system boundaries. Confidentiality and integrity impacts are rated High, with a limited availability impact, and the scope is marked as Changed, indicating the impact extends beyond the vulnerable component itself (Feedly).
mount.cifs commands on a Linux system running a vulnerable kernel version, with sec=krb5 mounts configured against a shared SMB server.mount.cifs //server/share1 /mnt/1 -o sec=krb5,username=validuser). This establishes an authenticated SMB session for validuser.mount.cifs //server/share2 /mnt/2 -o sec=krb5,username=targetuser). On a vulnerable kernel, match_session() ignores the username mismatch for Kerberos sessions and reuses the existing SMB session.validuser's credentials instead of failing with -ENOKEY, granting access to share2 under validuser's identity. The attacker can then read or write data on the share as if authenticated with the first user's Kerberos ticket.mount -t cifs | grep -Po 'username=\K\w+' to confirm both mounts show the same (reused) username, confirming the session reuse (GitHub Advisory, Feedly).mount -t cifs showing the same username= value for multiple mount points that were configured with different usernames; kernel log entries (dmesg) lacking expected -ENOKEY errors when mounting with a non-existent Kerberos principal./proc/mounts or /etc/mtab showing CIFS mounts with mismatched usernames relative to what was specified in mount commands.mount.cifs invocations with differing username= and sec=krb5 options targeting the same SMB server, visible in process audit logs (auditd) or shell history.Apply the available kernel patches for your specific Linux version: 6.1.167, 6.6.130, 6.12.78, 6.18.20, 6.19.10, or 7.0-rc5. Patches are available via the stable kernel tree at git.kernel.org and have been incorporated into vendor advisories from Amazon Linux 2023, SUSE, and others. As a temporary workaround until patching is complete, avoid using different username= options with sec=krb5 on the same system against the same SMB server, and restrict SMB mount operations to single sessions per server. Review existing CIFS mounts using mount -t cifs to identify systems potentially affected by session reuse (GitHub Advisory, Amazon Linux Advisory, SUSE Advisory).
The vulnerability was announced via the Linux kernel CVE announcement mailing list (lore.kernel.org) on April 3, 2026, and subsequently tracked by Tenable (Nessus), Qualys, Amazon Linux, SUSE, and the Yocto Project security lists, indicating broad vendor awareness and patch uptake. No notable independent researcher commentary or significant social media discussion has been identified beyond standard vulnerability tracking activity (Kernel Announce, SUSE Advisory).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."