smb: client: mask server-provided mode to 07777 in modefromsid
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ e2f8fbfb8d09c06decde162090fac3ee220aa280 · < c6c484a7d5bff6b929a86d7ed5130f29834c6a0d| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
smb: client: mask server-provided mode to 07777 in modefromsid
When modefromsid is active, parse_dacl() applies the server-provided sub_auth[2] value from the NFS mode SID to cf_mode without masking to 07777. Apply the correct masking, same as in the read path.
From the CVE record · Linux
The Linux kernel SMB client does not mask a server-provided mode value to 07777 in parse_dacl(). When modefromsid is active, a server-provided NFS mode SID can set cf_mode outside that range. The input does not specify authentication or user-interaction requirements.
Operators of Linux kernels using the SMB client with modefromsid should check their installations; affected versions are not specified.