CVE-2026-31710·Kernel vulnerability
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.
- Severity
- medium
- Software
- Kernel
- Fixed in
- 7.0.2
- Published
How likely is exploitation
FIRST's Exploit Prediction Scoring System puts the probability of this CVE being exploited in the next 30 days at 0.14% — higher than 3% of all published CVEs. EPSS is an independent forecast of exploitation, not a severity rating: it says nothing about how much damage a successful attack does, which is what a CVSS score measures.
Affected versions
From: 7.0.1
Until: 7.0.2
Fixed in: 7.0.2
How to fix this CVE
Update your Linux kernel to version 7.0.2 or later to resolve a directory separator handling issue in SMB1 UNIX mounts. This fix ensures that POSIX path flags are correctly applied during mount initialization, preventing incorrect path separators that could cause file access failures or unexpected behavior when mounting SMB shares. Systems using SMB1 with UNIX extensions should prioritize this update to maintain proper filesystem path handling.
sudo dnf update kernel kernel-develDefensia detects this vulnerability
How to check if you are affected
- Check installed kernel version: uname -r
- Verify if SMB1 UNIX mounts are in use: mount | grep -i cifs
- Check mount options for POSIX path settings: cat /proc/mounts | grep cifs
- Confirm kernel update applied: uname -r should show version 7.0.2 or later
FAQ
What is CVE-2026-31710?
This is a Linux kernel vulnerability affecting SMB1 UNIX mounts where mount flags are not properly initialized, causing incorrect directory separators to be used in file paths. The issue occurs because POSIX path configuration bits are missing when the mount options are read before UNIX capability detection is complete.
Is CVE-2026-31710 being actively exploited?
No, this vulnerability is not listed in CISA's Known Exploited Vulnerabilities (KEV) catalog and no public exploits are currently available.
What versions of Kernel are affected by CVE-2026-31710?
Kernel versions 7.0.1 through 7.0.2 are affected. The vulnerability is fixed in kernel version 7.0.2 and later.
How do I check if my server is vulnerable to CVE-2026-31710?
Run 'uname -r' to check your kernel version. If the version is 7.0.1 and you are mounting SMB1 shares with UNIX extensions, your system is vulnerable. Cross-reference with 'mount | grep cifs' to confirm active SMB mounts.
Does Defensia detect CVE-2026-31710?
Yes — Defensia's CVE advisory scanner compares installed kernel versions against the NVD database. If a vulnerable kernel version is detected on a monitored server, CVE-2026-31710 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2026-31710. Free for 1 server.
Get started free