Description (CNA)
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.
Affected (CNA)
| Vendor / product | Versions |
|---|---|
| Linux / Linux | affected b00d2ed37617b5f2f091c98acf542fbedefcbf9b before 28a2e047d03721e0517c67ee726eaa6621c30e5f; affected b00d2ed37617b5f2f091c98acf542fbedefcbf9b before 36ce3094dc50598f38fd961b46688cd533940efc; affected b00d2ed37617b5f2f091c98acf542fbedefcbf9b before 438e357b3cc6cd6900df271e4bc567bfe1142281; affected b00d2ed37617b5f2f091c98acf542fbedefcbf9b before f67a24e75d3251ba42538738120b6b659c0dca7d; affected b00d2ed37617b5f2f091c98acf542fbedefcbf9b before d45963a93c1495e9f1338fde91d0ebba8fd22474 |
| Linux / Linux | affected 6.4; unaffected 0 before 6.4; unaffected 6.6.140 through 6.6.*; unaffected 6.12.86 through 6.12.*; unaffected 6.18.27 through 6.18.*; unaffected 7.0.4 through 7.0.*; unaffected 7.1 through * |
CWE
No CWE identifiers supplied.
References
- https://git.kernel.org/stable/c/28a2e047d03721e0517c67ee726eaa6621c30e5f
- https://git.kernel.org/stable/c/36ce3094dc50598f38fd961b46688cd533940efc
- https://git.kernel.org/stable/c/438e357b3cc6cd6900df271e4bc567bfe1142281
- https://git.kernel.org/stable/c/f67a24e75d3251ba42538738120b6b659c0dca7d
- https://git.kernel.org/stable/c/d45963a93c1495e9f1338fde91d0ebba8fd22474