Skip to contentSkip to conversation

CVE-2026-90197: HID: haptic: don't write an uninitialized value to unhandled usages

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Sep 17

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: haptic: don't write an uninitialized value to unhandled usages

fill_effect_buf() initializes value only for the four haptic usages handled by its switch, but writes it to field->value[] for every usage. An unhandled usage can therefore receive either an uninitialized value or one left over from the previous usage. hid_output_report() then serializes that value into the effect's report buffer.

Skip unhandled usages instead. This also matches switch_mode(), which only updates fields it recognizes.

Found with Clang's -Wconditional-uninitialized.

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

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

	Issue introduced in 6.18 with commit 344ff358495706abc7aac1e0c59a5bb16b350307 and fixed in 6.18.52 with commit 324cc98b71f0d3dee7367ef3c669fd80747e71b6
	Issue introduced in 6.18 with commit 344ff358495706abc7aac1e0c59a5bb16b350307 and fixed in 7.2.6 with commit 2d92c250815cba6bffd64f0125fac7afe4fa6ce0
	Issue introduced in 6.18 with commit 344ff358495706abc7aac1e0c59a5bb16b350307 and fixed in 7.3-rc1 with commit 3efb7f6491526f5012f9ec94769e9ed832feeef8

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

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-haptic.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/324cc98b71f0d3dee7367ef3c669fd80747e71b6
	https://git.kernel.org/stable/c/2d92c250815cba6bffd64f0125fac7afe4fa6ce0
	https://git.kernel.org/stable/c/3efb7f6491526f5012f9ec94769e9ed832feeef8