smb: client: fix potential UAF in cifs_stats_proc_write()
authorPaulo Alcantara <pc@manguebit.com>
Tue, 2 Apr 2024 19:33:55 +0000 (16:33 -0300)
committerSteve French <stfrench@microsoft.com>
Wed, 3 Apr 2024 19:43:45 +0000 (14:43 -0500)
commitd3da25c5ac84430f89875ca7485a3828150a7e0a
treeddb3406259fc8dbd7a84cc20bec31fb40f58367b
parent58acd1f497162e7d282077f816faa519487be045
smb: client: fix potential UAF in cifs_stats_proc_write()

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