Searched hist:"33 f73618" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/fs/smb/client/ |
H A D | smb2inode.c | 33f73618 Thu Jun 22 13:16:03 CDT 2023 Shyam Prasad N <sprasad@microsoft.com> cifs: prevent use-after-free by freeing the cfile later
In smb2_compound_op we have a possible use-after-free which can cause hard to debug problems later on.
This was revealed during stress testing with KASAN enabled kernel. Fixing it by moving the cfile free call to a few lines below, after the usage.
Fixes: 76894f3e2f71 ("cifs: improve symlink handling for smb2+") Reviewed-by: Paulo Alcantara (SUSE) <pc@manguebit.com> Signed-off-by: Shyam Prasad N <sprasad@microsoft.com> Signed-off-by: Steve French <stfrench@microsoft.com>
|