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

commit 63981561ffd2d4987807df4126f96a11e18b0c1d 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/smb2ops.c