Skip to content

fs/smb/client: Reset password pointer to NULL

Scott Mayhew requested to merge smayhew/centos-stream-9:rhel-11805 into main

JIRA: https://issues.redhat.com/browse/RHEL-11805
JIRA: https://issues.redhat.com/browse/RHEL-11809
CVE: CVE-2023-5345

commit e6e43b8aa7cd3c3af686caf0c2e11819a886d705
Author: Quang Le quanglex97@gmail.com
Date: Fri Sep 29 00:44:13 2023 +0700

fs/smb/client: Reset password pointer to NULL

Forget to reset ctx->password to NULL will lead to bug like double free

Cc: stable@vger.kernel.org  
Cc: Willy Tarreau <w@1wt.eu>  
Reviewed-by: Namjae Jeon <linkinjeon@kernel.org>  
Signed-off-by: Quang Le <quanglex97@gmail.com>  
Signed-off-by: Steve French <stfrench@microsoft.com>  

Signed-off-by: Scott Mayhew smayhew@redhat.com

Merge request reports