{"id":33411,"date":"2026-10-06T20:31:57","date_gmt":"2026-10-06T12:31:57","guid":{"rendered":"https:\/\/www.54iter.cn\/?vuln=cve-2026-98342"},"modified":"2026-10-06T20:31:57","modified_gmt":"2026-10-06T12:31:57","slug":"cve-2026-98342","status":"publish","type":"vuln","link":"https:\/\/www.54iter.cn\/?vuln=cve-2026-98342","title":{"rendered":"CVE-2026-98342 &#8211; In the Linux kernel, the following vulnerability has been resolved:\n\ndmaengine: wait for R"},"content":{"rendered":"<p>In the Linux kernel, the following vulnerability has been resolved:<\/p>\n<p>dmaengine: wait for RCU readers before releasing dma_device<\/p>\n<p>dma_issue_pending_all() walks the dma_device_list with<br \/>\nlist_for_each_entry_rcu() under rcu_read_lock(). dma_device_release()<br \/>\nunlinks the device with list_del_rcu() and then calls<br \/>\ndevice-&gt;device_release() (which in many drivers, such as plx_dma.c,<br \/>\ndirectly calls kfree()).<\/p>\n<p>Because there is no grace period between unlinking the device and<br \/>\nfreeing it, concurrent RCU readers in dma_issue_pending_all() can<br \/>\naccess the device after it has been freed.<\/p>\n<p>The lockless walk originally relied on clients holding a dmaengine<br \/>\nreference to pin the provider module, and therefore the device, for as<br \/>\nlong as they might traverse the list. Commit 8ad342a86359 (&#8220;dmaengine:<br \/>\nAdd reference counting to dma_device struct&#8221;) decoupled the dma_device<br \/>\nlifetime from the module reference, so the device can now be released<br \/>\nwhile a reader is still walking the list.<\/p>\n<p>Add synchronize_rcu() before the device is freed, so RCU readers are<br \/>\nguaranteed to have finished. Keep it unconditional: providers that do<br \/>\nnot implement device_release() free the device themselves once<br \/>\ndma_async_device_unregister() returns. This call will delay for a grace<br \/>\nperiod with dma_list_mutex held, which is safe and only teardown path is<br \/>\ndelayed.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In the Linux kernel, the following vulnerability has been resolved:<\/p>\n<p>dmaengine: wait for RCU readers before releasing dma_device<\/p>\n<p>dma_issue_pending_all() walks the dma_device_list with<br \/>\nlist_for_each_e<\/p>\n","protected":false},"template":"","meta":[],"categories":[],"tags":[],"class_list":["post-33411","vuln","type-vuln","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=\/wp\/v2\/vuln\/33411","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=33411"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=33411"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=33411"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}