CVE-2026-31710

Source
https://cve.org/CVERecord?id=CVE-2026-31710
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-31710.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2026-31710
Downstream
Related
Published
2026-05-01T13:56:07.217Z
Modified
2026-06-18T03:57:17.174180776Z
Summary
smb: client: fix dir separator in SMB1 UNIX mounts
Details

In the Linux kernel, the following vulnerability has been resolved:

smb: client: fix dir separator in SMB1 UNIX mounts

When calling cifsmountgettcon() with SMB1 UNIX mounts, @cifssb->mntcifsflags needs to be read or updated only after calling resetcifsunixcaps(), otherwise it might end up with missing CIFSMOUNTPOSIXACL and CIFSMOUNTPOSIXPATHS bits.

This fixes the wrong dir separator used in paths caused by the missing CIFSMOUNTPOSIXPATHS bit in cifssbinfo::mntcifs_flags.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/31xxx/CVE-2026-31710.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
4fc3a433c13944ee5766ec5b9bf6f1eb4d29b880
Fixed
fbbfcf35e1ee3396631f3dc6214cb626aa9814c3
Fixed
c4d3fc5844d685441befd0caaab648321013cdfd

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-31710.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
7.0.0
Fixed
7.0.2

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-31710.json"