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.
[
{
"signature_version": "v1",
"deprecated": false,
"target": {
"function": "cxl_calc_capp_routing",
"file": "drivers/misc/cxl/pci.c"
},
"digest": {
"function_hash": "231868281429928736730483210167210387472",
"length": 683.0
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@2d7b6580384e6d65419933ddc525bd176095da54",
"signature_type": "Function",
"id": "CVE-2022-50311-1b0eee30"
},
{
"signature_version": "v1",
"deprecated": false,
"target": {
"function": "cxl_calc_capp_routing",
"file": "drivers/misc/cxl/pci.c"
},
"digest": {
"function_hash": "196184601443845963505933823051379557065",
"length": 596.0
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@c9bebc503881c1391f6c4f820134884adecf1519",
"signature_type": "Function",
"id": "CVE-2022-50311-1f8b3a8b"
},
{
"signature_version": "v1",
"deprecated": false,
"target": {
"function": "cxl_calc_capp_routing",
"file": "drivers/misc/cxl/pci.c"
},
"digest": {
"function_hash": "231868281429928736730483210167210387472",
"length": 683.0
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@1d09697ff22908ae487fc8c4fbde1811732be523",
"signature_type": "Function",
"id": "CVE-2022-50311-414c4c94"
},
{
"signature_version": "v1",
"deprecated": false,
"target": {
"file": "drivers/misc/cxl/pci.c"
},
"digest": {
"line_hashes": [
"34039776185516104660982548459148653204",
"180399760008830340024904169635978748883",
"250551998619537493031362475883604807301",
"146850770728750281773140117169394111509"
],
"threshold": 0.9
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@81c8bbf5b2b5f0c8030fff1716c00849cda8571a",
"signature_type": "Line",
"id": "CVE-2022-50311-49036d02"
},
{
"signature_version": "v1",
"deprecated": false,
"target": {
"file": "drivers/misc/cxl/pci.c"
},
"digest": {
"line_hashes": [
"34039776185516104660982548459148653204",
"180399760008830340024904169635978748883",
"250551998619537493031362475883604807301",
"146850770728750281773140117169394111509"
],
"threshold": 0.9
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@f2d60f6ba173cded65081cee690b67802395a479",
"signature_type": "Line",
"id": "CVE-2022-50311-6641c7fb"
},
{
"signature_version": "v1",
"deprecated": false,
"target": {
"file": "drivers/misc/cxl/pci.c"
},
"digest": {
"line_hashes": [
"34039776185516104660982548459148653204",
"180399760008830340024904169635978748883",
"250551998619537493031362475883604807301",
"146850770728750281773140117169394111509"
],
"threshold": 0.9
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@ee870f72465015327ad96204b0e92450d04870cd",
"signature_type": "Line",
"id": "CVE-2022-50311-74e7cc61"
},
{
"signature_version": "v1",
"deprecated": false,
"target": {
"function": "cxl_calc_capp_routing",
"file": "drivers/misc/cxl/pci.c"
},
"digest": {
"function_hash": "231868281429928736730483210167210387472",
"length": 683.0
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@81c8bbf5b2b5f0c8030fff1716c00849cda8571a",
"signature_type": "Function",
"id": "CVE-2022-50311-9ca55796"
},
{
"signature_version": "v1",
"deprecated": false,
"target": {
"file": "drivers/misc/cxl/pci.c"
},
"digest": {
"line_hashes": [
"34039776185516104660982548459148653204",
"180399760008830340024904169635978748883",
"250551998619537493031362475883604807301",
"146850770728750281773140117169394111509"
],
"threshold": 0.9
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@6a310e8db5409676b4b3e6c1f54dff174e4fd04d",
"signature_type": "Line",
"id": "CVE-2022-50311-aa49f416"
},
{
"signature_version": "v1",
"deprecated": false,
"target": {
"file": "drivers/misc/cxl/pci.c"
},
"digest": {
"line_hashes": [
"34039776185516104660982548459148653204",
"180399760008830340024904169635978748883",
"250551998619537493031362475883604807301",
"146850770728750281773140117169394111509"
],
"threshold": 0.9
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@1d09697ff22908ae487fc8c4fbde1811732be523",
"signature_type": "Line",
"id": "CVE-2022-50311-b3702545"
},
{
"signature_version": "v1",
"deprecated": false,
"target": {
"function": "cxl_calc_capp_routing",
"file": "drivers/misc/cxl/pci.c"
},
"digest": {
"function_hash": "231868281429928736730483210167210387472",
"length": 683.0
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@ee870f72465015327ad96204b0e92450d04870cd",
"signature_type": "Function",
"id": "CVE-2022-50311-be01b927"
},
{
"signature_version": "v1",
"deprecated": false,
"target": {
"function": "cxl_calc_capp_routing",
"file": "drivers/misc/cxl/pci.c"
},
"digest": {
"function_hash": "231868281429928736730483210167210387472",
"length": 683.0
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@f2d60f6ba173cded65081cee690b67802395a479",
"signature_type": "Function",
"id": "CVE-2022-50311-c6861c84"
},
{
"signature_version": "v1",
"deprecated": false,
"target": {
"file": "drivers/misc/cxl/pci.c"
},
"digest": {
"line_hashes": [
"34039776185516104660982548459148653204",
"180399760008830340024904169635978748883",
"250551998619537493031362475883604807301",
"146850770728750281773140117169394111509"
],
"threshold": 0.9
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@c9bebc503881c1391f6c4f820134884adecf1519",
"signature_type": "Line",
"id": "CVE-2022-50311-cd2f7c1b"
},
{
"signature_version": "v1",
"deprecated": false,
"target": {
"function": "cxl_calc_capp_routing",
"file": "drivers/misc/cxl/pci.c"
},
"digest": {
"function_hash": "231868281429928736730483210167210387472",
"length": 683.0
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@651e8bc9d0418c20a1989b7c078c64c2a6346fa3",
"signature_type": "Function",
"id": "CVE-2022-50311-e207f92b"
},
{
"signature_version": "v1",
"deprecated": false,
"target": {
"file": "drivers/misc/cxl/pci.c"
},
"digest": {
"line_hashes": [
"34039776185516104660982548459148653204",
"180399760008830340024904169635978748883",
"250551998619537493031362475883604807301",
"146850770728750281773140117169394111509"
],
"threshold": 0.9
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@2d7b6580384e6d65419933ddc525bd176095da54",
"signature_type": "Line",
"id": "CVE-2022-50311-e371675d"
},
{
"signature_version": "v1",
"deprecated": false,
"target": {
"function": "cxl_calc_capp_routing",
"file": "drivers/misc/cxl/pci.c"
},
"digest": {
"function_hash": "231868281429928736730483210167210387472",
"length": 683.0
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@6a310e8db5409676b4b3e6c1f54dff174e4fd04d",
"signature_type": "Function",
"id": "CVE-2022-50311-f7441d0c"
},
{
"signature_version": "v1",
"deprecated": false,
"target": {
"file": "drivers/misc/cxl/pci.c"
},
"digest": {
"line_hashes": [
"34039776185516104660982548459148653204",
"180399760008830340024904169635978748883",
"250551998619537493031362475883604807301",
"146850770728750281773140117169394111509"
],
"threshold": 0.9
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@651e8bc9d0418c20a1989b7c078c64c2a6346fa3",
"signature_type": "Line",
"id": "CVE-2022-50311-fb596a6d"
}
]