HID: intel-ish-hid: ipc: Fix potential use-after-free in work function
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
HID: intel-ish-hid: ipc: Fix potential use-after-free in work function
When a reset notify IPC message is received, the ISR schedules a work function and passes the ISHTP device to it via a global pointer ishtp_dev. If ish_probe() fails, the devm-managed device resources including ishtp_dev are freed, but the work is not cancelled, causing a use-after-free when the work function tries to access ishtp_dev. Use devm_work_autocancel() instead, so that the work is automatically cancelled if probe fails.
From the CVE record · Linux
The Linux kernel’s intel-ish-hid IPC work function can access a freed device after a reset notification schedules work and ish_probe() fails. The input does not specify how an attacker could trigger these conditions or whether network access, authentication, or user interaction is required.
Engineers running the Linux kernel should check whether their kernel includes the intel-ish-hid IPC fix; affected versions are not specified.