Linux kernel memory leak in PCIe M.2 power sequencing
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel's PCIe M.2 power-sequencing code fails to free an array allocated by of_regulator_bulk_get_all(), causing a memory leak. The input does not describe an attacker action, access requirements, or user interaction.
Engineers running Linux kernels with the affected PCIe M.2 power-sequencing code should check their versions; no affected versions are specified.