Input: xpad - fix out-of-bounds access for Share button
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
a7e3ddd1d9a3d0b26465ed01d464e3c05479ebc8| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
Input: xpad - fix out-of-bounds access for Share button
xpadone_process_packet() receives len directly from urb->actual_length and uses it to index the share-button byte at data[len - 18] or data[len - 26]. Since both len and data[0] are under the device's control, a broken controller can send a GIP_CMD_INPUT packet with actual_length < 18 (e.g. 5 bytes) and reach this code path, causing accesses beyond the actual array.
Fix this by calculating the offset and checking bounds against the packet length.
From the CVE record · Linux
The Linux kernel's xpad driver can access data outside a packet when processing the Share button. A broken or malicious controller can trigger this by sending a short, device-controlled input packet; the input does not specify authentication requirements or user interaction.
Engineers running Linux kernels with the xpad driver should check their kernel versions; affected versions are not specified.