CVE-2022-50887
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2022-50887 is a memory leak vulnerability in the Linux kernel's regulator subsystem, specifically in the regulator_dev_lookup() function within drivers/regulator/core.c. The flaw results from an unbalanced of_node_get()/of_node_put() reference count when of_get_regulator() returns a device tree node obtained via of_parse_phandle() without subsequently calling of_node_put() to release it. The vulnerability affects Linux kernel versions from 3.3 up through multiple stable branches prior to their respective fixes. It was published on December 30, 2025, and carries an estimated CVSS severity of Medium (Feedly, CIRCL Vulnerability Lookup).

Technical details

The root cause is a missing of_node_put() call in of_get_regulator() within the Linux kernel regulator core (CWE-401: Missing Release of Memory after Effective Lifetime). When of_parse_phandle() returns a device tree node, it increments the node's reference count; if the caller does not call of_node_put() after use, the reference count becomes unbalanced (observed as refcount 2 instead of expected 1). This manifests particularly when device tree overlays are applied and destroyed, as the overlay framework detects the leaked reference and reports: 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. The bug is triggered in kernel configurations that use device tree-based regulator lookup, typically on embedded or ARM-based platforms (Feedly, CIRCL Vulnerability Lookup).

Impact

The primary impact is a kernel memory leak in the device tree node reference counting subsystem, which can lead to resource exhaustion over time, particularly on systems that frequently load and unload device tree overlays. This could degrade system stability and availability, potentially causing kernel warnings or system instability on affected embedded Linux platforms. The vulnerability does not directly enable remote code execution or privilege escalation, and its confidentiality and integrity impact is considered low; the main concern is availability on long-running systems with dynamic overlay management (Feedly).

Indicators of compromise

  • Logs: Kernel log messages containing OF: ERROR: memory leak, expected refcount 1 instead of 2, of_node_get()/of_node_put() unbalanced associated with regulator device tree nodes (e.g., /i2c/pmic@XX/regulators/...).
  • Logs: Repeated kernel warnings during device tree overlay attach/detach cycles referencing the regulator subsystem (drivers/regulator/core.c).
  • System Behavior: Gradual increase in kernel memory usage on systems with frequent device tree overlay operations, potentially observable via /proc/meminfo or kernel memory debugging tools such as kmemleak.

Mitigation and workarounds

The Linux kernel stable team has released fixes across multiple stable branches. Patched versions include: 4.9.337, 4.14.303, 4.19.270, 5.4.229, 5.10.163, 5.15.86, 6.0.16, 6.1.2, and 6.2. The fix adds the missing of_node_put() call after the device tree node is used in of_get_regulator(). Users should update to the patched kernel version corresponding to their stable branch. No configuration-based workaround is available; upgrading the kernel is the recommended remediation (Feedly, CIRCL Vulnerability Lookup).

Additional resources


SourceThis report was generated using AI

Related Linux Kernel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-64557NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-rt-selftests-internal
NoNoJul 29, 2026
CVE-2026-64556NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-64k-devel
NoNoJul 29, 2026
CVE-2026-64555NONEN/A
  • Linux Kernel logoLinux Kernel
  • linux-azure-fde-6.14
NoNoJul 27, 2026
CVE-2026-64554NONEN/A
  • Linux Kernel logoLinux Kernel
  • linux-gcp-6.14
NoYesJul 27, 2026
CVE-2026-64553NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-rt-64k-debug-modules-internal
NoYesJul 27, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management