CVE-2026-143042: smb: client: hold server ref while queueing reconnect work
In the Linux kernel, the following vulnerability has been resolved:
smb: client: hold server ref while queueing reconnect work
When queryserverinterfaces() returns -EOPNOTSUPP on a secondary channel, smb2reconnect() calls smb3updateseschannels() which for a channel runs cifschanskipordisable(). That clears the channel's slot in the session and calls cifsputtcpsession(), which can drop the last reference of the channel and tear it down.
smb2reconnect() then falls through to skipaddchannels and queues reconnect work on that server, using a server that may already be freed. The send path obtained the channel from cifspickchannel(), 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 smb3updateseschannels() and drop it after the reconnect work has been queued, so the channel cannot be freed while it is still used.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
Hold a server reference while queueing reconnect work, and release it after the reconnect work has been queued.
Event History
Frequently Asked Questions
Under what conditions can this occur?
The issue occurs during SMB client reconnection when query_server_interfaces() returns -EOPNOTSUPP on a secondary channel. The reconnect path can then disable that channel and release its last session reference before reconnect work is queued against it.
Is a remote SMB server involved in triggering the vulnerable path?
Yes. The affected logic is in the Linux SMB client’s handling of a secondary channel during reconnection, specifically when server-interface querying returns -EOPNOTSUPP. The provided information does not establish whether a malicious server can deliberately cause that response.
What is the impact of the race?
Reconnect work may be queued using a server/channel object that has already been freed. This is a use-after-free condition in the SMB client reconnect path.