HID: logitech-hidpp: Fix FF device cleanup on init failure
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ ff21a635dd1a9c6ca378847160897649cdbbfae4 · < dd5be4d9ce2dfc4d4a4527ef7d31d21a78e3cdac| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
HID: logitech-hidpp: Fix FF device cleanup on init failure
hidpp_ff_init() creates the input force-feedback device with input_ff_create(), then allocates the HID++ FF private data, effect ID array, and workqueue.
If any of those allocations fail after input_ff_create() succeeds, the function returns an error without destroying the FF device. Add an unwind path that frees the private allocations made by hidpp_ff_init() and calls input_ff_destroy() for failures after input_ff_create() succeeds.
From the CVE record · Linux
The Linux kernel’s Logitech HID++ force-feedback initialization can leave a force-feedback device allocated if a later allocation fails. The input does not describe how an attacker could trigger this failure or specify network access, authentication, or user-interaction requirements.
Engineers running the Linux kernel should check their versions; the affected versions are not specified.