smb: client: fix dir separator in SMB1 UNIX mounts
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
7.0.27.1In 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.
From the CVE record · Linux
The Linux kernel SMB client can use the wrong directory separator in paths on SMB1 UNIX mounts. This occurs when mount flags are read or updated before UNIX capabilities are reset. The input does not describe an attacker action, authentication requirement, or user interaction.
Engineers running Linux systems that use SMB1 UNIX mounts should check their kernels; affected versions are not specified.