In the Linux kernel, the following vulnerability has been resolved: cifs: fix session state check in reconnect to avoid use-after-free issue Don't collect exiting session in smb2_reconnect_server(), because it will be released soon. Note that the exiting session will stay in server->smb_ses_list until it complete the cifs_free_ipc() and logoff() and then delete itself from the list.
https://git.kernel.org/stable/c/99f280700b4cc02d5f141b8d15f8e9fad0418f65
https://git.kernel.org/stable/c/7e4f5c3f01fb0e51ca438e43262d858daf9a0a76
https://git.kernel.org/stable/c/759ffc164d95a32c09528766d74d9b4fb054e8f4