]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
smb: client: fix potential UAF in smb2_is_valid_oplock_break()
authorPaulo Alcantara <pc@manguebit.com>
Tue, 2 Apr 2024 19:33:59 +0000 (16:33 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 10 Apr 2024 14:36:05 +0000 (16:36 +0200)
commit21fed37d2bdcde33453faf61d3d4d96c355f04bd
treefd0e08142e79e2f9e9a4819c942169b16b56695c
parent10e17ca4000ec34737bde002a13435c38ace2682
smb: client: fix potential UAF in smb2_is_valid_oplock_break()

commit 22863485a4626ec6ecf297f4cc0aef709bc862e4 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