{"id":"CVE-2026-80940","summary":"wifi: rtw88: pci: fix resource leak on failed NAPI setup","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nwifi: rtw88: pci: fix resource leak on failed NAPI setup\n\nrtw_pci_probe() allocates PCI resources through\nrtw_pci_setup_resource() before it sets up NAPI. If\nrtw_pci_napi_init() fails, the error path jumps straight to\nerr_pci_declaim and skips rtw_pci_destroy(), leaving the PCI\nresources allocated by rtw_pci_setup_resource() behind.\n\nAdd a dedicated cleanup label for the NAPI setup failure path so probe\ndestroys the PCI resources.\n\nThe bug was first flagged by an experimental analysis tool we are\ndeveloping for kernel memory-management bugs while analyzing current\nmainline kernels. The tool is still under development and is not yet\npublicly available. Manual inspection confirms that the bug is still\npresent in v7.1-rc7.\n\nAn x86_64 allyesconfig build showed no new warnings. As we do not have a\nsuitable rtw88 PCI board to test with, no runtime testing was able to be\nperformed.","modified":"2026-09-13T03:46:54.688835665Z","published":"2026-09-11T19:42:13.084Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/80xxx/CVE-2026-80940.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/34a505071d1ffc5ebf3dc3cd16d2a12b044bcc84"},{"type":"WEB","url":"https://git.kernel.org/stable/c/481fff9bda01720c70b19fb260808145a3f21594"},{"type":"WEB","url":"https://git.kernel.org/stable/c/b1596e212ab1739930b25b9d3daf6b5cd307b537"},{"type":"WEB","url":"https://git.kernel.org/stable/c/e779df4806cd29cbcca5c9dc0a1073662c76b889"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/80xxx/CVE-2026-80940.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-80940"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"d0bcb10e7b94861c714ab1e62c98bf8abaa37527"},{"fixed":"481fff9bda01720c70b19fb260808145a3f21594"},{"fixed":"34a505071d1ffc5ebf3dc3cd16d2a12b044bcc84"},{"fixed":"b1596e212ab1739930b25b9d3daf6b5cd307b537"},{"fixed":"e779df4806cd29cbcca5c9dc0a1073662c76b889"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-80940.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"6.11.0"},{"fixed":"6.12.109"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.50"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.2.4"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-80940.json"}}],"schema_version":"1.9.0"}