{"id":"CVE-2026-80940","revision":"4e996d7c6a354513ab747103e4a568a4","records":[{"revision":"4e996d7c6a354513ab747103e4a568a4","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2026-80940","aliases":[],"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.","state":0,"publishedAt":"2026-09-11T19:42:13.084+00:00","modifiedAt":"2026-10-19T08:45:24.15+00:00","affected":[{"ecosystem":"Vendor product","name":"Linux","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"product\": \"Linux\",\n                    \"vendor\": \"Linux\",\n                    \"defaultStatus\": \"unaffected\",\n                    \"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\n                    \"programFiles\": [\n                        \"drivers/net/wireless/realtek/rtw88/pci.c\"\n                    ],\n                    \"versions\": [\n                        {\n                            \"version\": \"d0bcb10e7b94861c714ab1e62c98bf8abaa37527\",\n                            \"lessThan\": \"481fff9bda01720c70b19fb260808145a3f21594\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"d0bcb10e7b94861c714ab1e62c98bf8abaa37527\",\n                            \"lessThan\": \"34a505071d1ffc5ebf3dc3cd16d2a12b044bcc84\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"d0bcb10e7b94861c714ab1e62c98bf8abaa37527\",\n                            \"lessThan\": \"b1596e212ab1739930b25b9d3daf6b5cd307b537\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"d0bcb10e7b94861c714ab1e62c98bf8abaa37527\",\n                            \"lessThan\": \"e779df4806cd29cbcca5c9dc0a1073662c76b889\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        }\n                    ]\n                }"},{"ecosystem":"Vendor product","name":"Linux","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"product\": \"Linux\",\n                    \"vendor\": \"Linux\",\n                    \"defaultStatus\": \"affected\",\n                    \"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\n                    \"programFiles\": [\n                        \"drivers/net/wireless/realtek/rtw88/pci.c\"\n                    ],\n                    \"versions\": [\n                        {\n                            \"version\": \"6.11\",\n                            \"status\": \"affected\"\n                        },\n                        {\n                            \"version\": \"0\",\n                            \"lessThan\": \"6.11\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"6.12.109\",\n                            \"lessThanOrEqual\": \"6.12.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"6.18.50\",\n                            \"lessThanOrEqual\": \"6.18.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"7.2.4\",\n                            \"lessThanOrEqual\": \"7.2.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"7.3\",\n                            \"lessThanOrEqual\": \"*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"original_commit_for_fix\"\n                        }\n                    ]\n                }"}],"metrics":[],"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"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-80940","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-80940","identifiers":["CVE-2026-80940"]},"retained":false,"historicalAffected":[]}],"coverage":[]}