ksmbd: run set info with opener credentials
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 · < b383bcad3d2fe634b26efbce53e22bbb5753a520| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
ksmbd: run set info with opener credentials
SMB2 SET_INFO handlers call path-based VFS helpers after checking the access mask granted to the SMB handle. Those helpers perform their owner, inode permission and LSM checks using the current ksmbd worker credentials.
Run the complete SET_INFO dispatch with the credentials captured when the handle was opened. This also removes the separate security information credential setup and keeps all SET_INFO classes under one credential scope.
Direct override_creds() is used because it can nest with the request credential overrides already used by rename and link helpers.
From the CVE record · Linux
Linux kernel ksmbd SMB2 SET_INFO handlers check a handle's access mask, then run path-based filesystem checks using worker credentials instead of the credentials captured when the handle was opened. A client with an open SMB handle may therefore have SET_INFO operations checked under the wrong credentials. The input does not specify authentication or other user-interaction requirements.
Operators running the Linux kernel with ksmbd should check their deployments; affected versions are not specified.