CVE-2026-99961: PCI/pwrctrl: generic: Fix leaking array from of_regulator_bulk_get_all()
In the Linux kernel, the following vulnerability has been resolved:
PCI/pwrctrl: generic: Fix leaking array from ofregulatorbulkgetall()
ofregulatorbulkgetall() allocates the consumers array and returns it to the caller, who is expected to free it at an appropriate time. PCI pwrctrl never did, leading to a memory leak.
Add an explicit kfree() for the consumers array.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.65 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.4 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 7.3.4-1 - Compensating control
In PCI/pwrctrl, add an explicit kfree() for the consumers array returned by of_regulator_bulk_get_all().
Event History
Frequently Asked Questions
What systems are exposed to this issue?
Linux kernel systems using the generic PCI power-control path that calls of_regulator_bulk_get_all() are affected. The issue is a kernel memory leak caused by PCI pwrctrl failing to free the returned consumers array.
What must occur for the memory leak to be triggered?
The PCI pwrctrl code must invoke of_regulator_bulk_get_all(). Each such use can leave the allocated consumers array unreleased.
How can I determine whether the fix is present?
Check whether the kernel source for the generic PCI pwrctrl implementation explicitly frees the consumers array with kfree() after its use. The provided stable-kernel references identify commits containing the fix.