CVE-2026-31392
smb: client: fix krb5 mount with username option
Check your servers for CVE-2026-31392
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-31392 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
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 ```
Severity (CVSS)
CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:L
- Attack vector
- local: the attacker needs local access, or a user has to open a prepared file
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- high: the attacker needs an administrative account
- User interaction
- none: nobody has to click or open anything
- Scope
- changed: the damage reaches other components, such as the host of a container or other users
- Impact
- confidentiality high, integrity high, availability low: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.20%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 5.34% of all scored CVEs. Scores of 30 Nov 2026.
The assessment of CISA (SSVC, 16 Oct 2026):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- total: full control of the component or of its data
Weakness
- CWE-287 Improper Authentication
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 4ff67b720c02c36e54d55b88c2931879b7db1cd2, before fd4547830720647d4af02ee50f883c4b1cca06e4 affected from 4ff67b720c02c36e54d55b88c2931879b7db1cd2, before 9229709ec8bf85ae7ca53aeee9aa14814cdc1bd2 affected from 4ff67b720c02c36e54d55b88c2931879b7db1cd2, before d33cbf0bf8979d779900da9be2505d68d9d8da25 affected from 4ff67b720c02c36e54d55b88c2931879b7db1cd2, before 9ee803bfdba0cf739038dbdabdd4c02582c8f2b2 affected from 4ff67b720c02c36e54d55b88c2931879b7db1cd2, before 6e9ff1eb7feedcf46ff2d0503759960ab58e7775 affected from 4ff67b720c02c36e54d55b88c2931879b7db1cd2, before 12b4c5d98cd7ca46d5035a57bcd995df614c14e1 affected 223c7f082d2836ac719b3b228bdcfab35e5e5330 affected 88720224330a655ab6268e20109b65b11cfd7f6a affected from 2.6.32.44, before 2.6.33 affected from 2.6.34.12, before 2.6.35
Other versions: unaffected
|
| Linux |
affected 2.6.36 unaffected before 2.6.36 unaffected from 6.1.167 up to and including 6.1.* unaffected from 6.6.130 up to and including 6.6.* unaffected from 6.12.78 up to and including 6.12.* unaffected from 6.18.20 up to and including 6.18.* unaffected from 6.19.10 up to and including 6.19.* unaffected 7.0 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2026-31392 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-31392
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2026-31392
trivy image --scanners vuln IMAGE | grep CVE-2026-31392
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/fd4547830720647d4af02ee50f883c4b1cca06e4 git.kernel.org
- https://git.kernel.org/stable/c/9229709ec8bf85ae7ca53aeee9aa14814cdc1bd2 git.kernel.org
- https://git.kernel.org/stable/c/d33cbf0bf8979d779900da9be2505d68d9d8da25 git.kernel.org
- https://git.kernel.org/stable/c/9ee803bfdba0cf739038dbdabdd4c02582c8f2b2 git.kernel.org
- https://git.kernel.org/stable/c/6e9ff1eb7feedcf46ff2d0503759960ab58e7775 git.kernel.org
- https://git.kernel.org/stable/c/12b4c5d98cd7ca46d5035a57bcd995df614c14e1 git.kernel.org
Source: the record CVE-2026-31392 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse