usb: fix UAF when probe runs concurrent to dyn ID removal
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 0c7a2b72746a96f999fd2728520d03d94879be69 · < ef8154d8b52d60338c1fd8d793cd8e891c604c14| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
usb: fix UAF when probe runs concurrent to dyn ID removal
Dynamic IDs are only guaranteed to be valid when usb_dynids_lock is held, as remove_id_store can free the node. Thus, make a copy in usb_probe_interface. Clarify the documentation that the id parameter is only valid during the probe.
USB serial has the same pattern, but it does not need fixing as the IDs cannot be removed via sysfs.
From the CVE record · Linux
The Linux kernel can use a freed dynamic USB ID if USB interface probing runs concurrently with removal of that ID. The input does not establish whether an attacker can trigger this condition or whether authentication or user interaction is required.
Engineers running the Linux kernel should check their affected versions; no version range was provided.