CVE-2022-50572
Description
In the Linux kernel, the following vulnerability has been resolved:
ASoC: audio-graph-card: fix refcount leak of cpu_ep in __graph_for_each_link()
The of_get_next_child() returns a node with refcount incremented, and decrements the refcount of prev. So in the error path of the while loop, of_node_put() needs be called for cpu_ep.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
In the Linux kernel, ASoC audio-graph-card has a refcount leak of cpu_ep in __graph_for_each_link(), leading to a memory leak.
Vulnerability
A refcount leak vulnerability exists in the Linux kernel's ASoC audio-graph-card driver. In the function __graph_for_each_link(), the of_get_next_child() call returns a device node with its reference count incremented. However, in the error path of the while loop, of_node_put() is not called for cpu_ep, causing the reference count to remain elevated and the node to never be freed [1][2][3].
Exploitation
This vulnerability can be triggered by a local attacker with the ability to load or manipulate Device Tree overlays that cause the error path to be taken in __graph_for_each_link(). No special privileges are required beyond the ability to trigger the driver's probing with a malformed or missing graph link [1][3].
Impact
An attacker can cause a memory leak in the kernel by repeatedly triggering the refcount leak, potentially exhausting kernel memory and leading to a denial of service (system crash or hang). The leak is small per occurrence but can accumulate over time [1][2].
Mitigation
The vulnerability is fixed by applying the upstream kernel patches referenced in [1], [2], and [3]. Users should update their kernel to a version that includes these commits. No workaround is known.
AI Insight generated on May 19, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.
Affected products
1Patches
6ed1376f7714006c9d468c06885eb5c952b7f49dad92af6894cc8431ec77a8ab2d12c726fVulnerability mechanics
Generated on May 9, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.
References
6- git.kernel.org/stable/c/06c9d468c06806dab752eb8e72addbf3792c1023nvd
- git.kernel.org/stable/c/49dad92af6892f46851af989ef3aa7cd7316c389nvd
- git.kernel.org/stable/c/4cc8431ec77a43ea106d8bde0860c61cfdda1cd0nvd
- git.kernel.org/stable/c/85eb5c952b7fe2d2059beaa4a4dd26688b25547bnvd
- git.kernel.org/stable/c/8ab2d12c726f0fde0692fa5d81d8019b3dcd62d0nvd
- git.kernel.org/stable/c/ed1376f771404917c2ec3ebc617431ec01146134nvd
News mentions
0No linked articles in our index yet.