{"id":"CVE-2026-80940","title":"wifi: rtw88: pci: fix resource leak on failed NAPI setup","summary":"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_na…","severity":"medium","cvss":5.5,"cvssVector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","cvssSource":"vendor","cwe":["CWE-772"],"vendor":"Linux","product":"Linux","affected":["Linux >= d0bcb10e7b94861c714ab1e62c98bf8abaa37527 < 481fff9bda01720c70b19fb260808145a3f21594","Linux >= d0bcb10e7b94861c714ab1e62c98bf8abaa37527 < 34a505071d1ffc5ebf3dc3cd16d2a12b044bcc84","Linux >= d0bcb10e7b94861c714ab1e62c98bf8abaa37527 < b1596e212ab1739930b25b9d3daf6b5cd307b537","Linux >= d0bcb10e7b94861c714ab1e62c98bf8abaa37527 < e779df4806cd29cbcca5c9dc0a1073662c76b889","Linux 6.11"],"published":"2026-09-11","updated":"2026-10-19","sourceUpdated":"2026-10-19T08:45:24.150Z","source":"CVEORG","sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-80940","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"},{"url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-80940.json"},{"url":"https://access.redhat.com/security/cve/CVE-2026-80940"},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2532366"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-80940"},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-80940"},{"url":"https://git.kernel.org/pub/scm/linux/security/vulns.git/plain/cve/published/2026/CVE-2026-80940.mbox"}],"tags":["cve.org","csaf","vex","red-hat"],"epss":0.00168,"epssPercentile":0.06055,"ingestedAt":"2026-09-14T00:35:28.532Z","slug":"CVE-2026-80940","body":"## Overview\n\nIn 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.\n\n## Affected\n\n- `Linux >= d0bcb10e7b94861c714ab1e62c98bf8abaa37527 < 481fff9bda01720c70b19fb260808145a3f21594`\n- `Linux >= d0bcb10e7b94861c714ab1e62c98bf8abaa37527 < 34a505071d1ffc5ebf3dc3cd16d2a12b044bcc84`\n- `Linux >= d0bcb10e7b94861c714ab1e62c98bf8abaa37527 < b1596e212ab1739930b25b9d3daf6b5cd307b537`\n- `Linux >= d0bcb10e7b94861c714ab1e62c98bf8abaa37527 < e779df4806cd29cbcca5c9dc0a1073662c76b889`\n- `Linux 6.11`\n\n## Remediation\n\nRefer to the linked advisories for vendor-supplied fixes and affected version ranges.\n\n## Vendor advisories\n\n- **Red Hat VEX** · Low · affected: Red Hat Enterprise Linux 10, Red Hat Enterprise Linux 9, Red Hat OpenShift Container Platform 4 · no fix planned: Red Hat Enterprise Linux 10, Red Hat Enterprise Linux 9, Red Hat OpenShift Container Platform 4 · updated 2026-09-14 · [vex](https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-80940.json)","depth":"sunlit","depthScore":30,"depthScoreParts":{"impact":30.3,"likelihood":0,"exploitation":0,"ransomware":0},"changes":[{"seq":202722,"id":"CVE-2026-80940","ts":1789403715284,"field":"cvss","old":null,"new":"5.5"},{"seq":202721,"id":"CVE-2026-80940","ts":1789403715284,"field":"severity","old":"none","new":"medium"},{"seq":147319,"id":"CVE-2026-80940","ts":1789270209457,"field":"cvss","old":null,"new":"4.1"},{"seq":147318,"id":"CVE-2026-80940","ts":1789270209457,"field":"severity","old":"none","new":"medium"},{"seq":109072,"id":"CVE-2026-80940","ts":1789183730198,"field":"cvss","old":null,"new":"4.1"},{"seq":109071,"id":"CVE-2026-80940","ts":1789183730198,"field":"severity","old":"none","new":"medium"}]}