Skip to content

Commit 04688d6

Browse files
committed
Merge tag 'v6.19-rc2-smb3-client-fix' of git://git.samba.org/sfrench/cifs-2.6
Pull smb client fix from Steve French: - Fix potential memory leak * tag 'v6.19-rc2-smb3-client-fix' of git://git.samba.org/sfrench/cifs-2.6: cifs: Fix memory and information leak in smb3_reconfigure()
2 parents 1e5e062 + cb6d5aa commit 04688d6

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

fs/smb/client/fs_context.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1139,6 +1139,8 @@ static int smb3_reconfigure(struct fs_context *fc)
11391139
rc = smb3_sync_session_ctx_passwords(cifs_sb, ses);
11401140
if (rc) {
11411141
mutex_unlock(&ses->session_mutex);
1142+
kfree_sensitive(new_password);
1143+
kfree_sensitive(new_password2);
11421144
return rc;
11431145
}
11441146

0 commit comments

Comments
 (0)