{"id":21660,"date":"2026-09-12T04:31:29","date_gmt":"2026-09-11T20:31:29","guid":{"rendered":"https:\/\/www.54iter.cn\/?vuln=cve-2026-89738"},"modified":"2026-09-12T04:31:29","modified_gmt":"2026-09-11T20:31:29","slug":"cve-2026-89738","status":"publish","type":"vuln","link":"https:\/\/www.54iter.cn\/?vuln=cve-2026-89738","title":{"rendered":"CVE-2026-89738 &#8211; In the Linux kernel, the following vulnerability has been resolved:\n\nusb: gadget: at91_udc"},"content":{"rendered":"<p>In the Linux kernel, the following vulnerability has been resolved:<\/p>\n<p>usb: gadget: at91_udc: drain polled-VBUS timer\/work before udc is freed<\/p>\n<p>In polled-VBUS mode (board.vbus_pin &amp;&amp; board.vbus_polled), probe arms a<br \/>\nself-restarting cycle: at91_vbus_timer() schedules vbus_timer_work, and<br \/>\nat91_vbus_timer_work() calls at91_vbus_update() and re-arms the timer via<br \/>\nmod_timer(). Both recover the same udc through container_of and dereference<br \/>\nit on every iteration.<\/p>\n<p>Neither teardown path cancels this cycle. udc is devm-allocated, so it is<br \/>\nfreed after at91udc_remove() returns, and is likewise freed when probe<br \/>\nfails and devres runs. A timer callback or work item that is pending or<br \/>\nrunning at either point dereferences the freed udc.<\/p>\n<p>Add at91_udc_shutdown_vbus_timer() and call it from at91udc_remove() and<br \/>\nfrom the usb_add_gadget_udc() failure path in probe; the remaining probe<br \/>\nerror paths fail before the timer is armed. timer_shutdown_sync() waits<br \/>\nfor a running callback and clears timer-&gt;function, which makes the work<br \/>\nhandler&#8217;s mod_timer() a permanent no-op; cancel_work_sync() then drains<br \/>\nany pending or running work whose re-arm attempt now does nothing. The<br \/>\ntimer must be shut down first, since cancelling the work alone would let<br \/>\nthe timer re-queue it. The guard mirrors probe: in IRQ mode the timer and<br \/>\nwork_struct are never initialized.<\/p>\n<p>This does not require a fault; a normal driver unbind can interleave with<br \/>\nan already queued work item.<\/p>\n<p>This issue was found by an in-house static analysis tool.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In the Linux kernel, the following vulnerability has been resolved:<\/p>\n<p>usb: gadget: at91_udc: drain polled-VBUS timer\/work before udc is freed<\/p>\n<p>In polled-VBUS mode (board.vbus_pin &amp;&amp; board.vbus_polled),<\/p>\n","protected":false},"template":"","meta":[],"categories":[],"tags":[],"class_list":["post-21660","vuln","type-vuln","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=\/wp\/v2\/vuln\/21660","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=21660"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=21660"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=21660"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}