CVE-2026-100028: hwmon: (corsair-cpro) Make wait_input_report_lock IRQ safe
In the Linux kernel, the following vulnerability has been resolved:
hwmon: (corsair-cpro) Make waitinputreportlock IRQ safe
ccprawevent() is the HID ->rawevent() callback and takes waitinputreportlock with a plain spinlock(). This callback can run in very different contexts depending on the transport: from process context (e.g. uhid, via a write() to /dev/uhid) with softirqs and interrupts enabled, and from URB completion, which is softirq context for HCDs using HCDBH and hard interrupt context for HCDs that do not (e.g. OHCI, UHCI).
Taking the lock from process context with softirqs enabled while the same lock is also taken from softirq context can deadlock if the softirq interrupts the lock holder on the same CPU. Lockdep reports:
WARNING: inconsistent lock state inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. ... spinlock include/linux/spinlock.h:347 [inline] ccprawevent+0x51/0x110 drivers/hwmon/corsair-cpro.c:161 hidinputreport+0x41c/0x580 drivers/hid/hid-core.c:2175 hidirqin+0x492/0x710 drivers/hid/usbhid/hid-core.c:287 usbhcdgivebackurb+0x378/0x540 drivers/usb/core/hcd.c:1657 dummytimer+0xa91/0x4cc0 drivers/usb/gadget/udc/dummyhcd.c:2023
For the same reason, the spinlockbh() in sendusbcmd() is not sufficient when ccprawevent() is called from hard interrupt context.
Use spinlockirqsave() in ccprawevent(), since it may be called with interrupts already disabled, and spinlockirq() in sendusbcmd(), which always runs in process context.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Configuration
Make wait_input_report_lock IRQ-safe by using spin_lock_irqsave() in ccp_raw_event() and spin_lock_irq() in send_usb_cmd().
Linux kernel hwmon (corsair-cpro) wait_input_report_lock locking = spin_lock_irqsave() in ccp_raw_event(); spin_lock_irq() in send_usb_cmd()