cifs: fix potential race when tree connecting ipc
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
5.16
|
In the Linux kernel, the following vulnerability has been resolved:
cifs: fix potential race when tree connecting ipc
Protect access of TCP_Server_Info::hostname when building the ipc tree name as it might get freed in cifsd thread and thus causing an use-after-free bug in __tree_connect_dfs_target(). Also, while at it, update status of IPC tcon on success and then avoid any extra tree connects.
From the CVE record · Linux
A race during CIFS IPC tree connection can free a hostname while it is being used, causing a use-after-free in __tree_connect_dfs_target(). The input does not establish whether an attacker can trigger the race or specify access requirements or user interaction.
Engineers running Linux kernels with CIFS support should check their systems; affected versions are not specified.