CVE-2026-31392
Linux Kernel vulnerability analysis and mitigation

Overview

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).

Technical details

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).

Impact

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).

Exploitation steps

  1. Precondition: Attacker must have local access with sufficient privileges to execute mount.cifs commands on a Linux system running a vulnerable kernel version, with sec=krb5 mounts configured against a shared SMB server.
  2. Initial mount: Mount a CIFS share using a valid Kerberos principal present in the keytab (e.g., mount.cifs //server/share1 /mnt/1 -o sec=krb5,username=validuser). This establishes an authenticated SMB session for validuser.
  3. Exploit session reuse: Attempt to mount a second share on the same server using a different (potentially unauthorized) username (e.g., 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.
  4. Unauthorized access: The second mount succeeds using 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.
  5. Verification: Run mount -t cifs | grep -Po 'username=\K\w+' to confirm both mounts show the same (reused) username, confirming the session reuse (GitHub Advisory, Feedly).

Indicators of compromise

  • Logs: Output of 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.
  • File System: Unexpected successful mounts of SMB shares that should have failed due to missing keytab entries; /proc/mounts or /etc/mtab showing CIFS mounts with mismatched usernames relative to what was specified in mount commands.
  • Process: Repeated mount.cifs invocations with differing username= and sec=krb5 options targeting the same SMB server, visible in process audit logs (auditd) or shell history.

Mitigation and workarounds

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).

Community reactions

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).

Additional resources


SourceThis report was generated using AI

Related Linux Kernel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-64557NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-rt-selftests-internal
NoNoJul 29, 2026
CVE-2026-64556NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-64k-devel
NoNoJul 29, 2026
CVE-2026-64555NONEN/A
  • Linux Kernel logoLinux Kernel
  • linux-azure-fde-6.14
NoNoJul 27, 2026
CVE-2026-64554NONEN/A
  • Linux Kernel logoLinux Kernel
  • linux-gcp-6.14
NoYesJul 27, 2026
CVE-2026-64553NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-rt-64k-debug-modules-internal
NoYesJul 27, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management