HID: elan: Fix potential double free in elan_input_configured
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 9a6a4193d65b853020ef0e66cecdf9e64a863883 · < 8bb1716507ebf12d50bbf181764481de3b6bc7fd| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
HID: elan: Fix potential double free in elan_input_configured
'input' is a managed resource allocated with devm_input_allocate_device(), so there is no need to call input_free_device() explicitly or there will be a double free.
According to the doc of devm_input_allocate_device(): * Managed input devices do not need to be explicitly unregistered or * freed as it will be done automatically when owner device unbinds from * its driver (or binding fails).
From the CVE record · Linux
The Linux kernel’s HID elan driver can double-free a managed input device by freeing it explicitly when driver binding fails or the device unbinds. The input does not establish how an attacker could trigger this condition or whether access or user interaction is required.
Engineers running Linux kernels with the HID elan driver should check their kernel’s status; affected versions are not specified.