diff options
author | 2024-10-08 22:42:57 +0900 | |
---|---|---|
committer | 2024-10-09 21:23:17 -0500 | |
commit | 7aa8804c0b67b3cb263a472d17f2cb50d7f1a930 (patch) | |
tree | ca9bcec68d50fe0c0bb15b00308935f09737cd10 /scripts/module-common.c | |
parent | Linux 6.12-rc2 (diff) | |
download | wireguard-linux-7aa8804c0b67b3cb263a472d17f2cb50d7f1a930.tar.xz wireguard-linux-7aa8804c0b67b3cb263a472d17f2cb50d7f1a930.zip |
ksmbd: fix user-after-free from session log off
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>
Diffstat (limited to 'scripts/module-common.c')
0 files changed, 0 insertions, 0 deletions