---
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:

  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_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'
---

## Overview

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.

## Affected

- `Linux >= d0bcb10e7b94861c714ab1e62c98bf8abaa37527 < 481fff9bda01720c70b19fb260808145a3f21594`
- `Linux >= d0bcb10e7b94861c714ab1e62c98bf8abaa37527 < 34a505071d1ffc5ebf3dc3cd16d2a12b044bcc84`
- `Linux >= d0bcb10e7b94861c714ab1e62c98bf8abaa37527 < b1596e212ab1739930b25b9d3daf6b5cd307b537`
- `Linux >= d0bcb10e7b94861c714ab1e62c98bf8abaa37527 < e779df4806cd29cbcca5c9dc0a1073662c76b889`
- `Linux 6.11`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.

## Vendor advisories

- **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)
