Skip to contentSkip to conversation

CVE-2026-23314: regulator: bq257xx: Fix device node reference leak in bq257xx_reg_dt_parse_gpio()

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Mar 25

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: bq257xx: Fix device node reference leak in bq257xx_reg_dt_parse_gpio()

In bq257xx_reg_dt_parse_gpio(), if fails to get subchild, it returns without calling of_node_put(child), causing the device node reference leak.

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

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

	Issue introduced in 6.18 with commit 981dd162b63578aee34b5c68795e246734b76d70 and fixed in 6.18.17 with commit 93b64bef8cd4074806d981ed1b4c38c3ae0542e3
	Issue introduced in 6.18 with commit 981dd162b63578aee34b5c68795e246734b76d70 and fixed in 6.19.7 with commit aba54a5a113667df9d339f4192650f6bc27e9d1f
	Issue introduced in 6.18 with commit 981dd162b63578aee34b5c68795e246734b76d70 and fixed in 7.0-rc2 with commit 4baaddaa44af01cd4ce239493060738fd0881835

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

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/bq257xx-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/93b64bef8cd4074806d981ed1b4c38c3ae0542e3
	https://git.kernel.org/stable/c/aba54a5a113667df9d339f4192650f6bc27e9d1f
	https://git.kernel.org/stable/c/4baaddaa44af01cd4ce239493060738fd0881835