Linux
ksmbd: run set info with opener credentials
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, < 5cbabf3a71575cd31bc7785d92d4ab42338a654b
- >= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, < b35afd5cf8fab236ef21117e42ee45691d4ffa7b
- >= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, < 0ce682867fd506f61f40c76bde7e4205bde34e87
- >= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, < 20ee516a62989a8d505ee432f9e59525ea23984e
- >= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, < 8cc9ec711f5255167247a9ab6a7179b787426ed7
- >= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, < b383bcad3d2fe634b26efbce53e22bbb5753a520
Fixed in 5cbabf3a71575cd31bc7785d92d4ab42338a654b, b35afd5cf8fab236ef21117e42ee45691d4ffa7b, 0ce682867fd506f61f40c76bde7e4205bde34e87, 20ee516a62989a8d505ee432f9e59525ea23984e, 8cc9ec711f5255167247a9ab6a7179b787426ed7, b383bcad3d2fe634b26efbce53e22bbb5753a520
- 5.15
Fixed in 0, 6.1.178, 6.6.145, 6.12.96, 6.18.39, 7.1.4, 7.2
Mitigation
Upgrade Linux to 5cbabf3a71575cd31bc7785d92d4ab42338a654b or b35afd5cf8fab236ef21117e42ee45691d4ffa7b or 0ce682867fd506f61f40c76bde7e4205bde34e87 or 20ee516a62989a8d505ee432f9e59525ea23984e or 8cc9ec711f5255167247a9ab6a7179b787426ed7 or b383bcad3d2fe634b26efbce53e22bbb5753a520 or later.
Upgrade Linux to 0 or 6.1.178 or 6.6.145 or 6.12.96 or 6.18.39 or 7.1.4 or 7.2 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.