net: usb: pegasus: 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 · < ce8101c331956bbd3e20681331dfd22eb7c1c1ea| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
net: usb: pegasus: 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. Instead of keeping a side table for additional information, use driver_info field of the usb_device_id.
The dynamic ID parsing code needs to be updated for this; convert it to just write to the reserved entry for dynamic ID and remove the weird loop.
From the CVE record · Linux
The Linux kernel’s USB Pegasus driver calculates an out-of-bounds index when probing a device through a dynamic ID. The input does not specify whether an attacker can trigger this behavior, what its impact is, or whether it requires network access, authentication, or user interaction.
Engineers running Linux kernels with the USB Pegasus driver should check their kernel version; affected versions are not specified.