CVE-2026-31710
smb: client: fix dir separator in SMB1 UNIX mounts
Check your servers for CVE-2026-31710
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-31710 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 dir separator in SMB1 UNIX mounts
When calling cifs_mount_get_tcon() with SMB1 UNIX mounts, @cifs_sb->mnt_cifs_flags needs to be read or updated only after calling reset_cifs_unix_caps(), otherwise it might end up with missing CIFS_MOUNT_POSIXACL and CIFS_MOUNT_POSIX_PATHS bits.
This fixes the wrong dir separator used in paths caused by the missing CIFS_MOUNT_POSIX_PATHS bit in cifs_sb_info::mnt_cifs_flags.
Exploitation
EPSS 0.10%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 1.09% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 4fc3a433c13944ee5766ec5b9bf6f1eb4d29b880, before fbbfcf35e1ee3396631f3dc6214cb626aa9814c3 affected from 4fc3a433c13944ee5766ec5b9bf6f1eb4d29b880, before c4d3fc5844d685441befd0caaab648321013cdfd affected 9d9f6e06123001208cd8ae6332c7e814ab709169 affected from 6.18.53, before 6.19
Other versions: unaffected
|
| Linux |
affected 7.0 unaffected before 7.0 unaffected from 7.0.2 up to and including 7.0.* unaffected 7.1 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-31710 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-31710
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-31710
trivy image --scanners vuln IMAGE | grep CVE-2026-31710
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/fbbfcf35e1ee3396631f3dc6214cb626aa9814c3 git.kernel.org
- https://git.kernel.org/stable/c/c4d3fc5844d685441befd0caaab648321013cdfd git.kernel.org
Source: the record CVE-2026-31710 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse