linux-IllusionX/fs/smb
Namjae Jeon ee371898b5 ksmbd: fix user-after-free from session log off
commit 7aa8804c0b67b3cb263a472d17f2cb50d7f1a930 upstream.

There is racy issue between smb2 session log off and smb2 session setup.
It will cause user-after-free from session log off.
This add session_lock when setting SMB2_SESSION_EXPIRED and referece
count to session struct not to free session while it is being used.

Cc: stable@vger.kernel.org # v5.15+
Reported-by: zdi-disclosures@trendmicro.com # ZDI-CAN-25282
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>
2024-10-22 15:51:17 +02:00
..
client smb: client: fix UAF in async decryption 2024-10-17 15:26:42 +02:00
common
server ksmbd: fix user-after-free from session log off 2024-10-22 15:51:17 +02:00
Kconfig
Makefile