cifs: fix session state check in reconnect to avoid use-after-free issue
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel's CIFS reconnect code can collect a session that is exiting and about to be freed, causing a use-after-free. The input does not establish what an attacker could do with this flaw or whether network access, authentication, or user interaction is required.
Engineers running Linux kernels with CIFS support should check their deployments; affected versions are not specified.