]> git.itanic.dy.fi Git - linux-stable/commit
smb: client: fix potential UAF in cifs_signal_cifsd_for_reconnect()
authorPaulo Alcantara <pc@manguebit.com>
Tue, 2 Apr 2024 19:34:04 +0000 (16:34 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 10 Apr 2024 14:38:21 +0000 (16:38 +0200)
commitf9a96a7ad1e8d25dc6662bc7552e0752de74a20d
tree79c5e19c0591fe6549dd5aa04a7dc53b80384061
parentd919b6ea15ffa56fbafef4a1d92f47aeda9af645
smb: client: fix potential UAF in cifs_signal_cifsd_for_reconnect()

commit e0e50401cc3921c9eaf1b0e667db174519ea939f 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/connect.c