{"id":"CVE-2022-50160","aliases":["CVE-2022-50160"],"related":[],"kind":"vulnerability","state":"published","title":"mtd: maps: Fix refcount leak in ap_flash_init","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nmtd: maps: Fix refcount leak in ap_flash_init\n\nof_find_matching_node() 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 ap_flash_init\n\nof_find_matching_node() 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 ap_flash_init. of_find_matching_node() 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:16.447Z","modified":"2026-06-17T05:22:52.873Z","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":"995fb2874bb5696357846a91e59181c600e6aac8","status":"affected"},{"type":"git","introduced":"b0afd44bc192ff4c0e90a5fc1724350bcfc32b33","fixed":"d10855876a6f47add6ff621cef25cc0171dac162","status":"affected"},{"type":"git","introduced":"b0afd44bc192ff4c0e90a5fc1724350bcfc32b33","fixed":"80b1465b2ae81ebb59bbe62bcb7a7f7d4e9ece6f","status":"affected"},{"type":"git","introduced":"b0afd44bc192ff4c0e90a5fc1724350bcfc32b33","fixed":"941ef6997f9db704fe4fd62fc01e420fdd5048b2","status":"affected"},{"type":"git","introduced":"b0afd44bc192ff4c0e90a5fc1724350bcfc32b33","fixed":"d5730780e9ea84e5476752a47c749036c6a74af5","status":"affected"},{"type":"git","introduced":"b0afd44bc192ff4c0e90a5fc1724350bcfc32b33","fixed":"a74322d4b897ddc268b340c4a397f6066c2f945d","status":"affected"},{"type":"git","introduced":"b0afd44bc192ff4c0e90a5fc1724350bcfc32b33","fixed":"babd7b0124650ab71a6487e38588b8659b3aa2dc","status":"affected"},{"type":"git","introduced":"b0afd44bc192ff4c0e90a5fc1724350bcfc32b33","fixed":"77087a04c8fd554134bddcb8a9ff87b21f357926","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/995fb2874bb5696357846a91e59181c600e6aac8","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d10855876a6f47add6ff621cef25cc0171dac162","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/80b1465b2ae81ebb59bbe62bcb7a7f7d4e9ece6f","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/941ef6997f9db704fe4fd62fc01e420fdd5048b2","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d5730780e9ea84e5476752a47c749036c6a74af5","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a74322d4b897ddc268b340c4a397f6066c2f945d","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/babd7b0124650ab71a6487e38588b8659b3aa2dc","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/77087a04c8fd554134bddcb8a9ff87b21f357926","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-50160","url":"https://www.cve.org/CVERecord?id=CVE-2022-50160","licence":"CVE Terms of Use","modified":"2026-05-11T19:13:58.058Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-50160","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50160","licence":"Public domain","modified":"2026-06-17T05:22:52.873Z"}],"updatedAt":"2026-11-25T22:58:21.081Z","epss":{"score":0.00202,"percentile":0.1076,"date":"2026-12-01T12:00:22.000Z"}}