CVE-2022-50887

regulator: core: fix unbalanced of node refcount in regulator_dev_lookup()

published December 30, 2025

CVSS
—
EPSS
0%
Percentile
13.9
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.00237 · 13.9th percentile
Published
2025-12-30T12:37Z
EPSS history
Timeline
  • 30 DEC 12:37Z
    regulator: core: fix unbalanced of node refcount in regulator_dev_lookup()
    cvelistv5