Refcount Leak in Linux Kernel's Meson MX SoC Information Handler
CVE-2022-50209
What is CVE-2022-50209?
In the Linux Kernel, a vulnerability has been identified in the meson_mx_socinfo_init function, which may lead to a refcount leak. The issue arises as the of_find_matching_node() function increments the reference count for a node pointer. If this pointer is not properly managed, specifically by failing to call of_node_put() when the node is no longer needed, it results in a memory resource leak. Implementing the missing of_node_put() call resolves this issue, enhancing the overall stability and security of the Linux kernel.
Affected Version(s)
Linux 5e68c0fc8df8a588b15cd469b27b8b5dbfadc6c3 < 69a64c77aafcf3c772264a36214937514e31ad82
Linux 5e68c0fc8df8a588b15cd469b27b8b5dbfadc6c3 < 6b28bf3e044f12db0fc18c42f58ae7fc3fa0144a
Linux 5e68c0fc8df8a588b15cd469b27b8b5dbfadc6c3 < 2691b8780f88e1b8b3578a5bc78a0011741bbd74