net: usb: kaweth: remove TX queue manipulation in kaweth_set_rx_mode
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 · < fc393af769af845d9985e2845e49553d8f015a64| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
net: usb: kaweth: remove TX queue manipulation in kaweth_set_rx_mode
kaweth_set_rx_mode(), the ndo_set_rx_mode callback, calls netif_stop_queue() and netif_wake_queue(). These are TX queue flow control functions unrelated to RX multicast configuration.
The premature netif_wake_queue() can re-enable TX while tx_urb is still in-flight, leading to a double usb_submit_urb() on the same URB:
kaweth_start_xmit() { netif_stop_queue(); usb_submit_urb(kaweth->tx_urb); }
kaweth_set_rx_mode() { netif_stop_queue(); netif_wake_queue(); // wakes TX queue before URB is done }
kaweth_start_xmit() { netif_stop_queue(); usb_submit_urb(kaweth->tx_urb); // URB submitted while active }
This triggers the WARN in usb_submit_urb():
From the CVE record · Linux
The Linux kernel's kaweth USB network driver can wake its transmit queue while a transmit URB is still in flight. If receive-mode configuration overlaps with transmission, the driver can submit the same URB twice, triggering an “URB submitted while active” warning. The input does not establish whether an attacker can trigger this remotely or locally, or whether authentication or user interaction is needed.
Engineers running Linux systems that use the kaweth USB network driver should check their kernel versions; affected versions are not specified.