wifi: mt76: mt7921: fix resource leak in probe error path
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
wifi: mt76: mt7921: fix resource leak in probe error path
When pcim_iomap_region() or devm_kmemdup() fail, the code returns directly without cleaning up previously allocated resources: - mt76_device allocated by mt76_alloc_device() - pci irq vectors allocated by pci_alloc_irq_vectors() Fix this by jumping to the existing error cleanup path instead of returning directly.
From the CVE record · Linux
The Linux kernel's mt7921 Wi-Fi driver can leak an allocated device and PCI interrupt vectors if certain operations fail during device probing. The input does not describe an attacker path, access requirements, or user interaction.
Engineers running Linux kernels with the mt7921 Wi-Fi driver should check their kernel versions; affected versions are not specified.