regulator: scmi: fix of_node refcount leak in scmi_regulator_probe()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 0fbeae70ee7ce98e18a47337cd1f205dd88589e9 · < a935b64548fcfe1d5b4dbdd31dddfb0d7019367f| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
regulator: scmi: fix of_node refcount leak in scmi_regulator_probe()
scmi_regulator_probe() calls of_find_node_by_name() which takes a reference on the returned device node. On the error path where process_scmi_regulator_of_node() fails, the function returns without calling of_node_put() on the child node, leaking the reference.
Add of_node_put(np) on the error path to properly release the reference.
From the CVE record · Linux
The Linux kernel's SCMI regulator probe leaks a device-node reference if processing that node fails. The input does not describe how an attacker could trigger this error or specify access, authentication, or user-interaction requirements.
Engineers running Linux kernels with the SCMI regulator component should check their versions; affected versions are not specified.