{"id":"CVE-2026-138882","summary":"wifi: mt76: mt7996: fix PCI device reference leak in mt7996_pci_init_hif2()","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nwifi: mt76: mt7996: fix PCI device reference leak in mt7996_pci_init_hif2()\n\npci_get_device() increments the reference count on the returned\nstruct pci_dev. In mt7996_pci_init_hif2(), three pci_get_device()\ncalls are made but their return values are only checked for NULL\nand then discarded. pci_dev_put() is never called, causing a PCI\ndevice reference count leak.\n\nFix this by storing the return value and calling pci_dev_put()\nbefore returning, following the same pattern already used in the\nsibling driver mt7915/pci.c.","modified":"2026-11-30T15:01:12.933311350Z","published":"2026-11-30T13:25:52.086Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/138xxx/CVE-2026-138882.json"},"references":[{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"},{"type":"WEB","url":"https://git.kernel.org/stable/c/1483a35ee8deecf8edabf0f86e7935d0a8df5aeb"},{"type":"WEB","url":"https://git.kernel.org/stable/c/88a93ec95c90de07c51d483e947567e010dde4c1"},{"type":"WEB","url":"https://git.kernel.org/stable/c/b63fac9e76caf2586609d6728882254962cf7672"},{"type":"WEB","url":"https://git.kernel.org/stable/c/d92bac6b6af2602516ee82ae112709c71af27cf6"},{"type":"WEB","url":"https://git.kernel.org/stable/c/efd6cb0f3c91ddb28847b7f9ea6a7cf3503d3109"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/138xxx/CVE-2026-138882.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-138882"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"98686cd21624c75a043e96812beadddf4f6f48e5"},{"fixed":"1483a35ee8deecf8edabf0f86e7935d0a8df5aeb"},{"fixed":"88a93ec95c90de07c51d483e947567e010dde4c1"},{"fixed":"b63fac9e76caf2586609d6728882254962cf7672"},{"fixed":"efd6cb0f3c91ddb28847b7f9ea6a7cf3503d3109"},{"fixed":"d92bac6b6af2602516ee82ae112709c71af27cf6"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-138882.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"6.2.0"},{"fixed":"6.6.163"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.12.119"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.63"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.3.4"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-138882.json"}}],"schema_version":"1.9.2"}