summaryrefslogtreecommitdiff
path: root/rust/helpers/build_assert.c
diff options
context:
space:
mode:
authorSean Heelan <seanheelan@gmail.com>2025-04-07 14:26:50 +0300
committerSteve French <stfrench@microsoft.com>2025-04-15 06:21:26 +0300
commit1e440d5b25b7efccb3defe542a73c51005799a5f (patch)
tree63f22353c1fd445c53cce348d59ada2b5133eed2 /rust/helpers/build_assert.c
parent8ffd015db85fea3e15a77027fda6c02ced4d2444 (diff)
downloadlinux-1e440d5b25b7efccb3defe542a73c51005799a5f.tar.xz
ksmbd: Fix dangling pointer in krb_authenticate
krb_authenticate frees sess->user and does not set the pointer to NULL. It calls ksmbd_krb5_authenticate to reinitialise sess->user but that function may return without doing so. If that happens then smb2_sess_setup, which calls krb_authenticate, will be accessing free'd memory when it later uses sess->user. Cc: stable@vger.kernel.org Signed-off-by: Sean Heelan <seanheelan@gmail.com> Acked-by: Namjae Jeon <linkinjeon@kernel.org> Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'rust/helpers/build_assert.c')
0 files changed, 0 insertions, 0 deletions