{"schema_version":"1.9.0","id":"CVE-2022-50311","published":"2025-09-15T14:46:06.504Z","modified":"2026-08-12T03:51:20.219358633Z","related":["SUSE-SU-2025:03614-1"],"summary":"cxl: Fix refcount leak in cxl_calc_capp_routing","details":"In the Linux kernel, the following vulnerability has been resolved:\n\ncxl: Fix refcount leak in cxl_calc_capp_routing\n\nof_get_next_parent() returns a node pointer with refcount incremented,\nwe should use of_node_put() on it when not need anymore.\nThis function only calls of_node_put() in normal path,\nmissing it in the error path.\nAdd missing of_node_put() to avoid refcount leak.","affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"f24be42aab37c6d07c05126673138e06223a6399"},{"fixed":"c9bebc503881c1391f6c4f820134884adecf1519"},{"fixed":"ee870f72465015327ad96204b0e92450d04870cd"},{"fixed":"f2d60f6ba173cded65081cee690b67802395a479"},{"fixed":"81c8bbf5b2b5f0c8030fff1716c00849cda8571a"},{"fixed":"6a310e8db5409676b4b3e6c1f54dff174e4fd04d"},{"fixed":"651e8bc9d0418c20a1989b7c078c64c2a6346fa3"},{"fixed":"2d7b6580384e6d65419933ddc525bd176095da54"},{"fixed":"1d09697ff22908ae487fc8c4fbde1811732be523"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-50311.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.12.0"},{"fixed":"4.14.303"}]},{"type":"ECOSYSTEM","events":[{"introduced":"4.15.0"},{"fixed":"4.19.270"}]},{"type":"ECOSYSTEM","events":[{"introduced":"4.20.0"},{"fixed":"5.4.229"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.5.0"},{"fixed":"5.10.163"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.11.0"},{"fixed":"5.15.86"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.16.0"},{"fixed":"6.0.16"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.1.0"},{"fixed":"6.1.2"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-50311.json"}}],"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/1d09697ff22908ae487fc8c4fbde1811732be523"},{"type":"WEB","url":"https://git.kernel.org/stable/c/2d7b6580384e6d65419933ddc525bd176095da54"},{"type":"WEB","url":"https://git.kernel.org/stable/c/651e8bc9d0418c20a1989b7c078c64c2a6346fa3"},{"type":"WEB","url":"https://git.kernel.org/stable/c/6a310e8db5409676b4b3e6c1f54dff174e4fd04d"},{"type":"WEB","url":"https://git.kernel.org/stable/c/81c8bbf5b2b5f0c8030fff1716c00849cda8571a"},{"type":"WEB","url":"https://git.kernel.org/stable/c/c9bebc503881c1391f6c4f820134884adecf1519"},{"type":"WEB","url":"https://git.kernel.org/stable/c/ee870f72465015327ad96204b0e92450d04870cd"},{"type":"WEB","url":"https://git.kernel.org/stable/c/f2d60f6ba173cded65081cee690b67802395a479"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50311.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50311"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50311.json"}}