Skip to contentSkip to conversation

CVE-2026-99023: power: sequencing: pcie-m2: Fix leaking array from of_regulator_bulk_get_all()

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:

power: sequencing: pcie-m2: Fix leaking array from of_regulator_bulk_get_all()

of_regulator_bulk_get_all() allocates the consumers array and hands it to the caller, who is expected to free it at an appropriate time. pwrseq-pcie-m2.c never did, leading to a memory leak.

Add an explicit kfree() for the consumers array.

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

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

	Issue introduced in 7.0 with commit 52e7b5bd62bab3851f25d8b70ad7eae9e94aba60 and fixed in 7.2.11 with commit 5cd2354ebfbd35bcb88d01fe7d3ee08dcf266eff
	Issue introduced in 7.0 with commit 52e7b5bd62bab3851f25d8b70ad7eae9e94aba60 and fixed in 7.3 with commit 0d6c5794fd633427f0d4ad8b51d94061295649da

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

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/power/sequencing/pwrseq-pcie-m2.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/5cd2354ebfbd35bcb88d01fe7d3ee08dcf266eff
	https://git.kernel.org/stable/c/0d6c5794fd633427f0d4ad8b51d94061295649da