usb: core: Add lock to usb_wakeup_notification()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 4ee823b83bc9851743fab756c76b27d6a1e2472b · < d80b946804674069db7ce6657319a71cf8eeaa5a| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
usb: core: Add lock to usb_wakeup_notification()
Add a spin lock to usb_wakeup notification to prevent a race condition with dereferencing freed memory. This could be hit by the xHCI driver as it calls this function from an IRQ and could race with the hub_disconnect() function, which properly grabs this lock to protect the state of the device.
From the CVE record · Linux
The Linux kernel USB core has a race in usb_wakeup_notification() that can dereference freed memory. It can occur when the xHCI driver calls the function from an interrupt while hub_disconnect() is running. The input does not establish whether an attacker can trigger the race or what access or interaction that would require.
Engineers running Linux kernels with the affected USB core and xHCI driver should check their kernel version; affected versions are not specified.