Description (CNA)
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.
Affected (CNA)
| Vendor / product | Versions |
|---|---|
| Linux / Linux | affected 0fbeae70ee7ce98e18a47337cd1f205dd88589e9 before 1e446e8f8c763be3de7d0362e024cdf46194ffef; affected 0fbeae70ee7ce98e18a47337cd1f205dd88589e9 before 637c11e3d8d43a7ee654591cda8d17c55a9234fa; affected 0fbeae70ee7ce98e18a47337cd1f205dd88589e9 before e2baf8ea13fb4b10bec2c4751aea05c00dabcd0f; affected 0fbeae70ee7ce98e18a47337cd1f205dd88589e9 before 3e1441a4d06d35a314961e40057bd1f0106bbc14; affected 0fbeae70ee7ce98e18a47337cd1f205dd88589e9 before 22cb337370e6539b0418832c6040e9b00c1b74ca; affected 0fbeae70ee7ce98e18a47337cd1f205dd88589e9 before a935b64548fcfe1d5b4dbdd31dddfb0d7019367f; affected 0fbeae70ee7ce98e18a47337cd1f205dd88589e9 before fa11039d6cdff84584a3ef8cc1f5e1b56e045da2 |
| Linux / Linux | affected 5.11; unaffected 0 before 5.11; unaffected 5.15.212 through 5.15.*; unaffected 6.1.178 through 6.1.*; unaffected 6.6.145 through 6.6.*; unaffected 6.12.96 through 6.12.*; unaffected 6.18.39 through 6.18.*; unaffected 7.1.4 through 7.1.*; unaffected 7.2 through * |
CWE
No CWE identifiers supplied.
References
- https://git.kernel.org/stable/c/1e446e8f8c763be3de7d0362e024cdf46194ffef
- https://git.kernel.org/stable/c/637c11e3d8d43a7ee654591cda8d17c55a9234fa
- https://git.kernel.org/stable/c/e2baf8ea13fb4b10bec2c4751aea05c00dabcd0f
- https://git.kernel.org/stable/c/3e1441a4d06d35a314961e40057bd1f0106bbc14
- https://git.kernel.org/stable/c/22cb337370e6539b0418832c6040e9b00c1b74ca
- https://git.kernel.org/stable/c/a935b64548fcfe1d5b4dbdd31dddfb0d7019367f
- https://git.kernel.org/stable/c/fa11039d6cdff84584a3ef8cc1f5e1b56e045da2