CVE-2026-31710

smb: client: fix dir separator in SMB1 UNIX mounts

State
Published
Severity
Not scored
Published
May 1, 2026
Updated
Sep 21, 2026
Reserved
Mar 9, 2026

Read the record on cve.org

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.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 4fc3a433c13944ee5766ec5b9bf6f1eb4d29b880 to before fbbfcf35e1ee3396631f3dc6214cb626aa9814c3Affected
  • 4fc3a433c13944ee5766ec5b9bf6f1eb4d29b880 to before c4d3fc5844d685441befd0caaab648321013cdfdAffected
  • 9d9f6e06123001208cd8ae6332c7e814ab709169Affected
  • 6.18.53 to before 6.19Affected
LinuxLinux
  • 7.0Affected
  • before 7.0Not affected
  • 7.0.2 through 7.0.*Not affected
  • 7.1 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.