CVE-2026-43049: HID: logitech-hidpp: Prevent use-after-free on force feedback initialisation failure
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
HID: logitech-hidpp: Prevent use-after-free on force feedback initialisation failure
Presently, if the force feedback initialisation fails when probing the Logitech G920 Driving Force Racing Wheel for Xbox One, an error number will be returned and propagated before the userspace infrastructure (sysfs and /dev/input) has been torn down. If userspace ignores the errors and continues to use its references to these dangling entities, a UAF will promptly follow.
We have 2 options; continue to return the error, but ensure that all of the infrastructure is torn down accordingly or continue to treat this condition as a warning by emitting the message but returning success. It is thought that the original author's intention was to emit the warning but keep the device functional, less the force feedback feature, so let's go with that.
The Linux kernel CVE team has assigned CVE-2026-43049 to this issue.
Affected and fixed versions
===========================
Fixed in 6.12.81 with commit 772f99cc8d6e5d95613bce93c9624e154c1abe88 Fixed in 6.18.22 with commit b846fb0a73e99174f08238e083e284c0463a2102 Fixed in 6.19.12 with commit 9a793ac19eb84f44ed759c0fce80cf29bc2a2453 Fixed in 7.0 with commit f7a4c78bfeb320299c1b641500fe7761eadbd101
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-43049
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-logitech-hidpp.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/772f99cc8d6e5d95613bce93c9624e154c1abe88 https://git.kernel.org/stable/c/b846fb0a73e99174f08238e083e284c0463a2102 https://git.kernel.org/stable/c/9a793ac19eb84f44ed759c0fce80cf29bc2a2453 https://git.kernel.org/stable/c/f7a4c78bfeb320299c1b641500fe7761eadbd101