CVE-2026-80782

Severity CVSS v4.0:
Pending analysis
Type:
Unavailable / Other
Publication date:
04/09/2026
Last modified:
19/10/2026

Description

In the Linux kernel, the following vulnerability has been resolved:<br /> <br /> HID: magicmouse: do not keep a stale msc-&gt;input if no input is claimed<br /> <br /> magicmouse_input_mapping() caches the first hid_input&amp;#39;s input_dev in<br /> msc-&gt;input while the report descriptor is parsed, and the rest of the<br /> driver treats a non-NULL msc-&gt;input as proof that an input device was<br /> registered.<br /> <br /> That does not hold on the hid-input error path. If hidinput_connect()<br /> fails -- for instance because input_register_device() returns an error --<br /> it unwinds through hidinput_disconnect(), which frees every input_dev it<br /> created, including the one cached in msc-&gt;input.<br /> <br /> The failure does not abort the probe. hid_connect() only skips the claim:<br /> <br /> if ((connect_mask &amp; HID_CONNECT_HIDINPUT) &amp;&amp; !hidinput_connect(hdev,<br /> connect_mask &amp; HID_CONNECT_HIDINPUT_FORCE))<br /> hdev-&gt;claimed |= HID_CLAIMED_INPUT;<br /> <br /> and the "device has no listeners" bailout below it does not fire for this<br /> driver, which sets -&gt;raw_event; on the USB Magic Mouse 2 / Magic Trackpad<br /> 2 paths hidraw and hiddev are claimed as well. hid_hw_start() therefore<br /> returns 0 and magicmouse_probe() continues with msc-&gt;input pointing at<br /> freed memory. Being non-NULL, it passes the "input not registered" check<br /> in probe and the NULL checks in -&gt;raw_event and -&gt;event, so the next<br /> input report dereferences freed memory.<br /> <br /> Clear msc-&gt;input when the HID core did not claim an input device, so the<br /> existing NULL checks cover this case as well.

Impact