CVE-2026-31392 json
smb: client: fix krb5 mount with username option
published 7mo ago modified 21d ago also EUVD-2026-18766
- cvss
- 8.1
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.1%
- EPSS 0.1% chance of exploitation in 30 days, percentile 1%
- public exploits
- 0
- none known
Summary
In the Linux kernel, the following vulnerability has been resolved:
smb: client: fix krb5 mount with username option
Customer reported that some of their krb5 mounts were failing against a single server as the client was trying to mount the shares with wrong credentials. It turned out the client was reusing SMB session from first mount to try mounting the other shares, even though a different username= option had been specified to the other mounts.
By using username mount option along with sec=krb5 to search for principals from keytab is supported by cifs.upcall(8) since cifs-utils-4.8. So fix this by matching username mount option in match_session() even with Kerberos.
For example, the second mount below should fail with -ENOKEY as there is no 'foobar' principal in keytab (/etc/krb5.keytab). The client ends up reusing SMB session from first mount to perform the second one, which is wrong.
``` $ ktutil ktutil: add_entry -password -p testuser -k 1 -e aes256-cts Password for testuser@ZELDA.TEST: ktutil: write_kt /etc/krb5.keytab ktutil: quit $ klist -ke Keytab name: FILE:/etc/krb5.keytab KVNO Principal ---- ---------------------------------------------------------------- 1 testuser@ZELDA.TEST (aes256-cts-hmac-sha1-96) $ mount.cifs //w22-root2/scratch /mnt/1 -o sec=krb5,username=testuser $ mount.cifs //w22-root2/scratch /mnt/2 -o sec=krb5,username=foobar $ mount -t cifs | grep -Po 'username=\K\w+' testuser testuser ```
Patch / fix
- Linux Linux 2.6.33, 2.6.35, 6.1.167, 6.6.130, 6.12.78, 6.18.20, 6.19.10, 7.0
- linux Debian 12 6.1.170-1
- linux Debian 13 6.12.85-1
- linux Debian 14 6.19.10-1
debian advisories DEBIAN-CVE-2026-31392
- linux Ubuntu 24.04 LTS 6.8.0-136.136
- linux-aws Ubuntu 24.04 LTS 6.8.0-1061.64
- linux-gcp Ubuntu 24.04 LTS 6.8.0-1064.72
- linux-gke Ubuntu 24.04 LTS 6.8.0-1059.67
- linux-ibm Ubuntu 24.04 LTS 6.8.0-1061.62
- linux-azure Ubuntu 24.04 LTS 6.8.0-1063.71
- linux-gkeop Ubuntu 24.04 LTS 6.8.0-1046.50
- linux-raspi Ubuntu 24.04 LTS 6.8.0-1061.65
ubuntu advisories UBUNTU-CVE-2026-31392
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- kernel-source Linux Micro 6.1, Linux Micro 6.0 6.4.0-52.1
- kernel-default Linux Micro 6.1, Linux Micro 6.0 6.4.0-52.1
- kernel-kvmsmall Linux Micro 6.1, Linux Micro 6.0 6.4.0-52.1
- kernel-default-base Linux Micro 6.0 6.4.0-52.1.21.36
- kernel-rt Linux Micro 6.1, Linux Micro 6.0 6.4.0-52.1
- kernel-source-rt Linux Micro 6.1, Linux Micro 6.0 6.4.0-52.1
- kernel-default-base Linux Micro 6.1 6.4.0-52.1.21.34
- kernel-64kb SLE Module for Basesystem 15 SP7 6.4.0-150700.53.55.1
suse advisories SUSE-SU-2026:23481-1SUSE-SU-2026:23477-1SUSE-SU-2026:23529-1SUSE-SU-2026:23528-1SUSE-SU-2026:2238-1SUSE-SU-2026:21834-1
- git.kernel.org/stable/c/fd4547830720647d4af02ee50f883c4b1cca06e4 commit
- git.kernel.org/stable/c/9229709ec8bf85ae7ca53aeee9aa14814cdc1bd2 commit
- git.kernel.org/stable/c/d33cbf0bf8979d779900da9be2505d68d9d8da25 commit
- git.kernel.org/stable/c/9ee803bfdba0cf739038dbdabdd4c02582c8f2b2 commit
- git.kernel.org/stable/c/6e9ff1eb7feedcf46ff2d0503759960ab58e7775 commit
- git.kernel.org/stable/c/12b4c5d98cd7ca46d5035a57bcd995df614c14e1 commit
Is CVE-2026-31392 in your stack? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerVendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2026-31392 updated cvss 5.8
kernel: smb: client: fix krb5 mount with username option
-
Red Hat Enterprise Linux 8 perf, kernel, bpftool, kernel-rt, kernel-core, kernel-tools, +29 more Red Hat Enterprise Linux 9 rv, perf, rtla, kernel, bpftool, libperf, +83 more Red Hat Enterprise Linux 10 kernelaffected: no fix available “Fix deferred”
-
Red Hat Enterprise Linux 6 perf, kernel, python-perf, kernel-kdump, kernel-firmware, kernel-bootwrapper, +1 more Red Hat Enterprise Linux 7 perf, kernel, bpftool, kernel-rt, python-perf, kernel-kdump, +8 morenot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- total
- Assessed
- 24d ago
Exploit prediction
0.12% chance of exploitation in the next 30 days, higher than 1% of all scored CVEs (FIRST EPSS, 2026-11-09).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 8.1 | CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:L |
Affected products
- Linux Linux
Classification
- Weakness
-
- CWE-287 Improper Authentication
- Technology feeds
References
-
git.kernel.org
/stable/c/fd4547830720647d4af02ee50f883c4b1cca06e4
patch
-
git.kernel.org
/stable/c/9229709ec8bf85ae7ca53aeee9aa14814cdc1bd2
patch
-
git.kernel.org
/stable/c/d33cbf0bf8979d779900da9be2505d68d9d8da25
patch
-
git.kernel.org
/stable/c/9ee803bfdba0cf739038dbdabdd4c02582c8f2b2
patch
-
git.kernel.org
/stable/c/6e9ff1eb7feedcf46ff2d0503759960ab58e7775
patch
-
git.kernel.org
/stable/c/12b4c5d98cd7ca46d5035a57bcd995df614c14e1
patch
Sources
- CVE List CVE-2026-31392
- NVD CVE-2026-31392
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.