Commit a1aee52b authored by Hangyu Hua's avatar Hangyu Hua Committed by Zizhi Wo
Browse files

ksmbd: fix possible memory leak in smb2_lock()

mainline inclusion
from mainline-v6.3-rc1
commit d3ca9f7a
category: bugfix
bugzilla: https://gitee.com/src-openeuler/kernel/issues/I6KEWO?from=project-issue
CVE: CVE-2023-1193

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=d3ca9f7aeba793d74361d88a8800b2f205c9236b



--------------------------------

argv needs to be free when setup_async_work fails or when the current
process is woken up.

Fixes: e2f34481 ("cifsd: add server-side procedures for SMB3")
Cc: stable@vger.kernel.org
Signed-off-by: default avatarHangyu Hua <hbh25y@gmail.com>
Acked-by: default avatarNamjae Jeon <linkinjeon@kernel.org>
Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
Signed-off-by: default avatarZizhi Wo <wozizhi@huawei.com>
parent 1c7cb4fc
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment