CVE-2022-50161Published Jun 18, 2025 · Jun 18Updated Oct 28
mtd: maps: Fix refcount leak in of_flash_probe_versatile
Linux
Medium5.5Fix available
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ b0afd44bc192ff4c0e90a5fc1724350bcfc32b33 · < 5d5ddd8771fa9cabeb247fba5f6ab60d63f3fbce| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel's of_flash_probe_versatile function fails to release a node reference, causing a reference count leak. The input does not specify an attacker action or whether exploitation requires network access, authentication, or user interaction.
Engineers running the Linux kernel should check their installations; affected versions are not specified.