AZL-116788: CVE-2026-138882 affecting package kernel 6.6.161.1-1
In the Linux kernel, the following vulnerability has been resolved:
wifi: mt76: mt7996: fix PCI device reference leak in mt7996pciinithif2()
pcigetdevice() increments the reference count on the returned struct pcidev. In mt7996pciinithif2(), three pcigetdevice() calls are made but their return values are only checked for NULL and then discarded. pcidevput() is never called, causing a PCI device reference count leak.
Fix this by storing the return value and calling pcidevput() before returning, following the same pattern already used in the sibling driver mt7915/pci.c.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
In mt7996_pci_init_hif2(), store the return values of the three pci_get_device() calls and call pci_dev_put() before returning.
Event History
Frequently Asked Questions
Which systems are most relevant to assess?
Assess systems running the listed kernel package version that use the mt76 mt7996 Wi-Fi PCI driver. The leak occurs in the mt7996_pci_init_hif2() initialization path.
What resource is leaked when the affected path runs?
The code leaks PCI device references. It makes three pci_get_device() calls, discards the returned struct pci_dev pointers after NULL checks, and does not call pci_dev_put().
What does the resolved code change to prevent the leak?
The fix stores the pci_get_device() return values and calls pci_dev_put() before returning. It follows the reference-management pattern used by the sibling mt7915 PCI driver.