diff options
| author | Namjae Jeon <[email protected]> | 2024-10-08 13:42:57 +0000 |
|---|---|---|
| committer | Steve French <[email protected]> | 2024-10-10 02:23:17 +0000 |
| commit | 7aa8804c0b67b3cb263a472d17f2cb50d7f1a930 (patch) | |
| tree | ca9bcec68d50fe0c0bb15b00308935f09737cd10 /crypto/algapi.c | |
| parent | Linux 6.12-rc2 (diff) | |
| download | kernel-7aa8804c0b67b3cb263a472d17f2cb50d7f1a930.tar.gz kernel-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: [email protected] # v5.15+
Reported-by: [email protected] # ZDI-CAN-25282
Signed-off-by: Namjae Jeon <[email protected]>
Signed-off-by: Steve French <[email protected]>
Diffstat (limited to 'crypto/algapi.c')
0 files changed, 0 insertions, 0 deletions
