xhci: Fix null pointer dereference when host dies
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 11ec7588a10d4bc2e1e385ac565d2166d375fba1 · < a2bc47c43e70cf904b1af49f76d572326c08bca7| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
xhci: Fix null pointer dereference when host dies
Make sure xhci_free_dev() and xhci_kill_endpoint_urbs() do not race and cause null pointer dereference when host suddenly dies.
Usb core may call xhci_free_dev() which frees the xhci->devs[slot_id] virt device at the same time that xhci_kill_endpoint_urbs() tries to loop through all the device's endpoints, checking if there are any cancelled urbs left to give back.
hold the xhci spinlock while freeing the virt device
From the CVE record · Linux
A race between xhci_free_dev() and xhci_kill_endpoint_urbs() can cause a null pointer dereference when an xHCI host suddenly dies. The input does not describe how an attacker could trigger this condition or specify network, authentication, or user-interaction requirements.
Teams running the Linux kernel should check their xHCI deployments; affected versions are not specified.