{"id":21407,"date":"2026-09-12T04:31:08","date_gmt":"2026-09-11T20:31:08","guid":{"rendered":"https:\/\/www.54iter.cn\/?vuln=cve-2026-89485"},"modified":"2026-09-12T04:31:08","modified_gmt":"2026-09-11T20:31:08","slug":"cve-2026-89485","status":"publish","type":"vuln","link":"https:\/\/www.54iter.cn\/?vuln=cve-2026-89485","title":{"rendered":"CVE-2026-89485 &#8211; In the Linux kernel, the following vulnerability has been resolved:\n\nlockd: pin next file"},"content":{"rendered":"<p>In the Linux kernel, the following vulnerability has been resolved:<\/p>\n<p>lockd: pin next file across nlm_inspect_file lock-drop<\/p>\n<p>nlm_traverse_files() pins the current file with f_count++ across<br \/>\na mutex_unlock for nlm_inspect_file(), but nothing pins the saved<br \/>\nnext pointer.  A concurrent nlm_release_file() can kfree the next<br \/>\nfile during the unlock window, and the iterator dereferences freed<br \/>\nmemory on the next loop step.<\/p>\n<p>Pin both current and next before the lock-drop.  Advance by<br \/>\nswapping the pinned cursors at the end of each iteration so next<br \/>\nis always held alive across the unlock.<\/p>\n<p>Always call nlm_file_release() after dropping the iteration pin,<br \/>\nregardless of whether the file matched the predicate.  Use<br \/>\nnlm_file_inuse(), which does a live walk of the inode lock list,<br \/>\nrather than the cached f_locks field, so skipped files that never<br \/>\nran nlm_inspect_file() are evaluated correctly.<\/p>\n<p>Because every file in a hash bucket is now pinned and released,<br \/>\nfiles skipped by the is_failover_file predicate that have no<br \/>\nlocks, blocks, shares, or external references are deleted during<br \/>\ntraversal.  The old code never evaluated skipped files for<br \/>\ncleanup.  The new behavior is intentional: such files are stale<br \/>\nand should not persist in the table.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In the Linux kernel, the following vulnerability has been resolved:<\/p>\n<p>lockd: pin next file across nlm_inspect_file lock-drop<\/p>\n<p>nlm_traverse_files() pins the current file with f_count++ across<br \/>\na mutex_un<\/p>\n","protected":false},"template":"","meta":[],"categories":[],"tags":[],"class_list":["post-21407","vuln","type-vuln","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=\/wp\/v2\/vuln\/21407","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=21407"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=21407"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=21407"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}