Skip to contentSkip to conversation

CVE-2026-98500: HID: hid-oxp: use cancel_delayed_work_sync() in remove

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Oct 18

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: hid-oxp: use cancel_delayed_work_sync() in remove

oxp_hid_remove() uses cancel_delayed_work() for all three delayed work items. cancel_delayed_work() only dequeues a pending work item without waiting for a currently executing callback to finish. If any of the work callbacks (oxp_rgb_queue_fn, oxp_btn_queue_fn, oxp_mcu_init_fn) is running at the time of removal, the callback continues executing concurrently with hid_hw_close() and hid_hw_stop(), accessing the HID device after it has been closed and stopped.

Use cancel_delayed_work_sync() instead to ensure that any in-progress work callback completes before device teardown proceeds.

The Linux kernel CVE team has assigned CVE-2026-98500 to this issue.

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

	Issue introduced in 7.2 with commit 84910c459d65ab3a1aeac7f936169fb71334dd46 and fixed in 7.2.9 with commit eed737d89fa368251018a62e1d698958ef7dc635
	Issue introduced in 7.2 with commit 84910c459d65ab3a1aeac7f936169fb71334dd46 and fixed in 7.3-rc5 with commit abd24922c2a9797d6184be0561dd85e7bcdfd091

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

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-oxp.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/eed737d89fa368251018a62e1d698958ef7dc635
	https://git.kernel.org/stable/c/abd24922c2a9797d6184be0561dd85e7bcdfd091