AZL-117986: CVE-2026-143036 affecting package kernel 6.6.161.1-1
In the Linux kernel, the following vulnerability has been resolved:
smb: client: skip NULL channel in cifsputsmbses()
cifschanskipordisable() clears a secondary channel's slot in the session (ses->chans[chanindex].server = NULL) without lowering chancount when the server stops supporting multichannel. When the session is later released, cifsputsmbses() walks every slot up to chancount and calls cifsputtcpsession() on it, which dereferences the server pointer immediately, so a slot left NULL by the skip path makes the release crash with a NULL pointer dereference.
Clearing a slot without lowering chancount is older than cifschanskipordisable(): cifschanupdateiface() could already do the same since commit b54034a73baf9 ("cifs: during reconnect, update interface if necessary"), and the release loop has been unguarded since then. Commit 12d1e301bdfd1 ("cifs: do not let cifschanupdateiface deallocate channels") later removed that trigger, but the crash is reachable through it on older kernels.
cifsdecreasesecondarychannels() already guards the same put with if (server). Add the same guard to the release loop so a skipped channel slot is left alone.
Affected Software
Event History
Frequently Asked Questions
What conditions are required to trigger the crash?
The affected system must use the Linux CIFS/SMB client with a session containing secondary channels. A secondary channel must be skipped or have its slot cleared while chan_count still includes that slot, after which releasing the SMB session can dereference the NULL server pointer.
Is this limited to newer multichannel handling code?
No. The description identifies cifs_chan_skip_or_disable() as one path, but notes that older kernels could also reach the condition through cifs_chan_update_iface() during reconnect. A later change removed that older trigger, while the release-loop guard addresses the unsafe dereference.
What happens when the issue is triggered?
Releasing the affected SMB session can cause a kernel crash due to a NULL pointer dereference in __cifs_put_smb_ses().