CVE-2022-50160
mtd: maps: Fix refcount leak in ap_flash_init
Description
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.
INFO
Published Date :
June 18, 2025, 11:15 a.m.
Last Modified :
Nov. 18, 2025, 9:22 p.m.
Remotely Exploit :
No
Source :
416baaa9-dc9f-4396-8d5f-8c081fb06d67
CVSS Scores
| Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source |
|---|---|---|---|---|---|---|
| CVSS 3.1 | MEDIUM | [email protected] |
Solution
- Update the Linux kernel to the patched version.
- Review and apply the mtd: maps patch.
- Ensure of_node_put() is called correctly.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2022-50160.
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2022-50160 is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2022-50160
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2022-50160 vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2022-50160 vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
Initial Analysis by [email protected]
Nov. 18, 2025
Action Type Old Value New Value Added CVSS V3.1 AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H Added CWE NVD-CWE-Other Added CPE Configuration OR *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.16 up to (excluding) 5.18.18 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.19 up to (excluding) 5.19.2 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 4.15 up to (excluding) 4.19.256 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 4.20 up to (excluding) 5.4.211 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.5 up to (excluding) 5.10.137 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.11 up to (excluding) 5.15.61 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 4.7 up to (excluding) 4.14.291 Added Reference Type kernel.org: https://git.kernel.org/stable/c/77087a04c8fd554134bddcb8a9ff87b21f357926 Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/80b1465b2ae81ebb59bbe62bcb7a7f7d4e9ece6f Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/941ef6997f9db704fe4fd62fc01e420fdd5048b2 Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/995fb2874bb5696357846a91e59181c600e6aac8 Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/a74322d4b897ddc268b340c4a397f6066c2f945d Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/babd7b0124650ab71a6487e38588b8659b3aa2dc Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/d10855876a6f47add6ff621cef25cc0171dac162 Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/d5730780e9ea84e5476752a47c749036c6a74af5 Types: Patch -
New CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Jun. 18, 2025
Action Type Old Value New Value Added Description 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. Added Reference https://git.kernel.org/stable/c/77087a04c8fd554134bddcb8a9ff87b21f357926 Added Reference https://git.kernel.org/stable/c/80b1465b2ae81ebb59bbe62bcb7a7f7d4e9ece6f Added Reference https://git.kernel.org/stable/c/941ef6997f9db704fe4fd62fc01e420fdd5048b2 Added Reference https://git.kernel.org/stable/c/995fb2874bb5696357846a91e59181c600e6aac8 Added Reference https://git.kernel.org/stable/c/a74322d4b897ddc268b340c4a397f6066c2f945d Added Reference https://git.kernel.org/stable/c/babd7b0124650ab71a6487e38588b8659b3aa2dc Added Reference https://git.kernel.org/stable/c/d10855876a6f47add6ff621cef25cc0171dac162 Added Reference https://git.kernel.org/stable/c/d5730780e9ea84e5476752a47c749036c6a74af5