wifi: mt76: mt7915: fix double hif2 init on the non-WED path
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ cacdd67812c6df824704ac078f1770188a485ff9 · < 3ae8ad277e2819a281b0e36b55633c8515c16ce7| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
wifi: mt76: mt7915: fix double hif2 init on the non-WED path
mt7915_pci_init_hif2() was called unconditionally and again inside the WED-inactive branch. The helper increments the global hif_idx, writes the PCIe RECOG_ID register and takes a get_device() reference via mt7915_pci_get_hif2(), while removal only drops one reference. On non-WED dual-hif hardware this double-incremented hif_idx, wrote RECOG_ID twice and leaked a device reference. Only the call inside the WED-inactive branch is correct; drop the unconditional one. hif2 is already initialised to NULL.
From the CVE record · Linux
The mt7915 PCI initialization path calls the hif2 initialization helper twice on non-WED dual-hif hardware, leaking a device reference and writing the RECOG_ID register twice. The input does not describe an attacker action, access requirements, or user interaction.
Engineers running Linux kernels on non-WED dual-hif mt7915 hardware should check their kernel version; affected versions are not specified.