HIGH Introduced in 4.10
smb ReconnectWork UAF
CVE-2026-98175
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
KernelScan AI7.5HIGH
01Description
In the Linux kernel, the following vulnerability has been resolved: smb: client: cancel reconnect work in clean_demultiplex_info() clean_demultiplex_info() cancels server->echo delayed work but not server->reconnect, which can cause a use-after-free when the demultiplex thread exits while a reconnect work is still queued: cifs_demultiplex_thread() cifs_readv_from_socket() cifs_reconnect() __cifs_reconnect() cifs_queue_server_reconn() mod_delayed_work(cifsiod_wq, &server->reconnect, 0) clean_demultiplex_info() cancel_delayed_work_sync(&server->echo) // echo canceled // reconnect NOT canceled kfree_sensitive(server) // server freed ...later, on cifsiod_wq: smb2_reconnect_server() server->srv_count // UAF read of freed server Fix this by canceling server->reconnect delayed work in clean_demultiplex_info() before the server is freed, the same way cifs_put_tcp_session() already does.
02KernelScan AI Analysis
Risk summary
Systems with mounted CIFS/SMB shares are at risk. A race between the demultiplex thread exiting and a queued reconnect work item leads to a use-after-free of the server structure, potentially causing kernel memory corruption or a crash. The race is triggered by network disruptions on an existing mount and does not require privileged operations once the mount is in place.
Vulnerability analysis
The CIFS client's teardown path cancels pending echo work but fails to cancel pending reconnect work before freeing the server structure. When a network connection drops, a reconnect work item is queued on a shared workqueue; if the demultiplex thread exits concurrently, the server object is freed while that work item is still pending, and the reconnect worker later dereferences the freed pointer. The fix adds cancellation of the reconnect delayed work alongside the existing echo work cancellation, so no work items remain queued before the server is freed. This is reachable on any system with a mounted CIFS/SMB share when network conditions trigger the reconnect race; the trigger itself does not require privileges beyond having an existing mount, as network disruptions can cause the reconnect path to fire.
Lifecycle
03Fix Versions
| Branch | Introduced | Fixed in | Patch commit |
|---|---|---|---|
| 3.10 | 3.10.107 | 3.11 | 180380272f11 |
| 3.12 | 3.12.70 | 3.13 | e3f6a779433d |
| 3.16 | 3.16.42 | 3.17 | 7ab9ceedd860 |
| 3.18 | 3.18.47 | 3.19 | 2e5103e11a17 |
| 4.1 | 4.1.38 | 4.2 | c65eae6f61d1 |
| 4.4 | 4.4.40 | 4.5 | — |
| 4.8 | 4.8.16 | 4.9 | — |
| 4.9 | 4.9.1 | 4.10 | — |
| 6.12 | 4.10 | 6.12.112 | — |
| 6.18 | 4.10 | 6.18.54 | — |
| 6.6 | 4.10 | 6.6.158 | — |
| 7.2 | 4.10 | 7.2.8 | — |
| mainline | 4.10 | 7.3 | — |
| cip/6.12 | 4.10 | 6.12.112-cip33 | e3f6a779433d |
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 |
| cip/6.1 | Affected — no CIP fix yet (latest 6.1.190-cip62) |
| cip/6.1-rt | Affected — no CIP fix yet (latest 6.1.189-cip61-rt32) |
| cip/5.10 | Affected — no CIP fix yet (latest 5.10.272-cip79) |
| cip/5.10-rt | Affected — no CIP fix yet (latest 5.10.272-cip79-rt35) |
| cip/4.19 | Affected — no CIP fix yet (latest 4.19.325-cip136) |
| cip/4.19-rt | Affected — no CIP fix yet (latest 4.19.325-cip136-rt50) |
| cip/4.4 | Affected — no CIP fix yet (latest 4.4.302-cip115) |
| cip/4.4-rt | Affected — no CIP fix yet (latest 4.4.302-cip115-rt63) |