Skip to contentSkip to conversation

CVE-2026-93273: regulator: tps6594: Fix device node reference leaks in multiphase loop

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Sep 24

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: Fix device node reference leaks in multiphase loop

In tps6594_regulator_probe(), the multi-phase configuration loop calls of_find_node_by_name() to find buck nodes by name, and of_get_parent() twice to navigate to the PMIC parent node. None of the acquired node references (np, intermediate parent, np_pmic_parent) are ever released via of_node_put(), causing a reference leak on every loop iteration.

Additionally, of_find_node_by_name() can return NULL, but the result was immediately passed to of_node_full_name() and of_get_parent() without a NULL check, which could lead to a NULL pointer dereference.

Fix this by:
- Adding a NULL check for np after of_find_node_by_name()
- Storing the intermediate parent node in a local variable np_parent
- Calling of_node_put() on np, np_parent and np_pmic_parent at the end of each loop iteration

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

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

	Issue introduced in 6.5 with commit f17ccc5deb4d024bb52fd3433471e77ab7ae9ad8 and fixed in 6.6.157 with commit 28f70e0aa767a8f022c70ed75ecef227dc668121
	Issue introduced in 6.5 with commit f17ccc5deb4d024bb52fd3433471e77ab7ae9ad8 and fixed in 6.12.110 with commit 4a672bff99f6b58dde419fd12b3a53da137f032d
	Issue introduced in 6.5 with commit f17ccc5deb4d024bb52fd3433471e77ab7ae9ad8 and fixed in 6.18.52 with commit 68ce4f8223b78f8616ec7f4a02c38988eae627d2
	Issue introduced in 6.5 with commit f17ccc5deb4d024bb52fd3433471e77ab7ae9ad8 and fixed in 7.2.6 with commit fceac25487b21d6db940d2aed368e465d89cd1f4
	Issue introduced in 6.5 with commit f17ccc5deb4d024bb52fd3433471e77ab7ae9ad8 and fixed in 7.3-rc1 with commit 7fd28093b3effc4f92566466df364622830ec608

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-93273

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/28f70e0aa767a8f022c70ed75ecef227dc668121
	https://git.kernel.org/stable/c/4a672bff99f6b58dde419fd12b3a53da137f032d
	https://git.kernel.org/stable/c/68ce4f8223b78f8616ec7f4a02c38988eae627d2
	https://git.kernel.org/stable/c/fceac25487b21d6db940d2aed368e465d89cd1f4
	https://git.kernel.org/stable/c/7fd28093b3effc4f92566466df364622830ec608