# CVE-2026-80940: wifi: rtw88: pci: fix resource leak on failed NAPI setup

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.17%, higher than 6% of CVEs (2026-12-02)
- Published: 2026-09-11T19:42:13.084Z
- Modified: 2026-10-19T09:17:25.230Z
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

wifi: rtw88: pci: fix resource leak on failed NAPI setup

rtw_pci_probe() allocates PCI resources through
rtw_pci_setup_resource() before it sets up NAPI. If
rtw_pci_napi_init() fails, the error path jumps straight to
err_pci_declaim and skips rtw_pci_destroy(), leaving the PCI
resources allocated by rtw_pci_setup_resource() 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 x86_64 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.

(As written by CVE List.)

## Affected

- Linux Linux: from d0bcb10e7b94861c714ab1e62c98bf8abaa37527 before 481fff9bda01720c70b19fb260808145a3f21594; from d0bcb10e7b94861c714ab1e62c98bf8abaa37527 before 34a505071d1ffc5ebf3dc3cd16d2a12b044bcc84; from d0bcb10e7b94861c714ab1e62c98bf8abaa37527 before b1596e212ab1739930b25b9d3daf6b5cd307b537; from d0bcb10e7b94861c714ab1e62c98bf8abaa37527 before e779df4806cd29cbcca5c9dc0a1073662c76b889; 6.11 (not affected: before 6.11; from 6.12.109 up to 6.12.*; from 6.18.50 up to 6.18.*; from 7.2.4 up to 7.2.*; from 7.3 up to *)

## References

- <https://git.kernel.org/stable/c/481fff9bda01720c70b19fb260808145a3f21594>
- <https://git.kernel.org/stable/c/34a505071d1ffc5ebf3dc3cd16d2a12b044bcc84>
- <https://git.kernel.org/stable/c/b1596e212ab1739930b25b9d3daf6b5cd307b537>
- <https://git.kernel.org/stable/c/e779df4806cd29cbcca5c9dc0a1073662c76b889>

## Sources

- CVE List: [CVE-2026-80940](https://www.cve.org/CVERecord?id=CVE-2026-80940), CVE Terms of Use, modified 2026-10-19
- NVD: [CVE-2026-80940](https://nvd.nist.gov/vuln/detail/CVE-2026-80940), Public domain, modified 2026-10-19

---

Page: https://cve.day/CVE-2026-80940 · Whole record: https://cve.day/CVE-2026-80940.json · Rebuilt by cve.day 2026-11-25T22:59:37.987Z
