CVE-2022-50464

Source
https://nvd.nist.gov/vuln/detail/CVE-2022-50464
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-50464.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2022-50464
Downstream
Published
2025-10-01T11:45:35Z
Modified
2025-10-15T02:28:45.538964Z
Summary
mt76: mt7915: Fix PCI device refcount leak in mt7915_pci_init_hif2()
Details

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.

References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
9093cfff72e3e55b703ed38fa1af87c204d89cf1
Fixed
8abc6579667129afd13ff2ccb0319ba3f46e6995
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
9093cfff72e3e55b703ed38fa1af87c204d89cf1
Fixed
2d4b9c7e81f3a4df27749ebecb426b145e68be2a
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
9093cfff72e3e55b703ed38fa1af87c204d89cf1
Fixed
5938196cc188ba4323bc6357f5ac55127d715888

Affected versions

v5.*

v5.11
v5.11-rc3
v5.11-rc4
v5.11-rc5
v5.11-rc6
v5.11-rc7
v5.12
v5.12-rc1
v5.12-rc1-dontuse
v5.12-rc2
v5.12-rc3
v5.12-rc4
v5.12-rc5
v5.12-rc6
v5.12-rc7
v5.12-rc8
v5.13
v5.13-rc1
v5.13-rc2
v5.13-rc3
v5.13-rc4
v5.13-rc5
v5.13-rc6
v5.13-rc7
v5.14
v5.14-rc1
v5.14-rc2
v5.14-rc3
v5.14-rc4
v5.14-rc5
v5.14-rc6
v5.14-rc7
v5.15
v5.15-rc1
v5.15-rc2
v5.15-rc3
v5.15-rc4
v5.15-rc5
v5.15-rc6
v5.15-rc7
v5.16
v5.16-rc1
v5.16-rc2
v5.16-rc3
v5.16-rc4
v5.16-rc5
v5.16-rc6
v5.16-rc7
v5.16-rc8
v5.17
v5.17-rc1
v5.17-rc2
v5.17-rc3
v5.17-rc4
v5.17-rc5
v5.17-rc6
v5.17-rc7
v5.17-rc8
v5.18
v5.18-rc1
v5.18-rc2
v5.18-rc3
v5.18-rc4
v5.18-rc5
v5.18-rc6
v5.18-rc7
v5.19
v5.19-rc1
v5.19-rc2
v5.19-rc3
v5.19-rc4
v5.19-rc5
v5.19-rc6
v5.19-rc7
v5.19-rc8

v6.*

v6.0
v6.0-rc1
v6.0-rc2
v6.0-rc3
v6.0-rc4
v6.0-rc5
v6.0-rc6
v6.0-rc7
v6.0.1
v6.0.10
v6.0.11
v6.0.12
v6.0.13
v6.0.14
v6.0.15
v6.0.2
v6.0.3
v6.0.4
v6.0.5
v6.0.6
v6.0.7
v6.0.8
v6.0.9
v6.1
v6.1-rc1
v6.1-rc2
v6.1-rc3
v6.1-rc4
v6.1-rc5
v6.1-rc6
v6.1-rc7
v6.1-rc8
v6.1.1

Database specific

{
    "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"
        }
    ]
}

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
5.12.0
Fixed
6.0.16
Type
ECOSYSTEM
Events
Introduced
6.1.0
Fixed
6.1.2