A flaw was found in the Linux kernel's ksmbd, a high-performance in-kernel SMB server. The specific flaw exists within the processing of SMB2_SESSION_SETUP commands. The issue results from the lack of proper locking when performing operations on an object. An attacker can leverage this vulnerability to execute code in the context of the kernel.
https://www.zerodayinitiative.com/advisories/ZDI-23-698/
https://security.netapp.com/advisory/ntap-20230824-0004/