ASoC: audio-graph-card: fix refcount leak of cpu_ep in __graph_for_each_link()
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.
02 / AFFECTED SOFTWARE
Affected packages
03 / CONNECTIONS
Connected vulnerabilities
04 / EVIDENCE
Source records
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.
05 / REFERENCES
Further evidence
- https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
- https://git.kernel.org/stable/c/06c9d468c06806dab752eb8e72addbf3792c1023
- https://git.kernel.org/stable/c/49dad92af6892f46851af989ef3aa7cd7316c389
- https://git.kernel.org/stable/c/4cc8431ec77a43ea106d8bde0860c61cfdda1cd0
- https://git.kernel.org/stable/c/85eb5c952b7fe2d2059beaa4a4dd26688b25547b
- https://git.kernel.org/stable/c/8ab2d12c726f0fde0692fa5d81d8019b3dcd62d0
- https://git.kernel.org/stable/c/ed1376f771404917c2ec3ebc617431ec01146134
- https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50572.json
- https://nvd.nist.gov/vuln/detail/CVE-2022-50572