CVE-2026-80773: HID: huawei: fix missing hid_is_usb() check
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
HID: huawei: fix missing hid_is_usb() check
to_usb_interface() can only be used on a hid_device whose parent is really USB; uhid can create devices that identify as being on BUS_USB, but don't actually have a USB parent.
Fix the use of to_usb_interface() without a hid_is_usb() check.
I have verified that it is currently possible to trigger a kernel splat due to this bug in an ASAN build, and that this commit fixes the issue.
The Linux kernel CVE team has assigned CVE-2026-80773 to this issue.
Affected and fixed versions
===========================
Issue introduced in 7.1 with commit e93faaca84b73431ccef029b2c8e902e5be83006 and fixed in 7.1.11 with commit 66805454c01ffefc40d08a962d606cdb73644c5d Issue introduced in 7.1 with commit e93faaca84b73431ccef029b2c8e902e5be83006 and fixed in 7.2.1 with commit 9acc2463991cdb0856fdbd63fd7178102c1ed73d Issue introduced in 7.1 with commit e93faaca84b73431ccef029b2c8e902e5be83006 and fixed in 7.3-rc1 with commit 4cdb6b4b34d7823254f6e1b22faf56c96ac57fb9
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-80773
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
drivers/hid/hid-huawei.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/66805454c01ffefc40d08a962d606cdb73644c5d https://git.kernel.org/stable/c/9acc2463991cdb0856fdbd63fd7178102c1ed73d https://git.kernel.org/stable/c/4cdb6b4b34d7823254f6e1b22faf56c96ac57fb9