A vulnerability in the Linux kernel's ksmbd component allows a mismatch between the transform SessionId used for decryption and the SessionId in the decrypted SMB2 header. This flaw permits a client on a multi-session connection to have a request decrypted with one session's key but executed under another session's identity. The vulnerability arises because the server did not verify that the transform SessionId matches the decrypted header's SessionId, violating MS-SMB2 protocol requirements. The issue has been resolved by adding checks to ensure SessionId consistency after decryption and before request dispatch.