smb: client: fix potential UAF in cifs_debug_files_proc_show()
authorPaulo Alcantara <pc@manguebit.com>
Tue, 2 Apr 2024 19:33:53 +0000 (16:33 -0300)
committerSteve French <stfrench@microsoft.com>
Wed, 3 Apr 2024 19:43:34 +0000 (14:43 -0500)
commitca545b7f0823f19db0f1148d59bc5e1a56634502
tree084dc86ae37199f48f5652ca7bc7900ef6af62e6
parent173217bd73365867378b5e75a86f0049e1069ee8
smb: client: fix potential UAF in cifs_debug_files_proc_show()

Skip sessions that are being teared down (status == SES_EXITING) to
avoid UAF.

Cc: stable@vger.kernel.org
Signed-off-by: Paulo Alcantara (Red Hat) <pc@manguebit.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/client/cifs_debug.c
fs/smb/client/cifsglob.h