]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ksmbd: use aead_request_free to match aead_request_alloc
authorMiaoqian Lin <linmq006@gmail.com>
Tue, 18 Mar 2025 12:12:34 +0000 (20:12 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 Apr 2025 12:37:35 +0000 (14:37 +0200)
commit1de7fec4d3012672e31eeb6679ea60f7ca010ef9
tree4ca77567f38cf9705cabcf9b535dbc29775d10b3
parent8857aadaecefaf8ba5ba35ba3db1ff5cfeacb7ab
ksmbd: use aead_request_free to match aead_request_alloc

[ Upstream commit 6171063e9d046ffa46f51579b2ca4a43caef581a ]

Use aead_request_free() instead of kfree() to properly free memory
allocated by aead_request_alloc(). This ensures sensitive crypto data
is zeroed before being freed.

Fixes: e2f34481b24d ("cifsd: add server-side procedures for SMB3")
Signed-off-by: Miaoqian Lin <linmq006@gmail.com>
Acked-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/auth.c