Input: focaltech - fix array out-of-bounds in focaltech_process_rel_packet
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 05be1d079ec0b3691783e4384b1ada82149ff7d2 · < 83c265bfc084d77e2171d4b67362150ab38c935b| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
Input: focaltech - fix array out-of-bounds in focaltech_process_rel_packet
Make finger2 (and also finger1) unsigned, so that if the finger index in the packet is 0 then subtracting 1 creates an array index which overflows above the existing check for FOC_MAX_FINGERS, as the existing comment says it should, instead of writing to state->fingers[-1].
From the CVE record · Linux
The Linux kernel's focaltech input driver can write outside the finger-state array when processing a packet with a finger index of zero. The input does not specify how an attacker could supply such a packet or whether authentication or user interaction is required.
Engineers running Linux kernels with the focaltech input driver should check whether their kernel includes the fix; affected versions are not specified.