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-&gt;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() -&gt;<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-&gt;iface_head.next, and the loop<br /> body reads iface-&gt;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.