CVE-2022-50160

published 18 Jun 2025 · updated 11 May 2026

mtd: maps: Fix refcount leak in ap_flash_init

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 77087a04c8fd554134bddcb8a9ff87b21f357926, Kernel 80b1465b2ae81ebb59bbe62bcb7a7f7d4e9ece6f, Kernel 941ef6997f9db704fe4fd62fc01e420fdd5048b2 and 5 more.

In the Linux kernel, the following vulnerability has been resolved: mtd: maps: Fix refcount leak in ap_flash_init of_find_matching_node() 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 <77087a04c8fd554134bddcb8a9ff87b21f357926, >=b0afd44bc192ff4c0e90a5fc1724350bcfc32b33 <80b1465b2ae81ebb59bbe62bcb7a7f7d4e9ece6f, >=b0afd44bc192ff4c0e90a5fc1724350bcfc32b33 <941ef6997f9db704fe4fd62fc01e420fdd5048b2, >=b0afd44bc192ff4c0e90a5fc1724350bcfc32b33 <995fb2874bb5696357846a91e59181c600e6aac8, >=b0afd44bc192ff4c0e90a5fc1724350bcfc32b33 <a74322d4b897ddc268b340c4a397f6066c2f945d, >=b0afd44bc192ff4c0e90a5fc1724350bcfc32b33 <babd7b0124650ab71a6487e38588b8659b3aa2dc, >=b0afd44bc192ff4c0e90a5fc1724350bcfc32b33 <d10855876a6f47add6ff621cef25cc0171dac162, >=b0afd44bc192ff4c0e90a5fc1724350bcfc32b33 <d5730780e9ea84e5476752a47c749036c6a74af577087a04c8fd554134bddcb8a9ff87b21f357926, 80b1465b2ae81ebb59bbe62bcb7a7f7d4e9ece6f, 941ef6997f9db704fe4fd62fc01e420fdd5048b2, 995fb2874bb5696357846a91e59181c600e6aac8, a74322d4b897ddc268b340c4a397f6066c2f945d, babd7b0124650ab71a6487e38588b8659b3aa2dc, d10855876a6f47add6ff621cef25cc0171dac162, d5730780e9ea84e5476752a47c749036c6a74af5

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-50160 severity on Zeptric[![CVE-2022-50160](https://zeptric.io/badge/cve/CVE-2022-50160.svg)](https://zeptric.io/cve/CVE-2022-50160)