Linux
ksmbd: use opener credentials for delete-on-close
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 versions and mitigation
From the CVE record and the vendor's references.Affected
- >= f44158485826c076335d6860d35872271a83791d, < 3cb2e6e2a6798909507b9d695e4b80e685e72d26
- >= f44158485826c076335d6860d35872271a83791d, < f08b3f451f12eee4abd8a5981803bc36db84458b
- >= f44158485826c076335d6860d35872271a83791d, < 18c59109bb6fb816d5102171666f87cf1e29901d
- >= f44158485826c076335d6860d35872271a83791d, < e72c15085b6d86f45d224d98aa75b5cace4aaab9
- >= f44158485826c076335d6860d35872271a83791d, < 4b7059974549d278e30fe70e2a4e421f9839817d
- >= f44158485826c076335d6860d35872271a83791d, < 52e2f21911158ec961cd5aae19c56460db382af0
Fixed in 3cb2e6e2a6798909507b9d695e4b80e685e72d26, f08b3f451f12eee4abd8a5981803bc36db84458b, 18c59109bb6fb816d5102171666f87cf1e29901d, e72c15085b6d86f45d224d98aa75b5cace4aaab9, 4b7059974549d278e30fe70e2a4e421f9839817d, 52e2f21911158ec961cd5aae19c56460db382af0
- 5.15
Fixed in 0, 6.1.191, 6.6.145, 6.12.96, 6.18.39, 7.1.4, 7.2
Mitigation
Upgrade Linux to 3cb2e6e2a6798909507b9d695e4b80e685e72d26 or f08b3f451f12eee4abd8a5981803bc36db84458b or 18c59109bb6fb816d5102171666f87cf1e29901d or e72c15085b6d86f45d224d98aa75b5cace4aaab9 or 4b7059974549d278e30fe70e2a4e421f9839817d or 52e2f21911158ec961cd5aae19c56460db382af0 or later.
Upgrade Linux to 0 or 6.1.191 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.