{"id":7164,"date":"2026-09-04T18:49:27","date_gmt":"2026-09-04T10:49:27","guid":{"rendered":"https:\/\/www.54iter.cn\/?vuln=cve-2026-72491"},"modified":"2026-09-04T18:49:27","modified_gmt":"2026-09-04T10:49:27","slug":"cve-2026-72491","status":"publish","type":"vuln","link":"https:\/\/www.54iter.cn\/?vuln=cve-2026-72491","title":{"rendered":"CVE-2026-72491 [CRITICAL] &#8211; In the Linux kernel, the following vulnerability has been resolved:\n\nnet\/9p: fix race cond"},"content":{"rendered":"<p>In the Linux kernel, the following vulnerability has been resolved:<\/p>\n<p>net\/9p: fix race condition on rdma-&gt;state in trans_rdma.c<\/p>\n<p>The rdma-&gt;state field is modified without holding req_lock in both<br \/>\nrecv_done() and p9_cm_event_handler(), while rdma_request() accesses<br \/>\nthe same field under the req_lock spinlock. This inconsistent locking<br \/>\ncreates a race condition:<\/p>\n<p>&#8211; recv_done() running in softirq completion context sets<br \/>\n  rdma-&gt;state = P9_RDMA_FLUSHING without acquiring req_lock<\/p>\n<p>&#8211; p9_cm_event_handler() modifies rdma-&gt;state at multiple points<br \/>\n  (ADDR_RESOLVED, ROUTE_RESOLVED, ESTABLISHED, CLOSED) without<br \/>\n  req_lock<\/p>\n<p>&#8211; rdma_request() uses spin_lock_irqsave(&amp;rdma-&gt;req_lock, flags) to<br \/>\n  protect the read-modify-write of rdma-&gt;state<\/p>\n<p>The race can cause lost state transitions: recv_done() or the CM<br \/>\nevent handler could set state to FLUSHING\/CLOSED while rdma_request()<br \/>\nis concurrently checking or modifying state under the lock, leading to<br \/>\nthe FLUSHING transition being silently overwritten by CLOSING. This<br \/>\ncorrupts the connection state machine and can cause use-after-free on<br \/>\nRDMA request objects during teardown.<\/p>\n<p>Fix by adding req_lock protection to all rdma-&gt;state modifications in<br \/>\nrecv_done() and p9_cm_event_handler(), matching the pattern already<br \/>\nused in rdma_request(). Use spin_lock_irqsave\/spin_unlock_irqrestore<br \/>\nin the CM event handler since it can race with recv_done() which runs<br \/>\nin softirq context.<\/p>\n<p>Tested with a kernel module that races two threads (simulating<br \/>\nrdma_request and recv_done\/CM handler) on rdma-&gt;state with proper<br \/>\nlocking: 5.5M+ FLUSHING writes over 27M iterations with 0 lost<br \/>\ntransitions.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In the Linux kernel, the following vulnerability has been resolved:<\/p>\n<p>net\/9p: fix race condition on rdma-&gt;state in trans_rdma.c<\/p>\n<p>The rdma-&gt;state field is modified without holding req_lock in both<br \/>\nrecv_<\/p>\n","protected":false},"template":"","meta":[],"categories":[],"tags":[],"class_list":["post-7164","vuln","type-vuln","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=\/wp\/v2\/vuln\/7164","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=7164"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=7164"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=7164"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}