Input: ti_am335x_tsc - fix off-by-one error in wire_order validation
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ bb76dc09ddfc135c6c5e8eb7d3c583bfa8bdd439 · < 40e3042de43ffa0017a8460ff9b4cad7b8c7cb96| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
Input: ti_am335x_tsc - fix off-by-one error in wire_order validation
The current validation 'wire_order[i] > ARRAY_SIZE(config_pins)' allows wire_order[i] to equal ARRAY_SIZE(config_pins), which causes out-of-bounds access when used as index in 'config_pins[wire_order[i]]'.
Since config_pins has 4 elements (indices 0-3), the valid range for wire_order should be 0-3. Fix the off-by-one error by using >= instead of > in the validation check.
From the CVE record · Linux
An off-by-one validation error in the Linux kernel's ti_am335x_tsc input driver permits an out-of-bounds access when wire_order contains 4, an invalid index for the four-element config_pins array. The input does not establish whether an attacker can trigger this condition or specify network, authentication, or user-interaction requirements.
Engineers running the Linux kernel should check whether their kernel includes the affected ti_am335x_tsc validation code; affected versions are not specified.