5.5medium
mtd: maps: Fix refcount leak in of_flash_probe_versatile
- 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: mtd: maps: Fix refcount leak in of_flash_probe_versatile of_find_matching_node_and_match() returns a node pointer with refcount incremented, we should use of_node_put() on it when not need anymore. Add missing of_node_put() to avoid refcount leak.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from b0afd44bc192ff4c0e90a5fc1724350bcfc32b33 before 3c8de6a838b7e0eb392754ac89dd66e698684342, from b0afd44bc192ff4c0e90a5fc1724350bcfc32b33 before 79e57889aa0d92a6d769bad808fb105e7b6ea495, from b0afd44bc192ff4c0e90a5fc1724350bcfc32b33 before 9124d51e01232a91da4034768a2a8d1688472179, from b0afd44bc192ff4c0e90a5fc1724350bcfc32b33 before 52ae2b14f76ef2d490337ddc0037bc37125be7b8, from b0afd44bc192ff4c0e90a5fc1724350bcfc32b33 before 4d67c8f74d804b20febf716ec96e9a475457ec60, from b0afd44bc192ff4c0e90a5fc1724350bcfc32b33 before 5d5ddd8771fa9cabeb247fba5f6ab60d63f3fbce, from b0afd44bc192ff4c0e90a5fc1724350bcfc32b33 before f516fbb63873ee23cba5b7c3d239677c30f13df8, from b0afd44bc192ff4c0e90a5fc1724350bcfc32b33 before 33ec82a6d2b119938f26e5c8040ed5d92378eb54 and 1 more Not affected: before 4.7, from 4.14.291 up to 4.14.*, from 4.19.256 up to 4.19.*, from 5.4.211 up to 5.4.*, from 5.10.137 up to 5.10.*, from 5.15.61 up to 5.15.* | CVE List |
| linux linux_kernel | from 4.7 before 4.14.291, from 4.15 before 4.19.256, from 4.20 before 5.4.211, from 5.5 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: mtd: maps: Fix refcount leak in of_flash_probe_versatile of_find_matching_node_and_match() returns a node pointer with refcount incremented, we should use of_node_put() on it when not need anymore. Add missing of_node_put() to avoid refcount leak.
NVD (es)
En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: mtd: mapas: Se corrige la fuga de recuento de referencias en of_flash_probe_versatile. of_find_matching_node_and_match() devuelve un puntero de nodo con el recuento de referencias incrementado. Debemos usar of_node_put() cuando ya no sea necesario. Se ha añadido la función of_node_put() que falta para evitar la fuga de recuento de referencias.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2022-50161 changed 2026-05-11 | CVE Terms of Use |
| NVD | CVE-2022-50161 changed 2026-06-17 | Public domain |