linux-stable/fs/smb
Shyam Prasad N 33f736187d 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: 76894f3e2f ("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>
2023-06-28 11:46:32 -05:00
..
client cifs: prevent use-after-free by freeing the cfile later 2023-06-28 11:46:32 -05:00
common
server ksmbd: validate smb request protocol id 2023-06-02 12:30:57 -05:00
Kconfig
Makefile