In the Linux kernel, the following vulnerability has been resolved:
mt76: mt7915: Fix PCI device refcount leak in mt7915pciinit_hif2()
As comment of pcigetdevice() says, it returns a pcidevice with its refcount increased. We need to call pcidevput() to decrease the refcount. Save the return value of pcigetdevice() and call pcidev_put() to decrease the refcount.
[
{
"target": {
"file": "drivers/net/wireless/mediatek/mt76/mt7915/pci.c"
},
"id": "CVE-2022-50464-224dfc15",
"signature_type": "Line",
"signature_version": "v1",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@2d4b9c7e81f3a4df27749ebecb426b145e68be2a",
"digest": {
"threshold": 0.9,
"line_hashes": [
"111422274741610652783329903547931647722",
"295901955869557762871118942522387606123",
"156903543554499027401497086306884780975",
"171303917019937565847622388941497431840",
"9664953011487772503010408329274754471",
"118095774647017049325215884534601434056",
"47859029560737374239241010588637501779",
"252812884624306110472284785777470807770"
]
}
},
{
"target": {
"function": "mt7915_pci_init_hif2",
"file": "drivers/net/wireless/mediatek/mt76/mt7915/pci.c"
},
"id": "CVE-2022-50464-33dabb85",
"signature_type": "Function",
"signature_version": "v1",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@2d4b9c7e81f3a4df27749ebecb426b145e68be2a",
"digest": {
"function_hash": "61762144975033220470059073895850402629",
"length": 312.0
}
},
{
"target": {
"function": "mt7915_pci_init_hif2",
"file": "drivers/net/wireless/mediatek/mt76/mt7915/pci.c"
},
"id": "CVE-2022-50464-714b0437",
"signature_type": "Function",
"signature_version": "v1",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@8abc6579667129afd13ff2ccb0319ba3f46e6995",
"digest": {
"function_hash": "61762144975033220470059073895850402629",
"length": 312.0
}
},
{
"target": {
"file": "drivers/net/wireless/mediatek/mt76/mt7915/pci.c"
},
"id": "CVE-2022-50464-e0687f52",
"signature_type": "Line",
"signature_version": "v1",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@8abc6579667129afd13ff2ccb0319ba3f46e6995",
"digest": {
"threshold": 0.9,
"line_hashes": [
"111422274741610652783329903547931647722",
"295901955869557762871118942522387606123",
"156903543554499027401497086306884780975",
"171303917019937565847622388941497431840",
"9664953011487772503010408329274754471",
"118095774647017049325215884534601434056",
"47859029560737374239241010588637501779",
"252812884624306110472284785777470807770"
]
}
}
]