{"id":33242,"date":"2026-10-06T20:31:36","date_gmt":"2026-10-06T12:31:36","guid":{"rendered":"https:\/\/www.54iter.cn\/?vuln=cve-2026-98173"},"modified":"2026-10-06T20:31:36","modified_gmt":"2026-10-06T12:31:36","slug":"cve-2026-98173","status":"publish","type":"vuln","link":"https:\/\/www.54iter.cn\/?vuln=cve-2026-98173","title":{"rendered":"CVE-2026-98173 &#8211; In the Linux kernel, the following vulnerability has been resolved:\n\nsmb: client: fix use-"},"content":{"rendered":"<p>In the Linux kernel, the following vulnerability has been resolved:<\/p>\n<p>smb: client: fix use-after-free of iface in cifs_try_adding_channels()<\/p>\n<p>cifs_try_adding_channels() iterates ses-&gt;iface_list with<br \/>\nlist_for_each_entry_safe_from(), which captures the next entry<br \/>\n(niface) under iface_lock.  The loop body then drops iface_lock for<br \/>\nthe whole duration of cifs_ses_add_channel().<\/p>\n<p>A concurrent interface refresh (SMB3_request_interfaces() -&gt;<br \/>\nparse_server_interfaces()) marks all ifaces inactive and removes and<br \/>\nfrees any that are not re-advertised via list_del() + kref_put(),<br \/>\nwhere release_iface() is a bare kfree().  Since niface typically has<br \/>\nno channel holding a reference, the list reference is its last and it<br \/>\ncan be freed inside the unlocked window.  On continue, the iterator<br \/>\nadvance step then dereferences niface-&gt;iface_head.next, and the loop<br \/>\nbody reads iface-&gt;rdma_capable\/is_active, both on freed memory.<\/p>\n<p>Fix this by never keeping an unreferenced list pointer across the<br \/>\nunlocked window.  Each channel attempt now re-scans the list from the<br \/>\nhead under iface_lock, takes a kref on the selected candidate, and<br \/>\npasses only that referenced candidate to cifs_ses_add_channel().<br \/>\nweight_fulfilled still tracks selection progress, so restarting the<br \/>\nscan preserves the original weighted distribution and the<br \/>\nweight_fulfilled-before-kref_put ordering on the failure path.<\/p>\n<p>Add a per-pass attempts cap so a flapping interface refresh cannot<br \/>\nkeep the inner loop spinning within a single tries increment.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In the Linux kernel, the following vulnerability has been resolved:<\/p>\n<p>smb: client: fix use-after-free of iface in cifs_try_adding_channels()<\/p>\n<p>cifs_try_adding_channels() iterates ses-&gt;iface_list with<br \/>\nli<\/p>\n","protected":false},"template":"","meta":[],"categories":[],"tags":[],"class_list":["post-33242","vuln","type-vuln","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=\/wp\/v2\/vuln\/33242","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=\/wp\/v2\/vuln"}],"about":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=\/wp\/v2\/types\/vuln"}],"wp:attachment":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=33242"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=33242"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=33242"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}