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

commit 69ccf040acddf33a3a85ec0f6b45ef84b0f7ec29 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/misc.c