What’s Vulnerable › Vulnerabilities

CVE-2022-50311: cxl: Fix refcount leak in cxl_calc_capp_routing

Description

In the Linux kernel, the following vulnerability has been resolved: cxl: Fix refcount leak in cxl_calc_capp_routing of_get_next_parent() returns a node pointer with refcount incremented, we should use of_node_put() on it when not need anymore. This function only calls of_node_put() in normal path, missing it in the error path. Add missing of_node_put() to avoid refcount leak.

Affected products

How to fix

Upgrade to a fixed version: Linux kernel 4.14.303, 4.19.270, 5.10.163, 5.15.86. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2022-50311 or the next vulnerability affects your stack