{"id":21563,"date":"2026-09-12T04:31:21","date_gmt":"2026-09-11T20:31:21","guid":{"rendered":"https:\/\/www.54iter.cn\/?vuln=cve-2026-89641"},"modified":"2026-09-12T04:31:21","modified_gmt":"2026-09-11T20:31:21","slug":"cve-2026-89641","status":"publish","type":"vuln","link":"https:\/\/www.54iter.cn\/?vuln=cve-2026-89641","title":{"rendered":"CVE-2026-89641 &#8211; In the Linux kernel, the following vulnerability has been resolved:\n\ncifs: clear tcon afte"},"content":{"rendered":"<p>In the Linux kernel, the following vulnerability has been resolved:<\/p>\n<p>cifs: clear tcon after cifsFileInfo_put() in cifs_file_set_size()<\/p>\n<p>When the else branch of cifs_file_set_size() finds a writable file handle<br \/>\nvia find_writable_file(), it borrows tcon and server from the handle&#8217;s<br \/>\ntlink, attempts the handle-based set_file_size() RPC, and then releases<br \/>\nthe handle with cifsFileInfo_put().<\/p>\n<p>If set_file_size() fails, execution falls through to the path-based<br \/>\nfallback, which reuses the borrowed tcon and server under the<br \/>\n&#8220;if (tcon == NULL)&#8221; guard.  Since tcon is not NULL at that point, the<br \/>\nguard is skipped.  If cifsFileInfo_put() dropped the last reference on a<br \/>\ntlink that was already removed from the tlink tree (TCON_LINK_IN_TREE<br \/>\ncleared, as happens during reconnection or session teardown),<br \/>\ncifs_put_tlink() will have freed tcon; the subsequent set_path_size()<br \/>\ncall is then a use-after-free.<\/p>\n<p>Setting tcon = NULL after cifsFileInfo_put() causes the existing guard<br \/>\nto take the cifs_sb_tlink() path, which acquires a fresh reference for<br \/>\nthe path-based operation or fails cleanly if the session is gone.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In the Linux kernel, the following vulnerability has been resolved:<\/p>\n<p>cifs: clear tcon after cifsFileInfo_put() in cifs_file_set_size()<\/p>\n<p>When the else branch of cifs_file_set_size() finds a writable fi<\/p>\n","protected":false},"template":"","meta":[],"categories":[],"tags":[],"class_list":["post-21563","vuln","type-vuln","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=\/wp\/v2\/vuln\/21563","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=21563"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=21563"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=21563"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}