summaryrefslogtreecommitdiff
path: root/scripts/Makefile.thinlto
diff options
context:
space:
mode:
authorJack Blessed Kimani <jackblessed191@gmail.com>2026-11-01 11:21:03 +0900
committerNamjae Jeon <linkinjeon@kernel.org>2026-11-01 22:49:32 +0900
commitd13da43938d15b0b719827d8f2b32df8eaec5def (patch)
tree19a6b2772434e42f3cc3d776f16c89f1d825f572 /scripts/Makefile.thinlto
parent539223f18026448f67d33d09719c355b91db7fd0 (diff)
downloadlinux-next-d13da43938d15b0b719827d8f2b32df8eaec5def.tar.gz
linux-next-d13da43938d15b0b719827d8f2b32df8eaec5def.zip
ksmbd: fix NULL pointer dereference in session_user_name() and session_account_type()
session_user_name() and session_account_type() dereference session->user without checking for NULL. A session can be published and exposed via the procfs session interface before authentication completes, during which session->user is NULL: show_proc_session() -> session_user_name(sess) -> user_guest(session->user) -> NULL->flags -> oops Guard both functions by treating a NULL session->user as an explicit not-yet-authenticated state rather than dereferencing it. Fixes: 1f7dd03a88a8 ("ksmbd: fix malformed procfs status output") Cc: stable@vger.kernel.org Signed-off-by: Jack Blessed Kimani <jackblessed191@gmail.com> Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions