regulator: core: fix unbalanced of node refcount in regulator_dev_lookup()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 69511a452e6dc6b74fe4f3671a51b1b44b9c57e3 · < cda1895f3b7f324ece1614308a815a3994983b97| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
regulator: core: fix unbalanced of node refcount in regulator_dev_lookup()
I got the the following report:
OF: ERROR: memory leak, expected refcount 1 instead of 2, of_node_get()/of_node_put() unbalanced - destroy cset entry: attach overlay node /i2c/pmic@62/regulators/exten
In of_get_regulator(), the node is returned from of_parse_phandle() with refcount incremented, after using it, of_node_put() need be called.
From the CVE record · Linux
The Linux kernel regulator core does not release a device-tree node reference after using it, causing an unbalanced reference count and a reported memory leak. The input does not describe an attacker action or specify access, authentication, or user-interaction conditions.
Engineers running Linux kernels with the affected regulator code should check their versions; the input does not identify affected versions.