Files
linux/fs/cifs/cifs_debug.c
Paulo Alcantara 0b08c4c499 cifs: fix potential use-after-free bugs in TCP_Server_Info::hostname
commit 90c49fce1c upstream.

TCP_Server_Info::hostname may be updated once or many times during
reconnect, so protect its access outside reconnect path as well and
then prevent any potential use-after-free bugs.

Cc: stable@vger.kernel.org
Signed-off-by: Paulo Alcantara (SUSE) <pc@manguebit.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-05-11 23:17:38 +09:00

31 KiB