HID: uclogic: 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 |
|
≥ cce2dbdf258e6b27b2b100f511531edabb77f427 · < dd613a4e45f8d35f49a63a2064e5308fa5619e29| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
HID: uclogic: 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 uclogic driver can access a freed input-device name when an input device is unregistered and a subsequent uevent uses that name. The input does not specify what an attacker could do with this condition or whether network access, authentication, or user interaction is required.
Engineers running the Linux kernel should check their installations; affected versions are not specified.