HID: hidpp: fix potential UAF in hidpp_connect_event()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
HID: hidpp: fix potential UAF in hidpp_connect_event()
If input_register_device() fails, we call input_free_device(), but keep stale pointer to the old device in hidpp->input, which could potentially lead to UAF. Fix that by resetting it to NULL before returning from hidpp_connect_event().
From the CVE record · Linux
The Linux kernel HID hidpp driver can retain a stale device pointer when input_register_device() fails, potentially causing a use-after-free. The input does not establish how an attacker could trigger this condition or specify access, authentication, or user-interaction requirements.
Engineers running Linux kernels with the HID hidpp driver should check their deployments; affected versions are not specified.