In the Linux kernel, the following vulnerability has been resolved:
cxl: Fix refcount leak in cxlcalccapp_routing
ofgetnextparent() returns a node pointer with refcount incremented, we should use ofnodeput() on it when not need anymore. This function only calls ofnodeput() in normal path, missing it in the error path. Add missing ofnode_put() to avoid refcount leak.
[ { "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@2d7b6580384e6d65419933ddc525bd176095da54", "target": { "function": "cxl_calc_capp_routing", "file": "drivers/misc/cxl/pci.c" }, "signature_type": "Function", "deprecated": false, "digest": { "function_hash": "231868281429928736730483210167210387472", "length": 683.0 }, "signature_version": "v1", "id": "CVE-2022-50311-1b0eee30" }, { "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@c9bebc503881c1391f6c4f820134884adecf1519", "target": { "function": "cxl_calc_capp_routing", "file": "drivers/misc/cxl/pci.c" }, "signature_type": "Function", "deprecated": false, "digest": { "function_hash": "196184601443845963505933823051379557065", "length": 596.0 }, "signature_version": "v1", "id": "CVE-2022-50311-1f8b3a8b" }, { "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@1d09697ff22908ae487fc8c4fbde1811732be523", "target": { "function": "cxl_calc_capp_routing", "file": "drivers/misc/cxl/pci.c" }, "signature_type": "Function", "deprecated": false, "digest": { "function_hash": "231868281429928736730483210167210387472", "length": 683.0 }, "signature_version": "v1", "id": "CVE-2022-50311-414c4c94" }, { "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@81c8bbf5b2b5f0c8030fff1716c00849cda8571a", "target": { "file": "drivers/misc/cxl/pci.c" }, "signature_type": "Line", "deprecated": false, "digest": { "line_hashes": [ "34039776185516104660982548459148653204", "180399760008830340024904169635978748883", "250551998619537493031362475883604807301", "146850770728750281773140117169394111509" ], "threshold": 0.9 }, "signature_version": "v1", "id": "CVE-2022-50311-49036d02" }, { "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@f2d60f6ba173cded65081cee690b67802395a479", "target": { "file": "drivers/misc/cxl/pci.c" }, "signature_type": "Line", "deprecated": false, "digest": { "line_hashes": [ "34039776185516104660982548459148653204", "180399760008830340024904169635978748883", "250551998619537493031362475883604807301", "146850770728750281773140117169394111509" ], "threshold": 0.9 }, "signature_version": "v1", "id": "CVE-2022-50311-6641c7fb" }, { "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@ee870f72465015327ad96204b0e92450d04870cd", "target": { "file": "drivers/misc/cxl/pci.c" }, "signature_type": "Line", "deprecated": false, "digest": { "line_hashes": [ "34039776185516104660982548459148653204", "180399760008830340024904169635978748883", "250551998619537493031362475883604807301", "146850770728750281773140117169394111509" ], "threshold": 0.9 }, "signature_version": "v1", "id": "CVE-2022-50311-74e7cc61" }, { "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@81c8bbf5b2b5f0c8030fff1716c00849cda8571a", "target": { "function": "cxl_calc_capp_routing", "file": "drivers/misc/cxl/pci.c" }, "signature_type": "Function", "deprecated": false, "digest": { "function_hash": "231868281429928736730483210167210387472", "length": 683.0 }, "signature_version": "v1", "id": "CVE-2022-50311-9ca55796" }, { "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@6a310e8db5409676b4b3e6c1f54dff174e4fd04d", "target": { "file": "drivers/misc/cxl/pci.c" }, "signature_type": "Line", "deprecated": false, "digest": { "line_hashes": [ "34039776185516104660982548459148653204", "180399760008830340024904169635978748883", "250551998619537493031362475883604807301", "146850770728750281773140117169394111509" ], "threshold": 0.9 }, "signature_version": "v1", "id": "CVE-2022-50311-aa49f416" }, { "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@1d09697ff22908ae487fc8c4fbde1811732be523", "target": { "file": "drivers/misc/cxl/pci.c" }, "signature_type": "Line", "deprecated": false, "digest": { "line_hashes": [ "34039776185516104660982548459148653204", "180399760008830340024904169635978748883", "250551998619537493031362475883604807301", "146850770728750281773140117169394111509" ], "threshold": 0.9 }, "signature_version": "v1", "id": "CVE-2022-50311-b3702545" }, { "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@ee870f72465015327ad96204b0e92450d04870cd", "target": { "function": "cxl_calc_capp_routing", "file": "drivers/misc/cxl/pci.c" }, "signature_type": "Function", "deprecated": false, "digest": { "function_hash": "231868281429928736730483210167210387472", "length": 683.0 }, "signature_version": "v1", "id": "CVE-2022-50311-be01b927" }, { "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@f2d60f6ba173cded65081cee690b67802395a479", "target": { "function": "cxl_calc_capp_routing", "file": "drivers/misc/cxl/pci.c" }, "signature_type": "Function", "deprecated": false, "digest": { "function_hash": "231868281429928736730483210167210387472", "length": 683.0 }, "signature_version": "v1", "id": "CVE-2022-50311-c6861c84" }, { "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@c9bebc503881c1391f6c4f820134884adecf1519", "target": { "file": "drivers/misc/cxl/pci.c" }, "signature_type": "Line", "deprecated": false, "digest": { "line_hashes": [ "34039776185516104660982548459148653204", "180399760008830340024904169635978748883", "250551998619537493031362475883604807301", "146850770728750281773140117169394111509" ], "threshold": 0.9 }, "signature_version": "v1", "id": "CVE-2022-50311-cd2f7c1b" }, { "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@651e8bc9d0418c20a1989b7c078c64c2a6346fa3", "target": { "function": "cxl_calc_capp_routing", "file": "drivers/misc/cxl/pci.c" }, "signature_type": "Function", "deprecated": false, "digest": { "function_hash": "231868281429928736730483210167210387472", "length": 683.0 }, "signature_version": "v1", "id": "CVE-2022-50311-e207f92b" }, { "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@2d7b6580384e6d65419933ddc525bd176095da54", "target": { "file": "drivers/misc/cxl/pci.c" }, "signature_type": "Line", "deprecated": false, "digest": { "line_hashes": [ "34039776185516104660982548459148653204", "180399760008830340024904169635978748883", "250551998619537493031362475883604807301", "146850770728750281773140117169394111509" ], "threshold": 0.9 }, "signature_version": "v1", "id": "CVE-2022-50311-e371675d" }, { "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@6a310e8db5409676b4b3e6c1f54dff174e4fd04d", "target": { "function": "cxl_calc_capp_routing", "file": "drivers/misc/cxl/pci.c" }, "signature_type": "Function", "deprecated": false, "digest": { "function_hash": "231868281429928736730483210167210387472", "length": 683.0 }, "signature_version": "v1", "id": "CVE-2022-50311-f7441d0c" }, { "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@651e8bc9d0418c20a1989b7c078c64c2a6346fa3", "target": { "file": "drivers/misc/cxl/pci.c" }, "signature_type": "Line", "deprecated": false, "digest": { "line_hashes": [ "34039776185516104660982548459148653204", "180399760008830340024904169635978748883", "250551998619537493031362475883604807301", "146850770728750281773140117169394111509" ], "threshold": 0.9 }, "signature_version": "v1", "id": "CVE-2022-50311-fb596a6d" } ]