{"id":17286,"date":"2026-09-05T02:30:57","date_gmt":"2026-09-04T18:30:57","guid":{"rendered":"https:\/\/www.54iter.cn\/?vuln=cve-2026-80782"},"modified":"2026-09-05T02:30:57","modified_gmt":"2026-09-04T18:30:57","slug":"cve-2026-80782","status":"publish","type":"vuln","link":"https:\/\/www.54iter.cn\/?vuln=cve-2026-80782","title":{"rendered":"CVE-2026-80782 &#8211; In the Linux kernel, the following vulnerability has been resolved:\n\nHID: magicmouse: do n"},"content":{"rendered":"<p>In the Linux kernel, the following vulnerability has been resolved:<\/p>\n<p>HID: magicmouse: do not keep a stale msc-&gt;input if no input is claimed<\/p>\n<p>magicmouse_input_mapping() caches the first hid_input&#8217;s input_dev in<br \/>\nmsc-&gt;input while the report descriptor is parsed, and the rest of the<br \/>\ndriver treats a non-NULL msc-&gt;input as proof that an input device was<br \/>\nregistered.<\/p>\n<p>That does not hold on the hid-input error path. If hidinput_connect()<br \/>\nfails &#8212; for instance because input_register_device() returns an error &#8212;<br \/>\nit unwinds through hidinput_disconnect(), which frees every input_dev it<br \/>\ncreated, including the one cached in msc-&gt;input.<\/p>\n<p>The failure does not abort the probe. hid_connect() only skips the claim:<\/p>\n<p>\tif ((connect_mask &amp; HID_CONNECT_HIDINPUT) &amp;&amp; !hidinput_connect(hdev,<br \/>\n\t\t\t\tconnect_mask &amp; HID_CONNECT_HIDINPUT_FORCE))<br \/>\n\t\thdev-&gt;claimed |= HID_CLAIMED_INPUT;<\/p>\n<p>and the &#8220;device has no listeners&#8221; bailout below it does not fire for this<br \/>\ndriver, which sets -&gt;raw_event; on the USB Magic Mouse 2 \/ Magic Trackpad<br \/>\n2 paths hidraw and hiddev are claimed as well. hid_hw_start() therefore<br \/>\nreturns 0 and magicmouse_probe() continues with msc-&gt;input pointing at<br \/>\nfreed memory. Being non-NULL, it passes the &#8220;input not registered&#8221; check<br \/>\nin probe and the NULL checks in -&gt;raw_event and -&gt;event, so the next<br \/>\ninput report dereferences freed memory.<\/p>\n<p>Clear msc-&gt;input when the HID core did not claim an input device, so the<br \/>\nexisting NULL checks cover this case as well.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In the Linux kernel, the following vulnerability has been resolved:<\/p>\n<p>HID: magicmouse: do not keep a stale msc-&gt;input if no input is claimed<\/p>\n<p>magicmouse_input_mapping() caches the first hid_input&#8217;s inp<\/p>\n","protected":false},"template":"","meta":[],"categories":[],"tags":[],"class_list":["post-17286","vuln","type-vuln","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=\/wp\/v2\/vuln\/17286","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=17286"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=17286"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=17286"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}