diff options
| author | Namjae Jeon <[email protected]> | 2025-06-13 01:12:43 +0000 |
|---|---|---|
| committer | Steve French <[email protected]> | 2025-06-17 21:27:15 +0000 |
| commit | 7ac5b66acafcc9292fb935d7e03790f2b8b2dc0e (patch) | |
| tree | 1c547e40aba9d3d381c836c8892117e125730f83 /net/unix/af_unix.c | |
| parent | ksmbd: add free_transport ops in ksmbd connection (diff) | |
| download | kernel-7ac5b66acafcc9292fb935d7e03790f2b8b2dc0e.tar.gz kernel-7ac5b66acafcc9292fb935d7e03790f2b8b2dc0e.zip | |
ksmbd: fix null pointer dereference in destroy_previous_session
If client set ->PreviousSessionId on kerberos session setup stage,
NULL pointer dereference error will happen. Since sess->user is not
set yet, It can pass the user argument as NULL to destroy_previous_session.
sess->user will be set in ksmbd_krb5_authenticate(). So this patch move
calling destroy_previous_session() after ksmbd_krb5_authenticate().
Cc: [email protected]
Reported-by: [email protected] # ZDI-CAN-27391
Signed-off-by: Namjae Jeon <[email protected]>
Signed-off-by: Steve French <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
