smb: client: Fix use-after-free in cifs_try_adding_channels()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 6aac002bcfd554aff6d3ebb55e1660d078d70ab0 · < 4986410316b1ae0e63c6ce418e4eb196723626e7| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
smb: client: Fix use-after-free in cifs_try_adding_channels()
cifs_try_adding_channels() takes a temporary reference to an interface before dropping iface_lock. If cifs_ses_add_channel() fails, it drops that reference and then increments iface->weight_fulfilled.
A concurrent interface list refresh can remove the list reference while channel creation is in progress. In that case, the failure-path kref_put() releases the last reference and frees iface. Updating weight_fulfilled afterward then accesses freed memory.
Increment weight_fulfilled before dropping the temporary reference, keeping iface alive for the final access.
From the CVE record · Linux
The Linux kernel SMB client can access freed memory in cifs_try_adding_channels() when channel creation fails during a concurrent interface list refresh. The input does not establish whether an attacker can trigger this or specify network or local access, authentication, or user-interaction requirements.
Engineers running Linux kernels with the SMB client should check their installations; affected versions are not specified.