5.5medium
remoteproc: k3-r5: Fix refcount leak in k3_r5_cluster_of_init
- Severity
- 5.5medium CVSS:3.1 by NVD
- Exploit likelihood
- 0.20% (higher than 10% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- 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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| 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 * | CVE List |
| 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 | NVD |
What each source says
CVE List
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.
NVD (es)
En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: remoteproc: k3-r5: Se corrige la fuga de recuento de referencias en k3_r5_cluster_of_init. Cada iteración de for_each_available_child_of_node() disminuye el recuento de referencias del nodo anterior. Al interrumpir un bucle for_each_available_child_of_node() antes de tiempo, debemos llamar explícitamente a of_node_put() en el nodo hijo. Añada la falta de of_node_put() para evitar la fuga de recuento de referencias.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2022-50121 changed 2026-05-11 | CVE Terms of Use |
| NVD | CVE-2022-50121 changed 2026-06-17 | Public domain |