CVE-2026-80940: wifi: rtw88: pci: fix resource leak on failed NAPI setup
In the Linux kernel, the following vulnerability has been resolved:
wifi: rtw88: pci: fix resource leak on failed NAPI setup
rtwpciprobe() allocates PCI resources through rtwpcisetupresource() before it sets up NAPI. If rtwpcinapiinit() fails, the error path jumps straight to errpcideclaim and skips rtwpcidestroy(), leaving the PCI resources allocated by rtwpcisetupresource() behind.
Add a dedicated cleanup label for the NAPI setup failure path so probe destroys the PCI resources.
The bug was first flagged by an experimental analysis tool we are developing for kernel memory-management bugs while analyzing current mainline kernels. The tool is still under development and is not yet publicly available. Manual inspection confirms that the bug is still present in v7.1-rc7.
An x8664 allyesconfig build showed no new warnings. As we do not have a suitable rtw88 PCI board to test with, no runtime testing was able to be performed.
Affected Software
Event History
Frequently Asked Questions
Which systems are exposed to this resource leak?
The affected path is rtw_pci_probe() for rtw88 PCI devices. The leak occurs only if PCI resources have been set up and subsequent NAPI initialization fails during device probing.
What is known about practical exploitability or runtime impact?
The issue was identified through experimental static analysis and manually confirmed in v7.1-rc7. No runtime testing was performed because no suitable rtw88 PCI board was available, so the provided data does not establish an attacker-controlled trigger or observed runtime impact.
How can I determine whether my kernel contains the issue?
The issue was manually confirmed to still be present in v7.1-rc7. The supplied stable kernel commit references identify fixes, but the data does not provide a complete list of affected or fixed kernel versions.