Description
In the Linux kernel, the following vulnerability has been resolved: regulator: tps6594-regulator: Fix n_linear_ranges for TPS65224 BUCK2-4 The TPS65224 BUCK2, BUCK3 and BUCK4 descriptors pass 4 as n_linear_ranges, but tps65224_bucks_2_3_4_ranges[] only has two entries, covering selectors 0x00-0x45. The linear range helpers loop over n_linear_ranges entries, so any lookup of a selector above 0x45 reads past the end of the array and treats whatever follows it as two more ranges. This happens on the normal registration path when the core checks the voltage constraints against every selector. TPS652G1 uses the same descriptors and is affected too. Use ARRAY_SIZE() so the count always matches the table.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
54308f24ce510a3ba1bf2e0ebc8b9c8a577b3c3b to < 1ea151615a82fd94f25e38b2cc7eeac49112508baffected00c826525fbae0230f6c3e9879e56d50267deb42 to < 66b7da589b2ce44a02b8387c6160e9254685f34faffected00c826525fbae0230f6c3e9879e56d50267deb42 to < f6fbe9c6b39968a7696b9badef4bc29331a6376aaffected00c826525fbae0230f6c3e9879e56d50267deb42 to < f3423b56be12208a393274afb9a5e3d67fc58ce3affected00c826525fbae0230f6c3e9879e56d50267deb42 to < 2f15518682c779b1014552cb2ccb4a2052f85f27affected6.6.157 to < 6.6.160affected
Linux Linux
Default version status: affected
6.10affected0 to < 6.10unaffected6.6.160 to ≤ 6.6.*unaffected6.12.113 to ≤ 6.12.*unaffected6.18.57 to ≤ 6.18.*unaffected7.2.11 to ≤ 7.2.*unaffected7.3 to ≤ *unaffected
References
- https://git.kernel.org/stable/c/1ea151615a82fd94f25e38b2cc7eeac49112508b ↗
- https://git.kernel.org/stable/c/66b7da589b2ce44a02b8387c6160e9254685f34f ↗
- https://git.kernel.org/stable/c/f6fbe9c6b39968a7696b9badef4bc29331a6376a ↗
- https://git.kernel.org/stable/c/f3423b56be12208a393274afb9a5e3d67fc58ce3 ↗
- https://git.kernel.org/stable/c/2f15518682c779b1014552cb2ccb4a2052f85f27 ↗