usb: xusbatm: don't rely on id table pointer arithmetic
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 733260ff9c45bd4db60f45d17e8560a4a68dff4d · < eb6cd6d3d8abeac5d7e8251b898067184afdad8a| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
usb: xusbatm: don't rely on id table pointer arithmetic
The current code is broken when dynamic ID is involved; in such cases usb_device_id parameter of probe lives on the heap and the pointer arithmetic will get an index that is wildly out of bound. xusbatm initialize the USB device IDs dynamically so it can just use driver_info too.
Even with conversion, xusbatm still cannot support dynamic IDs, so also set no_dynamic_id.
From the CVE record · Linux
The Linux kernel's xusbatm USB driver can calculate an out-of-bounds index when a dynamic USB device ID is involved. The input does not establish whether an attacker can trigger this behavior or whether authentication, local access, or user interaction is required.
Engineers running Linux kernels with the xusbatm driver should check their versions; affected versions are not specified.