# CVE-2022-50121: remoteproc: k3-r5: Fix refcount leak in k3_r5_cluster_of_init

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.20%, higher than 10% of CVEs (2026-12-01)
- Published: 2025-06-18T11:02:50.472Z
- Modified: 2026-06-17T05:22:48.200Z
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

remoteproc: k3-r5: Fix refcount leak in k3_r5_cluster_of_init

Every iteration of for_each_available_child_of_node() decrements
the reference count of the previous node.
When breaking early from a for_each_available_child_of_node() loop,
we need to explicitly call of_node_put() on the child node.
Add missing of_node_put() to avoid refcount leak.

(As written by CVE List.)

## Affected

- Linux Linux: from 6dedbd1d544389d6ab1727423348572a11e9df5d before 75358732af9b26acfe3e609943290bcba13330fc; from 6dedbd1d544389d6ab1727423348572a11e9df5d before cf112a52d758092ca3d5ebdad51dd17bda5ba3e5; from 6dedbd1d544389d6ab1727423348572a11e9df5d before 61cd8cd3b6b33c7eae3b45cf783b114f2ae53528; from 6dedbd1d544389d6ab1727423348572a11e9df5d before 3f83c4cf1b78331c23876977aa7b9151aff2f9e1; from 6dedbd1d544389d6ab1727423348572a11e9df5d before fa220c05d282e7479abe08b54e3bdffd06c25e97; 5.10 (not affected: before 5.10; from 5.10.137 up to 5.10.*; from 5.15.61 up to 5.15.*; from 5.18.18 up to 5.18.*; from 5.19.2 up to 5.19.*; from 6.0 up to *)
- linux linux_kernel: from 5.10 before 5.10.137; from 5.11 before 5.15.61; from 5.16 before 5.18.18; from 5.19 before 5.19.2

## References

- <https://git.kernel.org/stable/c/75358732af9b26acfe3e609943290bcba13330fc> (patch)
- <https://git.kernel.org/stable/c/cf112a52d758092ca3d5ebdad51dd17bda5ba3e5> (patch)
- <https://git.kernel.org/stable/c/61cd8cd3b6b33c7eae3b45cf783b114f2ae53528> (patch)
- <https://git.kernel.org/stable/c/3f83c4cf1b78331c23876977aa7b9151aff2f9e1> (patch)
- <https://git.kernel.org/stable/c/fa220c05d282e7479abe08b54e3bdffd06c25e97> (patch)

## Sources

- CVE List: [CVE-2022-50121](https://www.cve.org/CVERecord?id=CVE-2022-50121), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2022-50121](https://nvd.nist.gov/vuln/detail/CVE-2022-50121), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-50121 · Whole record: https://cve.day/CVE-2022-50121.json · Rebuilt by cve.day 2026-11-25T22:58:21.063Z
