{"id":21557,"date":"2026-09-12T04:31:20","date_gmt":"2026-09-11T20:31:20","guid":{"rendered":"https:\/\/www.54iter.cn\/?vuln=cve-2026-89635"},"modified":"2026-09-12T04:31:20","modified_gmt":"2026-09-11T20:31:20","slug":"cve-2026-89635","status":"publish","type":"vuln","link":"https:\/\/www.54iter.cn\/?vuln=cve-2026-89635","title":{"rendered":"CVE-2026-89635 &#8211; In the Linux kernel, the following vulnerability has been resolved:\n\nksmbd: only rebind th"},"content":{"rendered":"<p>In the Linux kernel, the following vulnerability has been resolved:<\/p>\n<p>ksmbd: only rebind the reopened file&#8217;s own oplock on durable reconnect<\/p>\n<p>ksmbd_reopen_durable_fd() walks the inode&#8217;s m_op_list and rebinds every<br \/>\ndetached oplock to the reconnecting session:<\/p>\n<p>\tlist_for_each_entry_rcu(op, &amp;ci-&gt;m_op_list, op_entry,<br \/>\n\t\t\t\tlockdep_is_held(&amp;ci-&gt;m_lock)) {<br \/>\n\t\tif (op-&gt;conn)<br \/>\n\t\t\tcontinue;<br \/>\n\t\top-&gt;conn = ksmbd_conn_get(fp-&gt;conn);<br \/>\n\t\top-&gt;sess = work-&gt;sess;<br \/>\n\t}<\/p>\n<p>The only key is op-&gt;conn == NULL, which every detached durable handle on<br \/>\nthat inode matches, not just the one owned by fp.  When two sessions hold<br \/>\ndurable handles on the same file and both disconnect, reconnecting one of<br \/>\nthem adopts the other session&#8217;s oplock: op-&gt;sess is overwritten with the<br \/>\nreconnecting session without taking a reference on it, while op-&gt;conn<br \/>\npins the connection.<\/p>\n<p>The sibling teardown path, session_fd_check(), keys on the identity of<br \/>\nthe connection being torn down (op-&gt;conn == conn) rather than on shared<br \/>\nstate, and so does not have this problem.<\/p>\n<p>Once the adopting session is destroyed, ksmbd_session_destroy() frees it<br \/>\nwhile the foreign oplock still points at it.  The reader in<br \/>\nksmbd_close_fd_app_instance_id() validates only opinfo-&gt;conn, which is<br \/>\nstill live thanks to the reference taken above, and then dereferences the<br \/>\nstale session:<\/p>\n<p>\tif (!opinfo-&gt;conn) {<br \/>\n\t\tup_read(&amp;fp-&gt;f_ci-&gt;m_lock);<br \/>\n\t\tgoto out;<br \/>\n\t}<\/p>\n<p>\tft = &amp;opinfo-&gt;sess-&gt;file_table;<br \/>\n\twrite_lock(&amp;ft-&gt;lock);<\/p>\n<p>  BUG: KASAN: slab-use-after-free in _raw_write_lock+0x74\/0xd0<br \/>\n  Write of size 4 at addr ffff88810a970528 by task kworker\/0:0\/9<br \/>\n  Workqueue: ksmbd-io handle_ksmbd_work<br \/>\n  Call Trace:<br \/>\n   _raw_write_lock+0x74\/0xd0<br \/>\n   ksmbd_close_fd_app_instance_id+0x183\/0x410<br \/>\n   smb2_open+0x1346\/0x4430<br \/>\n   handle_ksmbd_work+0x2bb\/0x7b0<\/p>\n<p>Reached from an authenticated session against a share with the default<br \/>\ndurable-handle and oplock configuration: two sessions open the same file<br \/>\nwith a durable-v2 handle and an RH lease under distinct AppInstanceIds,<br \/>\nboth log off, one reconnects with DH2C, and a later durable-v2 create<br \/>\ncarrying the other AppInstanceId walks into the freed session.<\/p>\n<p>Constrain the loop to the oplock owned by the file being reopened.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In the Linux kernel, the following vulnerability has been resolved:<\/p>\n<p>ksmbd: only rebind the reopened file&#8217;s own oplock on durable reconnect<\/p>\n<p>ksmbd_reopen_durable_fd() walks the inode&#8217;s m_op_list and r<\/p>\n","protected":false},"template":"","meta":[],"categories":[],"tags":[],"class_list":["post-21557","vuln","type-vuln","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=\/wp\/v2\/vuln\/21557","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=21557"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=21557"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=21557"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}