AZL-118910: CVE-2026-143042 affecting package kernel 6.6.161.1-1
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 reference to the channel before queueing reconnect work, then drop that reference after the reconnect work has been queued.