CVE-2022-50161

published 18 Jun 2025 · updated 11 May 2026

mtd: maps: Fix refcount leak in of_flash_probe_versatile

5.0MediumEPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 33ec82a6d2b119938f26e5c8040ed5d92378eb54, Kernel 3c8de6a838b7e0eb392754ac89dd66e698684342, Kernel 4d67c8f74d804b20febf716ec96e9a475457ec60 and 5 more.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
LinuxKernel=4.7, >=b0afd44bc192ff4c0e90a5fc1724350bcfc32b33 <33ec82a6d2b119938f26e5c8040ed5d92378eb54, >=b0afd44bc192ff4c0e90a5fc1724350bcfc32b33 <3c8de6a838b7e0eb392754ac89dd66e698684342, >=b0afd44bc192ff4c0e90a5fc1724350bcfc32b33 <4d67c8f74d804b20febf716ec96e9a475457ec60, >=b0afd44bc192ff4c0e90a5fc1724350bcfc32b33 <52ae2b14f76ef2d490337ddc0037bc37125be7b8, >=b0afd44bc192ff4c0e90a5fc1724350bcfc32b33 <5d5ddd8771fa9cabeb247fba5f6ab60d63f3fbce, >=b0afd44bc192ff4c0e90a5fc1724350bcfc32b33 <79e57889aa0d92a6d769bad808fb105e7b6ea495, >=b0afd44bc192ff4c0e90a5fc1724350bcfc32b33 <9124d51e01232a91da4034768a2a8d1688472179, >=b0afd44bc192ff4c0e90a5fc1724350bcfc32b33 <f516fbb63873ee23cba5b7c3d239677c30f13df833ec82a6d2b119938f26e5c8040ed5d92378eb54, 3c8de6a838b7e0eb392754ac89dd66e698684342, 4d67c8f74d804b20febf716ec96e9a475457ec60, 52ae2b14f76ef2d490337ddc0037bc37125be7b8, 5d5ddd8771fa9cabeb247fba5f6ab60d63f3fbce, 79e57889aa0d92a6d769bad808fb105e7b6ea495, 9124d51e01232a91da4034768a2a8d1688472179, f516fbb63873ee23cba5b7c3d239677c30f13df8

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Kernel, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2022-50161 severity on Zeptric[![CVE-2022-50161](https://zeptric.io/badge/cve/CVE-2022-50161.svg)](https://zeptric.io/cve/CVE-2022-50161)