usbnet: Prevents free active kevent
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ a69e617e533edddf3fa3123149900f36e0a6dc74 · < 2ce1de32e05445d77fc056f6ff8339cfb78a5f84| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
usbnet: Prevents free active kevent
The root cause of this issue are: 1. When probing the usbnet device, executing usbnet_link_change(dev, 0, 0); put the kevent work in global workqueue. However, the kevent has not yet been scheduled when the usbnet device is unregistered. Therefore, executing free_netdev() results in the "free active object (kevent)" error reported here.
2. Another factor is that when calling usbnet_disconnect()->unregister_netdev(), if the usbnet device is up, ndo_stop() is executed to cancel the kevent. However, because the device is not up, ndo_stop() is not executed.
The solution to this problem is to cancel the kevent before executing free_netdev().
From the CVE record · Linux
The Linux kernel's usbnet component can free a device while its kevent work is still active. This can produce a “free active object” error when the device is unregistered during probing; the input does not describe an attacker path, authentication requirement, or user interaction.
Engineers running Linux kernels with usbnet should check their kernel version; affected versions are not specified.