CVE-2026-98173
Severity CVSS v4.0:
Pending analysis
Type:
Unavailable / Other
Publication date:
06/10/2026
Last modified:
30/10/2026
Description
In the Linux kernel, the following vulnerability has been resolved:<br />
<br />
smb: client: fix use-after-free of iface in cifs_try_adding_channels()<br />
<br />
cifs_try_adding_channels() iterates ses->iface_list with<br />
list_for_each_entry_safe_from(), which captures the next entry<br />
(niface) under iface_lock. The loop body then drops iface_lock for<br />
the whole duration of cifs_ses_add_channel().<br />
<br />
A concurrent interface refresh (SMB3_request_interfaces() -><br />
parse_server_interfaces()) marks all ifaces inactive and removes and<br />
frees any that are not re-advertised via list_del() + kref_put(),<br />
where release_iface() is a bare kfree(). Since niface typically has<br />
no channel holding a reference, the list reference is its last and it<br />
can be freed inside the unlocked window. On continue, the iterator<br />
advance step then dereferences niface->iface_head.next, and the loop<br />
body reads iface->rdma_capable/is_active, both on freed memory.<br />
<br />
Fix this by never keeping an unreferenced list pointer across the<br />
unlocked window. Each channel attempt now re-scans the list from the<br />
head under iface_lock, takes a kref on the selected candidate, and<br />
passes only that referenced candidate to cifs_ses_add_channel().<br />
weight_fulfilled still tracks selection progress, so restarting the<br />
scan preserves the original weighted distribution and the<br />
weight_fulfilled-before-kref_put ordering on the failure path.<br />
<br />
Add a per-pass attempts cap so a flapping interface refresh cannot<br />
keep the inner loop spinning within a single tries increment.
Impact
Base Score 3.x
7.50
Severity 3.x
HIGH
References to Advisories, Solutions, and Tools
- https://git.kernel.org/stable/c/93e8a49adb2a575202c5ee766435eff2f9f95f5b
- https://git.kernel.org/stable/c/c941f1ebfd26f683de81091473f3596a218abff0
- https://git.kernel.org/stable/c/d034e836eefd7ce75e588f7031cffbeec594f5ac
- https://git.kernel.org/stable/c/e99040e5e9c60441e6b4725e1a7b88c3106ae903
- https://git.kernel.org/stable/c/ec36b38e65596950e6c29bed7dfc90b98707c19c
- https://git.kernel.org/stable/c/ee0d8f83d68f6e6509f092c997ccab3c8c801538


