{"id":"CVE-2022-50161","aliases":["CVE-2022-50161"],"related":[],"kind":"vulnerability","state":"published","title":"mtd: maps: Fix refcount leak in of_flash_probe_versatile","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nmtd: maps: Fix refcount leak in of_flash_probe_versatile\n\nof_find_matching_node_and_match() returns a node pointer with refcount\nincremented, we should use of_node_put() on it when not need anymore.\nAdd missing of_node_put() to avoid refcount leak.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nmtd: maps: Fix refcount leak in of_flash_probe_versatile\n\nof_find_matching_node_and_match() returns a node pointer with refcount\nincremented, we should use of_node_put() on it when not need anymore.\nAdd missing of_node_put() to avoid refcount leak.","source":"cvelist"},{"lang":"es","text":"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.","source":"nvd"}],"published":"2025-06-18T11:03:17.091Z","modified":"2026-06-17T05:22:53.003Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"b0afd44bc192ff4c0e90a5fc1724350bcfc32b33","fixed":"3c8de6a838b7e0eb392754ac89dd66e698684342","status":"affected"},{"type":"git","introduced":"b0afd44bc192ff4c0e90a5fc1724350bcfc32b33","fixed":"79e57889aa0d92a6d769bad808fb105e7b6ea495","status":"affected"},{"type":"git","introduced":"b0afd44bc192ff4c0e90a5fc1724350bcfc32b33","fixed":"9124d51e01232a91da4034768a2a8d1688472179","status":"affected"},{"type":"git","introduced":"b0afd44bc192ff4c0e90a5fc1724350bcfc32b33","fixed":"52ae2b14f76ef2d490337ddc0037bc37125be7b8","status":"affected"},{"type":"git","introduced":"b0afd44bc192ff4c0e90a5fc1724350bcfc32b33","fixed":"4d67c8f74d804b20febf716ec96e9a475457ec60","status":"affected"},{"type":"git","introduced":"b0afd44bc192ff4c0e90a5fc1724350bcfc32b33","fixed":"5d5ddd8771fa9cabeb247fba5f6ab60d63f3fbce","status":"affected"},{"type":"git","introduced":"b0afd44bc192ff4c0e90a5fc1724350bcfc32b33","fixed":"f516fbb63873ee23cba5b7c3d239677c30f13df8","status":"affected"},{"type":"git","introduced":"b0afd44bc192ff4c0e90a5fc1724350bcfc32b33","fixed":"33ec82a6d2b119938f26e5c8040ed5d92378eb54","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.7","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.7","status":"unaffected"},{"type":"semver","introduced":"4.14.291","lastAffected":"4.14.*","status":"unaffected"},{"type":"semver","introduced":"4.19.256","lastAffected":"4.19.*","status":"unaffected"},{"type":"semver","introduced":"5.4.211","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.137","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.61","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"5.18.18","lastAffected":"5.18.*","status":"unaffected"},{"type":"semver","introduced":"5.19.2","lastAffected":"5.19.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.0","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"4.7","fixed":"4.14.291"},{"status":"affected","introduced":"4.15","fixed":"4.19.256"},{"status":"affected","introduced":"4.20","fixed":"5.4.211"},{"status":"affected","introduced":"5.5","fixed":"5.10.137"},{"status":"affected","introduced":"5.11","fixed":"5.15.61"},{"status":"affected","introduced":"5.16","fixed":"5.18.18"},{"status":"affected","introduced":"5.19","fixed":"5.19.2"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/3c8de6a838b7e0eb392754ac89dd66e698684342","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/79e57889aa0d92a6d769bad808fb105e7b6ea495","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/9124d51e01232a91da4034768a2a8d1688472179","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/52ae2b14f76ef2d490337ddc0037bc37125be7b8","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/4d67c8f74d804b20febf716ec96e9a475457ec60","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/5d5ddd8771fa9cabeb247fba5f6ab60d63f3fbce","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f516fbb63873ee23cba5b7c3d239677c30f13df8","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/33ec82a6d2b119938f26e5c8040ed5d92378eb54","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-50161","url":"https://www.cve.org/CVERecord?id=CVE-2022-50161","licence":"CVE Terms of Use","modified":"2026-05-11T19:13:59.245Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-50161","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50161","licence":"Public domain","modified":"2026-06-17T05:22:53.003Z"}],"updatedAt":"2026-11-25T22:58:21.081Z","epss":{"score":0.00202,"percentile":0.10759,"date":"2026-12-01T12:00:22.000Z"}}