{"id":"CVE-2026-80940","state":"PUBLISHED","title":"wifi: rtw88: pci: fix resource leak on failed NAPI setup","description":"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.","publishedAt":"2026-09-11T19:42:13.084Z","updatedAt":"2026-10-19T08:45:24.150Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"d0bcb10e7b94861c714ab1e62c98bf8abaa37527","status":"affected","lessThan":"481fff9bda01720c70b19fb260808145a3f21594","versionType":"git"},{"version":"d0bcb10e7b94861c714ab1e62c98bf8abaa37527","status":"affected","lessThan":"34a505071d1ffc5ebf3dc3cd16d2a12b044bcc84","versionType":"git"},{"version":"d0bcb10e7b94861c714ab1e62c98bf8abaa37527","status":"affected","lessThan":"b1596e212ab1739930b25b9d3daf6b5cd307b537","versionType":"git"},{"version":"d0bcb10e7b94861c714ab1e62c98bf8abaa37527","status":"affected","lessThan":"e779df4806cd29cbcca5c9dc0a1073662c76b889","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/wireless/realtek/rtw88/pci.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.11","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.11","versionType":"semver"},{"version":"6.12.109","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.50","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.2.4","status":"unaffected","lessThanOrEqual":"7.2.*","versionType":"semver"},{"version":"7.3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/wireless/realtek/rtw88/pci.c"]}],"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"],"weaknesses":[],"ingestedAt":"2026-10-29T20:13:07.220Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/80xxx/CVE-2026-80940.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-80940","state":"PUBLISHED","datePublished":"2026-09-11T19:42:13.084Z","dateUpdated":"2026-10-19T08:45:24.150Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-08-26T14:34:25.803Z"},"containers":{"cna":{"title":"wifi: rtw88: pci: fix resource leak on failed NAPI setup","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"d0bcb10e7b94861c714ab1e62c98bf8abaa37527","status":"affected","lessThan":"481fff9bda01720c70b19fb260808145a3f21594","versionType":"git"},{"version":"d0bcb10e7b94861c714ab1e62c98bf8abaa37527","status":"affected","lessThan":"34a505071d1ffc5ebf3dc3cd16d2a12b044bcc84","versionType":"git"},{"version":"d0bcb10e7b94861c714ab1e62c98bf8abaa37527","status":"affected","lessThan":"b1596e212ab1739930b25b9d3daf6b5cd307b537","versionType":"git"},{"version":"d0bcb10e7b94861c714ab1e62c98bf8abaa37527","status":"affected","lessThan":"e779df4806cd29cbcca5c9dc0a1073662c76b889","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/wireless/realtek/rtw88/pci.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.11","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.11","versionType":"semver"},{"version":"6.12.109","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.50","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.2.4","status":"unaffected","lessThanOrEqual":"7.2.*","versionType":"semver"},{"version":"7.3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/wireless/realtek/rtw88/pci.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/481fff9bda01720c70b19fb260808145a3f21594"},{"url":"https://git.kernel.org/stable/c/34a505071d1ffc5ebf3dc3cd16d2a12b044bcc84"},{"url":"https://git.kernel.org/stable/c/b1596e212ab1739930b25b9d3daf6b5cd307b537"},{"url":"https://git.kernel.org/stable/c/e779df4806cd29cbcca5c9dc0a1073662c76b889"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-10-19T08:45:24.150Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.11","versionEndExcluding":"6.12.109"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.11","versionEndExcluding":"6.18.50"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.11","versionEndExcluding":"7.2.4"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.11","versionEndExcluding":"7.3"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}