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 7094F3822B1 for ; Sat, 15 Aug 2026 06:35:05 +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=1786775706; cv=none; b=BzIQKH6r79cv0QGqAS+EzF3qQagJcoOQ0SMciLccES6NO1rqBr82N7JiuPIQP99RJIKBlzyDoBss3bmrkEaQ9+w+CcUrdkw0b6Pxl9j5ffTkm5uQZ8N1qMcB1X9+LpQLOHgC/QLLWQk7dVBIFwyCZhyNj0nT2rh2po0HuvZU0x0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786775706; c=relaxed/simple; bh=sJW8ZrzglgZAreYOezIRwL2mbwPULBgF2m8fbZVXYLg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=iMCwZ6NWtXOS0pe6Bm/gSSQK8w59NUGWoHkFRZs7PwmWEGJwcZnOnxI3no2TnYNvFGOIy0kj0FwTPxHbBVgfZq90ExuMarG/sVJ+KU4wsdMoNPRm/vZ50gZDTzZjmsQ7pgYbkG6kIvJy4IU8a+lzeaAPLwpJA2tm4aAguDRyLx8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=RmAvve8T; 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="RmAvve8T" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C099B1F000E9; Sat, 15 Aug 2026 06:35:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1786775705; bh=iEAnp0E6lizpRK+ioy5sqeLpAN3BEH3qXhcIDmaOZ94=; h=From:To:Cc:Subject:Date:Reply-To; b=RmAvve8T4D8QuXD80/x7u1aFXrST/B1YM7ZMTDScAqLeYoyu62AyKRRtwUYHfMGjV Y+njFYOsHesDRBFjYFj5fgK/4gMAVb9rTXPxvg5dlsvgY3XQrNsGu2qfzwb3wg5qKn g7uMD/AAl4E27Ql2aE3zS4WdK2TgfVk5K+IMA3+Y= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-74325: wifi: mt76: use kfree_rcu for offchannel link in mt76_put_vif_phy_link Date: Sat, 15 Aug 2026 15:10:52 +0900 Message-ID: <2026081554-CVE-2026-74325-51d7@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=2844; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=s65eX6eKvS8NywI4WCJDXVUYjZLyWD5PUpCXlGleW90=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkNjHy3I+U9ZXaK9pdcv/xNb6aZe/VX9oql1ptmf/hU6 FLYl/GrI5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACbC/4NhFhP3/U4Hb61tsY1r f0nEZhawxO28wjDfs8zfkCPxjVdVR9CjgG9fjNeaXzkPAA== 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: mt76: use kfree_rcu for offchannel link in mt76_put_vif_phy_link mt76_put_vif_phy_link() frees the offchannel mlink with plain kfree() after rcu_assign_pointer(NULL). However, rcu_assign_pointer only prevents future RCU readers from obtaining the pointer -- it does not wait for existing readers that already hold it via rcu_dereference. The TX datapath (e.g. mt7996_mac_write_txwi) dereferences mlink->wcid and mlink->idx under rcu_read_lock. If a TX softirq obtained the pointer via rcu_dereference just before the NULL assignment, it will dereference freed memory after the kfree. struct mt76_vif_link already contains an rcu_head field that is unused at this free site -- a developer oversight, since the adjacent kfree_rcu_mightsleep call for rx_sc in the same function shows the pattern was understood. Replace kfree(mlink) with kfree_rcu(mlink, rcu_head). The Linux kernel CVE team has assigned CVE-2026-74325 to this issue. Affected and fixed versions =========================== Issue introduced in 6.14 with commit a8f424c1287cc79a06c21816658feea87dfcb83f and fixed in 6.18.40 with commit c7a83899203ed36696a2d35ddd03c0f522874a63 Issue introduced in 6.14 with commit a8f424c1287cc79a06c21816658feea87dfcb83f and fixed in 7.1.5 with commit 50e700ac0edce72dee5c3a9755865d9423696ac7 Issue introduced in 6.14 with commit a8f424c1287cc79a06c21816658feea87dfcb83f and fixed in 7.2-rc1 with commit 7fae097aa9a56c30febf539d72ef3773165d3aa3 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-74325 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/mediatek/mt76/channel.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/c7a83899203ed36696a2d35ddd03c0f522874a63 https://git.kernel.org/stable/c/50e700ac0edce72dee5c3a9755865d9423696ac7 https://git.kernel.org/stable/c/7fae097aa9a56c30febf539d72ef3773165d3aa3