Input: powermate - fix use-after-free in powermate_config_complete
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 · < 2efe67c581a2a6122b328d4bb6f21b3f36f40d46| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
Input: powermate - fix use-after-free in powermate_config_complete
syzbot has found a use-after-free bug [1] in the powermate driver. This happens when the device is disconnected, which leads to a memory free from the powermate_device struct. When an asynchronous control message completes after the kfree and its callback is invoked, the lock does not exist anymore and hence the bug.
Use usb_kill_urb() on pm->config to cancel any in-progress requests upon device disconnection.
[1] https://syzkaller.appspot.com/bug?extid=0434ac83f907a1dbdd1e
From the CVE record · Linux
The Linux kernel powermate driver has a use-after-free bug when a device is disconnected while an asynchronous control request is in progress. If the request completes after the device structure is freed, its callback accesses a lock that no longer exists. The input does not specify attacker access or user-interaction requirements.
Engineers running Linux kernels with the powermate driver should check their kernel; affected versions are not specified.