PCI/pwrctrl: generic: Fix leaking array from of_regulator_bulk_get_all()
- State
- Published
- Severity
- Not Scored
- Published
- Nov 30, 2026
- Updated
- Nov 30, 2026
- Reserved
- Sep 25, 2026
Description
In the Linux kernel, the following vulnerability has been resolved:
PCI/pwrctrl: generic: Fix leaking array from of_regulator_bulk_get_all()
of_regulator_bulk_get_all() 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.
| Product | Versions |
|---|---|
| Linux Linux | 75996c92f4de309f855471927e6489f5a354cfd4 to before cd5b5710c736afd1539f5fc54a6a840836812c1d Affected75996c92f4de309f855471927e6489f5a354cfd4 to before a888975330ad83322283823bea78306c0c195aaf Affected75996c92f4de309f855471927e6489f5a354cfd4 to before ee450e3a2d334c7e6383d8a55ad2d53b3822bacc Affected |
| Linux Linux | 6.15 Affectedbefore 6.15 Not Affected6.18.65 through 6.18.* Not Affected7.3.4 through 7.3.* Not Affected7.4-rc1 and later Not Affected |
The record has no CVSS score.
Weaknesses
The record names no weakness.
References
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.