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.
{ "vanir_signatures": [ { "id": "CVE-2022-50464-224dfc15", "signature_type": "Line", "target": { "file": "drivers/net/wireless/mediatek/mt76/mt7915/pci.c" }, "deprecated": false, "digest": { "line_hashes": [ "111422274741610652783329903547931647722", "295901955869557762871118942522387606123", "156903543554499027401497086306884780975", "171303917019937565847622388941497431840", "9664953011487772503010408329274754471", "118095774647017049325215884534601434056", "47859029560737374239241010588637501779", "252812884624306110472284785777470807770" ], "threshold": 0.9 }, "signature_version": "v1", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@2d4b9c7e81f3a4df27749ebecb426b145e68be2a" }, { "id": "CVE-2022-50464-260be798", "signature_type": "Function", "target": { "file": "drivers/net/wireless/mediatek/mt76/mt7915/pci.c", "function": "mt7915_pci_init_hif2" }, "deprecated": false, "digest": { "length": 312.0, "function_hash": "61762144975033220470059073895850402629" }, "signature_version": "v1", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@5938196cc188ba4323bc6357f5ac55127d715888" }, { "id": "CVE-2022-50464-33dabb85", "signature_type": "Function", "target": { "file": "drivers/net/wireless/mediatek/mt76/mt7915/pci.c", "function": "mt7915_pci_init_hif2" }, "deprecated": false, "digest": { "length": 312.0, "function_hash": "61762144975033220470059073895850402629" }, "signature_version": "v1", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@2d4b9c7e81f3a4df27749ebecb426b145e68be2a" }, { "id": "CVE-2022-50464-714b0437", "signature_type": "Function", "target": { "file": "drivers/net/wireless/mediatek/mt76/mt7915/pci.c", "function": "mt7915_pci_init_hif2" }, "deprecated": false, "digest": { "length": 312.0, "function_hash": "61762144975033220470059073895850402629" }, "signature_version": "v1", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@8abc6579667129afd13ff2ccb0319ba3f46e6995" }, { "id": "CVE-2022-50464-7e8ea752", "signature_type": "Line", "target": { "file": "drivers/net/wireless/mediatek/mt76/mt7915/pci.c" }, "deprecated": false, "digest": { "line_hashes": [ "111422274741610652783329903547931647722", "295901955869557762871118942522387606123", "156903543554499027401497086306884780975", "171303917019937565847622388941497431840", "9664953011487772503010408329274754471", "118095774647017049325215884534601434056", "47859029560737374239241010588637501779", "252812884624306110472284785777470807770" ], "threshold": 0.9 }, "signature_version": "v1", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@5938196cc188ba4323bc6357f5ac55127d715888" }, { "id": "CVE-2022-50464-e0687f52", "signature_type": "Line", "target": { "file": "drivers/net/wireless/mediatek/mt76/mt7915/pci.c" }, "deprecated": false, "digest": { "line_hashes": [ "111422274741610652783329903547931647722", "295901955869557762871118942522387606123", "156903543554499027401497086306884780975", "171303917019937565847622388941497431840", "9664953011487772503010408329274754471", "118095774647017049325215884534601434056", "47859029560737374239241010588637501779", "252812884624306110472284785777470807770" ], "threshold": 0.9 }, "signature_version": "v1", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@8abc6579667129afd13ff2ccb0319ba3f46e6995" } ] }