virtio_input: reset device if input_register_device() fails
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 271c865161c57cfabca45b93eaa712b19da365bc · < 81489b32a21c9360f8750d1fb600155d27452e19| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
virtio_input: reset device if input_register_device() fails
Probe marks the device DRIVER_OK with virtio_device_ready() before calling input_register_device(). If registration fails, the error path cleared vi->ready and called del_vqs() while the device was still live, so the device could keep DMA to queues that were already torn down.
Match remove/freeze: call virtio_reset_device() on that path before tearing down the virtqueues.
From the CVE record · Linux
The Linux kernel's virtio_input driver could tear down virtqueues while the device was still live if input_register_device() failed, allowing the device to continue DMA to those queues. The input does not specify whether an attacker can trigger this failure or whether network access, authentication, or user interaction is required.
Engineers running Linux kernels with virtio_input should check their versions against the vendor advisory; affected versions are not specified.