CVE-2022-50160Published Jun 18, 2025 · Jun 18Updated Oct 28
mtd: maps: Fix refcount leak in ap_flash_init
Linux
Medium5.5Fix available
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ b0afd44bc192ff4c0e90a5fc1724350bcfc32b33 · < a74322d4b897ddc268b340c4a397f6066c2f945d| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel's MTD maps code leaks a device-tree node reference in ap_flash_init by not calling of_node_put(). The input does not describe an attacker action or establish whether access, authentication, or user interaction is required.
Engineers running the Linux kernel should check their deployments; affected versions are not specified.