KernelScan.io

HIGH Introduced in 6.8

cifs ChannelDisable UAF

CVE-2026-98261

CVSS 8.1 / 10.0 NVD

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

KernelScan AI8.8HIGH

01

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().

02

Engine v0.7.0

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.

Affectedfs/smb/client/smb2pdu.c (cifs/smb client)

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.

03

BranchIntroducedFixed inPatch commit
6.126.86.12.112fcc0a935bb6e
6.186.86.18.547a1b27780b11
6.66.6.156.6.1580338489960dd
6.76.7.36.8edd52eae5fcf
7.26.87.2.8717e0a25036b
mainline6.87.3—
cip/6.126.86.12.112-cip33edd52eae5fcf

04

State of the newest release of each Civil Infrastructure Platform SLTS tree, from CIP's own fix records.

CIP treeState
cip/6.12Fixed in 6.12.112-cip33