CyberRota Analysis
AI-GeneratedThe vulnerability affects the Linux kernel's ksmbd component, where certain file system control (FSCTL) operations—specifically SET_SPARSE, SET_ZERO_DATA, and SET_COMPRESSION—incorrectly utilize the current worker credentials instead of the opener's credentials. This mismanagement can lead to unauthorized access or modification of file attributes, potentially compromising system integrity and security. Organizations using Linux systems that rely on ksmbd for SMB file sharing should prioritize addressing this vulnerability to safeguard against potential exploitation.
Original NVD Description
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.