What’s Vulnerable › Vulnerabilities
CVE-2026-31710: smb: client: fix dir separator in SMB1 UNIX mounts
- Severity: medium (CVSS 5.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.1% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2026-05-01 · updated 2026-09-21
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.
Affected products
- Linux kernel: from 7.0.1 before 7.0.2; 7.0, 7.0-rc2, 7.0-rc3, 7.0-rc4, 7.0-rc5, 7.0-rc6 (+1) — fixed in 7.0.2
How to fix
Upgrade to a fixed version: Linux kernel 7.0.2. Check the vendor advisory for mitigations.
References
- https://git.kernel.org/stable/c/c4d3fc5844d685441befd0caaab648321013cdfd
- https://git.kernel.org/stable/c/fbbfcf35e1ee3396631f3dc6214cb626aa9814c3
Get alerted when CVE-2026-31710 or the next vulnerability affects your stack