Skip to contentSkip to conversation

CVE-2026-80769: HID: rapoo: fix missing hid_is_usb() check

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Sep 4

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

In the Linux kernel, the following vulnerability has been resolved:

HID: rapoo: 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.

Add a dependency on USB_HID for hid_is_usb(), as other HID drivers do; the alternative would be to provide a simple stub implementation on !USB_HID builds.

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-80769 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 7.0 with commit b3b1c68fb726907ea35ac172906705fe62c7fdaf and fixed in 7.1.11 with commit 99ed3febafe0452994620a4d819f595583289bec
	Issue introduced in 7.0 with commit b3b1c68fb726907ea35ac172906705fe62c7fdaf and fixed in 7.2.1 with commit 49b6fd28fbcc0b6457e16e25c7617f63449d4808
	Issue introduced in 7.0 with commit b3b1c68fb726907ea35ac172906705fe62c7fdaf and fixed in 7.3-rc1 with commit b57af2448268c30c25509a832b6ff6dc27176b28

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-80769

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/Kconfig
drivers/hid/hid-rapoo.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/99ed3febafe0452994620a4d819f595583289bec
	https://git.kernel.org/stable/c/49b6fd28fbcc0b6457e16e25c7617f63449d4808
	https://git.kernel.org/stable/c/b57af2448268c30c25509a832b6ff6dc27176b28