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)
committerSteve French <stfrench@microsoft.com>
Wed, 3 Apr 2024 19:43:45 +0000 (14:43 -0500)
commit22863485a4626ec6ecf297f4cc0aef709bc862e4
tree4bcc4767685bd42b5807c54aaf0c862136e5d97c
parent705c76fbf726c7a2f6ff9143d4013b18daaaebf1
smb: client: fix potential UAF in smb2_is_valid_oplock_break()

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>
fs/smb/client/smb2misc.c