In the Linux kernel, the following vulnerability has been resolved:
PCI: microchip: Fix refcount leak in mcpcieinitirqdomains()
ofgetnextchild() returns a node pointer with refcount incremented, so we should use ofnode_put() on it when we don't need it anymore.
mcpcieinitirqdomains() only calls ofnodeput() in the normal path, missing it in some error paths. Add missing ofnodeput() to avoid refcount leak.
[
{
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@6cd5f93b5c6a66c68a91dbc604a78207252ecd43",
"digest": {
"function_hash": "110743219892388284822721413115948565941",
"length": 813.0
},
"target": {
"function": "mc_pcie_init_irq_domains",
"file": "drivers/pci/controller/pcie-microchip-host.c"
},
"id": "CVE-2022-50157-1f7a9c30",
"deprecated": false,
"signature_type": "Function"
},
{
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@6cd5f93b5c6a66c68a91dbc604a78207252ecd43",
"digest": {
"threshold": 0.9,
"line_hashes": [
"207134636321549736769806725552736608010",
"76768046829790692158541587690721242872",
"336200634096537949473728983566324155169",
"134857175840191357674496016325390689075",
"179651239185941697516511247585110315056",
"159409048218953454821039066959636016218",
"70908791763856888667073488744999999083",
"63559184437687419864202021550602157986"
]
},
"target": {
"file": "drivers/pci/controller/pcie-microchip-host.c"
},
"id": "CVE-2022-50157-4d1b4cd0",
"deprecated": false,
"signature_type": "Line"
},
{
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@c0ad5c7e68d10f6f8ffb0f4329e3c19404fbca58",
"digest": {
"function_hash": "110743219892388284822721413115948565941",
"length": 813.0
},
"target": {
"function": "mc_pcie_init_irq_domains",
"file": "drivers/pci/controller/pcie-microchip-host.c"
},
"id": "CVE-2022-50157-6a9e5472",
"deprecated": false,
"signature_type": "Function"
},
{
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@c0ad5c7e68d10f6f8ffb0f4329e3c19404fbca58",
"digest": {
"threshold": 0.9,
"line_hashes": [
"207134636321549736769806725552736608010",
"76768046829790692158541587690721242872",
"336200634096537949473728983566324155169",
"134857175840191357674496016325390689075",
"179651239185941697516511247585110315056",
"159409048218953454821039066959636016218",
"70908791763856888667073488744999999083",
"63559184437687419864202021550602157986"
]
},
"target": {
"file": "drivers/pci/controller/pcie-microchip-host.c"
},
"id": "CVE-2022-50157-a9b2f4b9",
"deprecated": false,
"signature_type": "Line"
},
{
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@880ece912b958a0c92cc0baa8e906fb9b49a4b53",
"digest": {
"function_hash": "110743219892388284822721413115948565941",
"length": 813.0
},
"target": {
"function": "mc_pcie_init_irq_domains",
"file": "drivers/pci/controller/pcie-microchip-host.c"
},
"id": "CVE-2022-50157-c111c8ab",
"deprecated": false,
"signature_type": "Function"
},
{
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@880ece912b958a0c92cc0baa8e906fb9b49a4b53",
"digest": {
"threshold": 0.9,
"line_hashes": [
"207134636321549736769806725552736608010",
"76768046829790692158541587690721242872",
"336200634096537949473728983566324155169",
"134857175840191357674496016325390689075",
"179651239185941697516511247585110315056",
"159409048218953454821039066959636016218",
"70908791763856888667073488744999999083",
"63559184437687419864202021550602157986"
]
},
"target": {
"file": "drivers/pci/controller/pcie-microchip-host.c"
},
"id": "CVE-2022-50157-d2bc5af7",
"deprecated": false,
"signature_type": "Line"
},
{
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@f030304fdeb87ec8f1b518c73703214aec6cc24a",
"digest": {
"function_hash": "110743219892388284822721413115948565941",
"length": 813.0
},
"target": {
"function": "mc_pcie_init_irq_domains",
"file": "drivers/pci/controller/pcie-microchip-host.c"
},
"id": "CVE-2022-50157-d39b9c5b",
"deprecated": false,
"signature_type": "Function"
},
{
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@f030304fdeb87ec8f1b518c73703214aec6cc24a",
"digest": {
"threshold": 0.9,
"line_hashes": [
"207134636321549736769806725552736608010",
"76768046829790692158541587690721242872",
"336200634096537949473728983566324155169",
"134857175840191357674496016325390689075",
"179651239185941697516511247585110315056",
"159409048218953454821039066959636016218",
"70908791763856888667073488744999999083",
"63559184437687419864202021550602157986"
]
},
"target": {
"file": "drivers/pci/controller/pcie-microchip-host.c"
},
"id": "CVE-2022-50157-f8b090ef",
"deprecated": false,
"signature_type": "Line"
}
]