All of lore.kernel.org
 help / color / mirror / Atom feed
* CVE-2026-80940: wifi: rtw88: pci: fix resource leak on failed NAPI setup
@ 2026-09-11 19:40 Greg Kroah-Hartman
  0 siblings, 0 replies; only message in thread
From: Greg Kroah-Hartman @ 2026-09-11 19:40 UTC (permalink / raw)
  To: linux-cve-announce; +Cc: Greg Kroah-Hartman

From: Greg Kroah-Hartman <gregkh@kernel.org>

Description
===========

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.

The Linux kernel CVE team has assigned CVE-2026-80940 to this issue.


Affected and fixed versions
===========================

	Issue introduced in 6.11 with commit d0bcb10e7b94861c714ab1e62c98bf8abaa37527 and fixed in 6.12.109 with commit 481fff9bda01720c70b19fb260808145a3f21594
	Issue introduced in 6.11 with commit d0bcb10e7b94861c714ab1e62c98bf8abaa37527 and fixed in 6.18.50 with commit 34a505071d1ffc5ebf3dc3cd16d2a12b044bcc84
	Issue introduced in 6.11 with commit d0bcb10e7b94861c714ab1e62c98bf8abaa37527 and fixed in 7.2.4 with commit b1596e212ab1739930b25b9d3daf6b5cd307b537
	Issue introduced in 6.11 with commit d0bcb10e7b94861c714ab1e62c98bf8abaa37527 and fixed in 7.3-rc1 with commit e779df4806cd29cbcca5c9dc0a1073662c76b889

Please see https://www.kernel.org for a full list of currently supported
kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to
older supported kernel versions.  The official CVE entry at
	https://cve.org/CVERecord/?id=CVE-2026-80940
will be updated if fixes are backported, please check that for the most
up to date information about this issue.


Affected files
==============

The file(s) affected by this issue are:
	drivers/net/wireless/realtek/rtw88/pci.c


Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest
stable kernel version for this, and many other bugfixes.  Individual
changes are never tested alone, but rather are part of a larger kernel
release.  Cherry-picking individual commits is not recommended or
supported by the Linux kernel community at all.  If however, updating to
the latest release is impossible, the individual changes to resolve this
issue can be found at these commits:
	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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-09-11 19:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-11 19:40 CVE-2026-80940: wifi: rtw88: pci: fix resource leak on failed NAPI setup Greg Kroah-Hartman

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.