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

commit 705c76fbf726c7a2f6ff9143d4013b18daaaebf1 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/smb2misc.c