Linux
ksmbd: use opener credentials for FSCTL mutations
In the Linux kernel, the following vulnerability has been resolved: ksmbd: use opener credentials for FSCTL mutations SET_SPARSE, SET_ZERO_DATA and SET_COMPRESSION operate on an open SMB handle but call VFS xattr, fallocate or fileattr helpers with the current ksmbd worker credentials. Those helpers can revalidate inode permissions, ownership and LSM policy independently of the SMB handle access mask. Run each operation with the credentials captured in the target file when the handle was opened. Keep credential handling local to these single-file FSCTLs rather than applying session credentials to the complete IOCTL handler, which also contains handle-less and multi-handle operations.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, < a8c18434e1f0d9f7989170bdb0490c0160baf065
- >= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, < 1e112c47ec5dd1942e2d4ca6e8e9b712238e20c2
- >= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, < fb1cae6302d58414ddf029e3f642711bd30243f7
- >= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, < e205f3e7e8c31a47cd11efb6cf663a527177e432
- >= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, < cfb2c6f71d61ed807c9d7a7af331d406f1f31877
- >= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, < c6394bcaf254c5baf9aff43376020be5db6d3316
Fixed in a8c18434e1f0d9f7989170bdb0490c0160baf065, 1e112c47ec5dd1942e2d4ca6e8e9b712238e20c2, fb1cae6302d58414ddf029e3f642711bd30243f7, e205f3e7e8c31a47cd11efb6cf663a527177e432, cfb2c6f71d61ed807c9d7a7af331d406f1f31877, c6394bcaf254c5baf9aff43376020be5db6d3316
- 5.15
Fixed in 0, 6.1.178, 6.6.145, 6.12.97, 6.18.40, 7.1.5, 7.2
Mitigation
Upgrade Linux to a8c18434e1f0d9f7989170bdb0490c0160baf065 or 1e112c47ec5dd1942e2d4ca6e8e9b712238e20c2 or fb1cae6302d58414ddf029e3f642711bd30243f7 or e205f3e7e8c31a47cd11efb6cf663a527177e432 or cfb2c6f71d61ed807c9d7a7af331d406f1f31877 or c6394bcaf254c5baf9aff43376020be5db6d3316 or later.
Upgrade Linux to 0 or 6.1.178 or 6.6.145 or 6.12.97 or 6.18.40 or 7.1.5 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.