]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ksmbd: avoid duplicate opinfo_put() call on error of smb21_lease_break_ack()
authorNamjae Jeon <linkinjeon@kernel.org>
Sun, 31 Dec 2023 07:13:31 +0000 (16:13 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 5 Jan 2024 14:18:36 +0000 (15:18 +0100)
commit04b8e04f8f89f255ae3fec250b149e3ffd724a7c
treeb3644dd2c4ce86de95174ee477580cda18142839
parent34f7d5b5c972f34d65fc51782a1fb5b63f50eaa2
ksmbd: avoid duplicate opinfo_put() call on error of smb21_lease_break_ack()

[ Upstream commit 658609d9a618d8881bf549b5893c0ba8fcff4526 ]

opinfo_put() could be called twice on error of smb21_lease_break_ack().
It will cause UAF issue if opinfo is referenced on other places.

Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/smb/server/smb2pdu.c