]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ksmbd: fix Preauh_HashValue race condition
authorNamjae Jeon <linkinjeon@kernel.org>
Thu, 24 Jul 2025 23:13:31 +0000 (08:13 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 15 Aug 2025 10:05:12 +0000 (12:05 +0200)
commitfbf5c0845ed15122a770bca9be1d9b60b470d3aa
tree80821117411589ea17f7855cd089ab829e52f04b
parent96a82e19434a2522525baab59c33332658bc7653
ksmbd: fix Preauh_HashValue race condition

commit 44a3059c4c8cc635a1fb2afd692d0730ca1ba4b6 upstream.

If client send multiple session setup requests to ksmbd,
Preauh_HashValue race condition could happen.
There is no need to free sess->Preauh_HashValue at session setup phase.
It can be freed together with session at connection termination phase.

Cc: stable@vger.kernel.org
Reported-by: zdi-disclosures@trendmicro.com # ZDI-CAN-27661
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/smb/server/smb2pdu.c