Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 95E6F54DAF8 for ; Fri, 11 Sep 2026 19:46:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789155986; cv=none; b=hl0mJLw6Zw/mKftrQPggr/EQLgVKgDw9JgTVq6kIEE8Z+4o0VcbrF/nC9/YBSTo8PkpFjMLoQScQ7Cs2gg+Pc8A+W1+Y6x3k6GW3HsNj2Lyn/gEJlk3izcznIf55JF9MVzomfZ0RIvPEKKPgdzscHfogN9gjq7CC8hSWfRSYqiY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789155986; c=relaxed/simple; bh=QURSkYdkTXNcq/gTH2GJNPZfQemfJxnfNQkxRMmLrJg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=JEngML/xgoN9YbizpxJHU/Dj1LUdsoOlfBuWgBOZjNGzOKOElqv51zoahxSkowyGGYY7uFcJ+JvF3LOlR0QuKRmXmOMcKbGesca7Xt0D5MoJzZ9nLl/XECYRiEzh3/H64I5xrD8AesNaZX4Sa/t9/d0rSmQ0WqQNkbOlP8JjAXM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=GGPoLxYb; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="GGPoLxYb" Received: by smtp.kernel.org (Postfix) with ESMTPSA id CBD6D1F0089A; Fri, 11 Sep 2026 19:45:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1789155959; bh=GtBU5XolAXNMClNthu8Jc6VxcpiMJoPnmT5rcM5vPwY=; h=From:To:Cc:Subject:Date:Reply-To; b=GGPoLxYbzLp1rBm59Lb3NKgu74UBM6UGLeUcV9Q4+ny6Rnw4rer4qNDdHRP0oP4LQ fLNilLkDQ2t210NmDqRLi5QPUK1/n4GsQh0D7pcGL7Fld6fYGnsYjoC2hfGYDGYhdQ q1cVira4n/kvFrlV5wXi8vHs2EX3ZYQRlO8TU9tw= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-80940: wifi: rtw88: pci: fix resource leak on failed NAPI setup Date: Fri, 11 Sep 2026 21:40:46 +0200 Message-ID: <2026091137-CVE-2026-80940-2df6@gregkh> X-Mailer: git-send-email 2.55.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3087; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=QdbzSP4QrMqZyLT7IeC5zPGNTgX4QxEFg/EpIGad330=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlLIk2ljBTLp/o3zvEsfxK83v+07Sw7H7uIWRyBSnGzT nT8rUvuiGVhEGRikBVTZPmyjefo/opDil6Gtqdh5rAygQxh4OIUgIk8WMQwh3/7Z6m4NRo7Q9cs aCq/fvHO/u4fggzz0w1PqW6Siteq3dmlqf9yPsPNaQUNAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman 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