HIGH Introduced in 6.8
cifs ChannelDisable UAF
CVE-2026-98261
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
KernelScan AI8.8HIGH
01Description
In the Linux kernel, the following vulnerability has been resolved: cifs: Fix server use-after-free in cifs_chan_skip_or_disable() When a secondary channel is no longer supported by the server, cifs_chan_skip_or_disable() drops the channel reference with cifs_put_tcp_session() and then continues to use the server pointer by calling cifs_signal_cifsd_for_reconnect() on it and reading its primary_server pointer. cifs_put_tcp_session() can drop the last reference of the channel and tear it down, so both the channel and the primary server (whose reference is also dropped by cifs_put_tcp_session()) can be freed before they are signaled for reconnect. Signal the channel and the primary server and capture the primary server pointer before dropping the channel reference with cifs_put_tcp_session().
02KernelScan AI Analysis
Risk summary
A use-after-free in the CIFS/SMB client's multichannel handling can be triggered by a malicious or compromised SMB server during channel disable on reconnect. The server can cause the client kernel to access freed memory, potentially leading to arbitrary code execution, privilege escalation, or kernel crash. Any system with an active multichannel CIFS mount to an untrusted server is at risk.
Vulnerability analysis
When a CIFS multichannel mount's secondary channel is no longer supported by the server, the client's channel-disable routine drops the channel's reference count and then continues to use the freed server object to signal reconnect and read its primary server pointer. If that reference drop was the last one, both the channel and its primary server are freed while still being accessed, resulting in a use-after-free. The fix reorders the operations so the reconnect signals are sent and the primary server pointer is captured before the reference is dropped, ensuring the objects remain valid throughout. The vulnerable path is reached when the kernel processes server responses during a tree reconnect on an active multichannel CIFS mount, meaning a malicious or man-in-the-middle SMB server can trigger it without any privileges on the client machine.
Lifecycle
03Fix Versions
| Branch | Introduced | Fixed in | Patch commit |
|---|---|---|---|
| 6.12 | 6.8 | 6.12.112 | fcc0a935bb6e |
| 6.18 | 6.8 | 6.18.54 | 7a1b27780b11 |
| 6.6 | 6.6.15 | 6.6.158 | 0338489960dd |
| 6.7 | 6.7.3 | 6.8 | edd52eae5fcf |
| 7.2 | 6.8 | 7.2.8 | 717e0a25036b |
| mainline | 6.8 | 7.3 | — |
| cip/6.12 | 6.8 | 6.12.112-cip33 | edd52eae5fcf |
04CIP Kernels
State of the newest release of each Civil Infrastructure Platform SLTS tree, from CIP's own fix records.
| CIP tree | State |
|---|---|
| cip/6.12 | Fixed in 6.12.112-cip33 |