HID: multitouch: Correct devm device reference for hidinput input_dev name
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ c08d46aa805ba46d501f610c2448d07bea979780 · < 2763732ec1e68910719c75b6b896e11b6d3d622b| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
HID: multitouch: Correct devm device reference for hidinput input_dev name
Reference the HID device rather than the input device for the devm allocation of the input_dev name. Referencing the input_dev would lead to a use-after-free when the input_dev was unregistered and subsequently fires a uevent that depends on the name. At the point of firing the uevent, the name would be freed by devres management.
Use devm_kasprintf to simplify the logic for allocating memory and formatting the input_dev name string.
From the CVE record · Linux
The Linux kernel HID multitouch code can free an input device name too early. A use-after-free can occur if the input device is unregistered and a subsequent uevent depends on that name. The input does not specify how an attacker could trigger this or whether authentication or user interaction is required.
Engineers running Linux kernels with HID multitouch support should check their versions; affected versions are not specified.