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)
committerSteve French <stfrench@microsoft.com>
Wed, 3 Apr 2024 19:44:42 +0000 (14:44 -0500)
commit69ccf040acddf33a3a85ec0f6b45ef84b0f7ec29
tree91d9f4d74b7601415c3a82fe7a6081fcad0cbd05
parent22863485a4626ec6ecf297f4cc0aef709bc862e4
smb: client: fix potential UAF in 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/misc.c