leds: qcom-lpg: Check for array overflow when selecting the high resolution
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
leds: qcom-lpg: Check for array overflow when selecting the high resolution
When selecting the high resolution values from the array, FIELD_GET() is used to pull from a 3 bit register, yet the array being indexed has only 5 values in it. Odds are the hardware is sane, but just to be safe, properly check before just overflowing and reading random data and then setting up chip values based on that.
From the CVE record · Linux
The Linux kernel's qcom-lpg LED driver can index past a five-value array when selecting high-resolution settings from a three-bit hardware register. This can read unintended data and use it to configure chip values. The input does not specify an attacker path, authentication requirement, or user interaction.
Engineers running Linux kernels with the qcom-lpg LED driver should check their systems; affected versions are not specified.