Description
In the Linux kernel, the following vulnerability has been resolved: ksmbd: use opener credentials for delete-on-close Delete-on-close can be completed by deferred or durable handle teardown, where no request work is available. Both the base-file unlink and the ADS xattr removal consequently run with the ksmbd worker credentials and can bypass filesystem permission checks. Run both operations with the credentials captured in struct file when the handle was opened. This preserves the authenticated user's fsuid, fsgid, supplementary groups and capability restrictions at final close.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
f44158485826c076335d6860d35872271a83791d to < 3cb2e6e2a6798909507b9d695e4b80e685e72d26affectedf44158485826c076335d6860d35872271a83791d to < f08b3f451f12eee4abd8a5981803bc36db84458baffectedf44158485826c076335d6860d35872271a83791d to < 18c59109bb6fb816d5102171666f87cf1e29901daffectedf44158485826c076335d6860d35872271a83791d to < e72c15085b6d86f45d224d98aa75b5cace4aaab9affectedf44158485826c076335d6860d35872271a83791d to < 4b7059974549d278e30fe70e2a4e421f9839817daffectedf44158485826c076335d6860d35872271a83791d to < 52e2f21911158ec961cd5aae19c56460db382af0affected
Linux Linux
Default version status: affected
5.15affected0 to < 5.15unaffected6.1.191 to ≤ 6.1.*unaffected6.6.145 to ≤ 6.6.*unaffected6.12.96 to ≤ 6.12.*unaffected6.18.39 to ≤ 6.18.*unaffected7.1.4 to ≤ 7.1.*unaffected7.2 to ≤ *unaffected
References
- https://git.kernel.org/stable/c/3cb2e6e2a6798909507b9d695e4b80e685e72d26 ↗
- https://git.kernel.org/stable/c/f08b3f451f12eee4abd8a5981803bc36db84458b ↗
- https://git.kernel.org/stable/c/18c59109bb6fb816d5102171666f87cf1e29901d ↗
- https://git.kernel.org/stable/c/e72c15085b6d86f45d224d98aa75b5cace4aaab9 ↗
- https://git.kernel.org/stable/c/4b7059974549d278e30fe70e2a4e421f9839817d ↗
- https://git.kernel.org/stable/c/52e2f21911158ec961cd5aae19c56460db382af0 ↗