In the Linux kernel, the following vulnerability has been resolved: HID: cougar: reject short special-key reports The HID core invokes raw_event callbacks before validating the report length. cougar_raw_event() reads the key code and action from offsets one and two without checking that those bytes are present. A short report on the special interface can therefore cause an out-of-bounds read. Consume reports that do not contain the action field before accessing the fixed offsets, consistent with the callback's handling of other reports on the special interface. Commit 47669bec44fe ("HID: asus: refactor the two workqueues and init sequence") added the same kind of raw_event length validation to hid-asus.
https://git.kernel.org/stable/c/d618e93e9cf5611867b3a7546e09bedff4b65139
https://git.kernel.org/stable/c/c6c0df8a4b73a0d563c5e64de640ef5ff525fc82
https://git.kernel.org/stable/c/c3165f4353d48f3c42d12e773cbfad1b60d3f47b
https://git.kernel.org/stable/c/b747cf83155509ef4009b6cf9ffbe45a0b0383ae
https://git.kernel.org/stable/c/74b48b876150b09dbddce8dab5b250c19ddd0a59
https://git.kernel.org/stable/c/6ad199ee108ff78ae65d1d309045c220f1d2ad31
https://git.kernel.org/stable/c/5f45c746f5c104c8ad517c6f3342de750c4b1bcd
https://git.kernel.org/stable/c/1997efaca90dbd6211cbd6a53878854ba3ec4cc4