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 smb2reconnectserver(), because it will be released soon. Note that the exiting session will stay in server->smbseslist until it complete the cifsfreeipc() and logoff() and then delete itself from the list.