{"id":14990,"date":"2026-09-04T19:02:21","date_gmt":"2026-09-04T11:02:21","guid":{"rendered":"https:\/\/www.54iter.cn\/?vuln=cve-2026-63978"},"modified":"2026-09-04T19:02:21","modified_gmt":"2026-09-04T11:02:21","slug":"cve-2026-63978","status":"publish","type":"vuln","link":"https:\/\/www.54iter.cn\/?vuln=cve-2026-63978","title":{"rendered":"CVE-2026-63978 [CRITICAL] &#8211; In the Linux kernel, the following vulnerability has been resolved:\n\nnet\/handshake: Drain"},"content":{"rendered":"<p>In the Linux kernel, the following vulnerability has been resolved:<\/p>\n<p>net\/handshake: Drain pending requests at net namespace exit<\/p>\n<p>The arguments to list_splice_init() in handshake_net_exit() are<br \/>\nreversed. The call moves the local empty &#8220;requests&#8221; list onto<br \/>\nhn-&gt;hn_requests, leaving the local list empty, so the subsequent<br \/>\ndrain loop runs zero iterations. Pending handshake requests that<br \/>\nhad not yet been accepted are not torn down when the net namespace<br \/>\nis destroyed; each one keeps a reference on a socket file and on<br \/>\nthe handshake_req allocation.<\/p>\n<p>Pass the source and destination in the documented order<br \/>\n(list_splice_init(list, head) moves list onto head) so the pending<br \/>\nlist is transferred to the local scratch list and drained through<br \/>\nhandshake_complete().<\/p>\n<p>Fixing the splice direction exposes a list-corruption race. After<br \/>\nthe splice each req-&gt;hr_list still has non-empty link pointers,<br \/>\nthreading the stack-local scratch list rather than hn_requests.<br \/>\nA concurrent handshake_req_cancel() &#8212; for example, from sunrpc&#8217;s<br \/>\nTLS timeout on a kernel socket whose netns reference was not<br \/>\ntaken &#8212; finds the request through the rhashtable, calls<br \/>\nremove_pending(), and sees !list_empty(&amp;req-&gt;hr_list).<br \/>\n__remove_pending_locked() then list_del_init()s an entry off the<br \/>\nscratch list while the drain iterates, corrupting it. The same<br \/>\ncall arriving after the drain loop has run list_del() on an<br \/>\nentry hits LIST_POISON instead.<\/p>\n<p>Have remove_pending() check HANDSHAKE_F_NET_DRAINING under<br \/>\nhn_lock and report not-found when drain is in progress. The<br \/>\ndrain has already taken ownership; handshake_complete()&#8217;s existing<br \/>\ntest_and_set on HANDSHAKE_F_REQ_COMPLETED still arbitrates<br \/>\nbetween drain and cancel for who calls the consumer&#8217;s hp_done. Use<br \/>\nlist_del_init() rather than list_del() in the drain so req-&gt;hr_list<br \/>\ndoes not carry LIST_POISON after drain releases the entry.<\/p>\n<p>The DRAINING guard in remove_pending() makes cancel return false,<br \/>\nbut cancel still falls through to test_and_set_bit on<br \/>\nHANDSHAKE_F_REQ_COMPLETED and drops the request&#8217;s hr_file reference.<br \/>\nWithout another pin, if that is the last reference, sk_destruct frees<br \/>\nthe request while it is still linked on the drain loop&#8217;s local list.<br \/>\nPin each request&#8217;s hr_file under hn_lock before releasing the list,<br \/>\nand drop that drain pin after the loop finishes with the request.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In the Linux kernel, the following vulnerability has been resolved:<\/p>\n<p>net\/handshake: Drain pending requests at net namespace exit<\/p>\n<p>The arguments to list_splice_init() in handshake_net_exit() are<br \/>\nrevers<\/p>\n","protected":false},"template":"","meta":[],"categories":[],"tags":[],"class_list":["post-14990","vuln","type-vuln","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=\/wp\/v2\/vuln\/14990","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=14990"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=14990"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=14990"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}