KernelScan.io

HIGH Introduced in 4.10

smb ReconnectWork UAF

CVE-2026-98175

CVSS 7.5 / 10.0 NVD

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

KernelScan AI7.5HIGH

01

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.

02

Engine v0.7.0

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.

Affectedfs/smb/client/connect.c (smb client)

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.

03

BranchIntroducedFixed inPatch commit
3.103.10.1073.11180380272f11
3.123.12.703.13e3f6a779433d
3.163.16.423.177ab9ceedd860
3.183.18.473.192e5103e11a17
4.14.1.384.2c65eae6f61d1
4.44.4.404.5—
4.84.8.164.9—
4.94.9.14.10—
6.124.106.12.112—
6.184.106.18.54—
6.64.106.6.158—
7.24.107.2.8—
mainline4.107.3—
cip/6.124.106.12.112-cip33e3f6a779433d

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
cip/6.1Affected — no CIP fix yet (latest 6.1.190-cip62)
cip/6.1-rtAffected — no CIP fix yet (latest 6.1.189-cip61-rt32)
cip/5.10Affected — no CIP fix yet (latest 5.10.272-cip79)
cip/5.10-rtAffected — no CIP fix yet (latest 5.10.272-cip79-rt35)
cip/4.19Affected — no CIP fix yet (latest 4.19.325-cip136)
cip/4.19-rtAffected — no CIP fix yet (latest 4.19.325-cip136-rt50)
cip/4.4Affected — no CIP fix yet (latest 4.4.302-cip115)
cip/4.4-rtAffected — no CIP fix yet (latest 4.4.302-cip115-rt63)