Skip to contentSkip to conversation

CVE-2026-99020: regulator: tps6594-regulator: Fix n_linear_ranges for TPS65224 BUCK2-4

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Oct 23

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

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.

The Linux kernel CVE team has assigned CVE-2026-99020 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 6.6.157 with commit 54308f24ce510a3ba1bf2e0ebc8b9c8a577b3c3b and fixed in 6.6.160 with commit 1ea151615a82fd94f25e38b2cc7eeac49112508b
	Issue introduced in 6.10 with commit 00c826525fbae0230f6c3e9879e56d50267deb42 and fixed in 6.12.113 with commit 66b7da589b2ce44a02b8387c6160e9254685f34f
	Issue introduced in 6.10 with commit 00c826525fbae0230f6c3e9879e56d50267deb42 and fixed in 6.18.57 with commit f6fbe9c6b39968a7696b9badef4bc29331a6376a
	Issue introduced in 6.10 with commit 00c826525fbae0230f6c3e9879e56d50267deb42 and fixed in 7.2.11 with commit f3423b56be12208a393274afb9a5e3d67fc58ce3
	Issue introduced in 6.10 with commit 00c826525fbae0230f6c3e9879e56d50267deb42 and fixed in 7.3 with commit 2f15518682c779b1014552cb2ccb4a2052f85f27

Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at

	https://cve.org/CVERecord/?id=CVE-2026-99020

will be updated if fixes are backported, please check that for the most up to date information about this issue.

Affected files
==============

The file(s) affected by this issue are:
drivers/regulator/tps6594-regulator.c

Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:

	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