Input: appletouch - initialize work before device registration
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 5a6eb676d3bc4d7a6feab200a92437b62ad298da · < 9f329d0d6c91142cf0ad08d23c72dd195db2633c| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
Input: appletouch - initialize work before device registration
Syzbot has reported warning in __flush_work(). This warning is caused by work->func == NULL, which means missing work initialization.
This may happen, since input_dev->close() calls cancel_work_sync(&dev->work), but dev->work initalization happens _after_ input_register_device() call.
So this patch moves dev->work initialization before registering input device
From the CVE record · Linux
The Linux kernel’s appletouch driver can register an input device before initializing its work item. If the device is closed in that interval, canceling the uninitialized work can trigger a warning in __flush_work(). The input does not establish an attacker action, access requirement, or user-interaction condition.
Engineers running Linux kernels with the appletouch driver should check whether their kernel includes the fix; affected versions are not specified.