In the Linux kernel, the following vulnerability has been resolved: cifs: fix potential race when tree connecting ipc Protect access of TCPServerInfo::hostname when building the ipc tree name as it might get freed in cifsd thread and thus causing an use-after-free bug in _treeconnectdfstarget(). Also, while at it, update status of IPC tcon on success and then avoid any extra tree connects.