Description
In the Linux kernel, the following vulnerability has been resolved: smb: client: hold server ref while queueing reconnect work When query_server_interfaces() returns -EOPNOTSUPP on a secondary channel, smb2_reconnect() calls smb3_update_ses_channels() which for a channel runs cifs_chan_skip_or_disable(). That clears the channel's slot in the session and calls cifs_put_tcp_session(), which can drop the last reference of the channel and tear it down. smb2_reconnect() then falls through to skip_add_channels and queues reconnect work on that server, using a server that may already be freed. The send path obtained the channel from cifs_pick_channel(), which does not take a reference, so the session's channel reference is the only one. Take our own reference on the channel before calling smb3_update_ses_channels() and drop it after the reconnect work has been queued, so the channel cannot be freed while it is still used.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
f591062bdbf4742b7f1622173017f19e927057b0 to < 6d57e23dff80a7bdf9d29ba4ea082804278bab92affectedf591062bdbf4742b7f1622173017f19e927057b0 to < f02d249e9756b78990aaaa1635e47e06deb2cb51affected50e8363ecc85da49764781da90ebffe1a657b370affectedd61ba1d71ea6039eca7ada870bf3f0c3c8fc12e4affected6.6.15 to < 6.7affected6.7.3 to < 6.8affected
Linux Linux
Default version status: affected
6.8affected0 to < 6.8unaffected7.3.7 to ≤ 7.3.*unaffected7.4-rc3 to ≤ *unaffected