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.
Published: 2026-05-01
Score: 5.5 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The flaw resides in the Linux kernel’s CIFS client. During the mounting of SMB1 UNIX shares, the cifs_mount_get_tcon() routine may read or update the CIFS_MOUNT_POSIXACL and CIFS_MOUNT_POSIX_PATHS flags only after reset_cifs_unix_caps(), causing the CIFS_MOUNT_POSIX_PATHS bit to be omitted. This omission leads the kernel to use an incorrect directory separator in the resulting paths. The weakness is a pathname handling issue (CWE‑22) and does not enable unauthorized file access, privilege escalation, or code execution. The impact is limited to incorrect path resolution on mounted shares, potentially causing functional problems rather than a security breach.

Affected Systems

All Linux kernel releases that include an unpatched CIFS client and support SMB1 without the directory separator fix are affected. This encompasses every release prior to the patch that introduced the change, including kernel 7.0 and its earlier releases. Distributions that mount SMB shares via the CIFS helper and rely on SMB1 are potentially impacted.

Risk and Exploitability

The CVSS score of 5.5 indicates moderate severity, while the EPSS score of less than 1% signals a low probability of exploitation. The vulnerability is not listed in CISA’s KEV catalog, and no exploits have been reported. It is inferred from the description that the flaw manifests only during client-initiated SMB mount operations; an attacker would need to mount a share locally or have a compromised client perform the mount. The flaw does not provide a direct vector for data exfiltration, code execution, or privilege escalation, so the overall risk is low to moderate.

Generated by OpenCVE AI on May 6, 2026 at 21:55 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply a kernel update that includes the SMB1 directory separator fix.
  • If SMB1 compatibility is required, disable SMB1 and use SMB2 or SMB3 protocols instead.
  • Verify that mounted shares resolve paths correctly after applying the patch.

Generated by OpenCVE AI on May 6, 2026 at 21:55 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 06 May 2026 20:30:00 +0000

Type Values Removed Values Added
Weaknesses NVD-CWE-noinfo
CPEs cpe:2.3:o:linux:linux_kernel:7.0:-:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.0:rc2:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.0:rc3:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.0:rc4:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.0:rc5:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.0:rc6:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.0:rc7:*:*:*:*:*:*
Metrics cvssV3_1

{'score': 5.5, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'}


Sat, 02 May 2026 00:15:00 +0000


Fri, 01 May 2026 14:15:00 +0000

Type Values Removed Values Added
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.
Title smb: client: fix dir separator in SMB1 UNIX mounts
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-05-11T22:14:15.602Z

Reserved: 2026-03-09T15:48:24.133Z

Link: CVE-2026-31710

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Analyzed

Published: 2026-05-01T14:16:21.040

Modified: 2026-05-06T20:21:16.730

Link: CVE-2026-31710

cve-icon Redhat

Severity :

Publid Date: 2026-05-01T00:00:00Z

Links: CVE-2026-31710 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-05-06T22:00:14Z

Weaknesses