CVE-2022-50160: mtd: maps: Fix refcount leak in ap_flash_init
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.
Security readout for executives and security teams
Plain-English summary
CVE-2022-50160 is a Linux kernel fix for a reference-count leak in the MTD maps ap_flash_init path. The public record does not provide CVSS, a named attack path, or reported exploitation. Treat it as a kernel maintenance exposure, mainly relevant where affected Linux kernels and flash/MTD device-tree code are present.
Executive priority
Handle through normal kernel patch management unless local validation shows the affected flash/MTD path is present on critical appliances. There is no source-backed evidence of active exploitation or remote compromise, but kernel defects should not be ignored in long-lived infrastructure or firmware.
Technical view
The issue is that of_find_matching_node() increments a device-tree node reference count, but ap_flash_init did not release it with of_node_put(). The stable commits add the missing release to prevent a refcount leak. The record lists Linux as affected and provides multiple stable branch fix commits, but no CWE or CVSS vector.
Likely exposure
Exposure is most likely on Linux systems using affected kernel versions and the relevant MTD maps code path. Embedded, appliance, or platform firmware builds with flash mapping support are more plausible targets than generic userland applications. Distribution package status is not provided in the bundle.
Exploitation context
The bundle does not report active exploitation, and KEV status is false. It also does not describe an external exploit primitive. The documented flaw is a kernel reference-count leak, so impact and practical triggerability should be validated against the deployed kernel configuration and platform code path.
Researcher notes
The record is technically narrow: a missing of_node_put() after of_find_matching_node(). Public metadata lacks CVSS, CWE, exploitability notes, and distro mapping. Avoid extrapolating beyond a refcount leak without analyzing the exact kernel branch, configuration, and platform device-tree behavior.
Mitigation direction
Check vendor kernel advisories for CVE-2022-50160 coverage.
Update to a kernel package containing the referenced stable fix.
For custom kernels, backport the matching stable commit for your branch.
Prioritize embedded and appliance firmware using Linux MTD maps.
Track vendor guidance if no package fix is available.
Validation and detection
Inventory deployed Linux kernel versions and custom firmware branches.
Check whether MTD maps and ap_flash_init are built or reachable.
Confirm source or changelog includes the relevant stable fix commit.
Review vendor advisories for distro-specific affected and fixed versions.
Monitor kernel maintenance backlog for unfixed affected branches.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cve · low confidence lookup
CVE-2022-50160 mapping review
Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
0CVSS vectors
3Timeline events
0ADP providers
9Source links
Vulnerability timeline
Timeline events are normalized from CVE metadata, CNA source timelines, ADP timelines, and KEV metadata when present.
CVE reservedCVE Program
The CVE ID was reserved by the assigning CNA.
CVE publishedCVE Program
The CVE record was published.
Jun 18, 2025, 11:03 UTC (UTC+00:00)
CVE updatedCVE Program
The CVE record metadata indicates this as the latest update time.