]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 10 Apr 2024 14:36:05 +0000 (16:36 +0200)
commitcf03020c56d3ed28c4942280957a007b5e9544f7
tree3ce183be7fc83821ec6f3a8ffc23801aa11377f6
parenta65f2b56334ba4dc30bd5ee9ce5b2691b973344d
smb: client: fix potential UAF in cifs_stats_proc_write()

commit d3da25c5ac84430f89875ca7485a3828150a7e0a upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/smb/client/cifs_debug.c