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 7F90B373C1D for ; Sat, 25 Jul 2026 08:53:49 +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=1784969630; cv=none; b=LgE6YH+7xb9cU9ZCzZF8gpDFaCQeSRvmW5Rdi0wSkpCncAhsS1+nF7CRi7biOOK6Sd73cmN3Mi8/w7uPgMQCjpEPQeKHZ5gnjm7BZsY4Z83RKfVnN3D1Hho/Ptm+lEb7plZ58zkNvdxMhpri9tVl/fhqWt5aOM5cUN8SRUErVn4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784969630; c=relaxed/simple; bh=8tfgR+ccsfXk5sWksdfeRzcBHB49NrcVQ+PYalkpJ4w=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=jWAPgTHl3AjmBv+nfNAO4j0CcKAkXytg0WBPYvQ7VhjXHCmkf8m89rb3ShHxqQIHIVjxduck7X63pizopI7koOr98Hm9MtfqMwxWOjmQ41IbaaCgyfxRivpekXpybYLnZsspEPxQSM2G3kWhiTu2pwiwHdXeIaazImPS8X0Q1YY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=NPlYU6Qu; 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="NPlYU6Qu" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E01A71F000E9; Sat, 25 Jul 2026 08:53:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1784969629; bh=k4/AIyGo567VS0+X2dFXkC9Jya3l+7X1px9ZWwtFxKs=; h=From:To:Cc:Subject:Date:Reply-To; b=NPlYU6Qu3byDzaIgvrgLkudjW3mqkzLNads5k/SfWfDPDI3c+g9zqO6PSVPMks83G 8MzwX/TC/cB1cSot/b/0t/Mi8XsjwcQqhYVn2ZlZrfvtYt3Z31dlSr0/pqjicQ36xl 3y/ocHvuWB/Fdk2QUE+DxnZDRB7JDuy778Rtjx1E= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-64325: wifi: mt76: mt7921/mt7925: fix NULL dereference in CSA beacon Date: Sat, 25 Jul 2026 10:49:02 +0200 Message-ID: <2026072512-CVE-2026-64325-7fc9@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=3140; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=7onG1SH94Fozh1GAlutYP/gw+YCdGKdqxbzwyWdzcxE=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkpFT6afxI9NOWWChS8XCa3uNVkgs2hU+tu5GZyWaZtu ZzC7F7VEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABO56s4wT8NSLXu51CbVT83b 5/5ybDqS4+iiyjBXcu2mGU5m+VtPz0uvihE7HD1fLycIAA== 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: mt7921/mt7925: fix NULL dereference in CSA beacon This patch is based on a BUG as reported by Bongani Hlope at https://lore.kernel.org/all/20260502125824.425d7159@bongani-mini.home.org.za/ When a channel-switch announcement (CSA) beacon is received, cfg80211 queues a wiphy work item that eventually calls mt7921_channel_switch_rx_beacon(). If the station disconnects (or the channel context is otherwise torn down) between the time the work is queued and the time it runs, the driver's dev->new_ctx pointer can already have been cleared to NULL. mt7921_channel_switch_rx_beacon() then dereferences new_ctx unconditionally, triggering a NULL pointer dereference at address 0x0: BUG: kernel NULL pointer dereference, address: 0000000000000000 RIP: 0010:mt7921_channel_switch_rx_beacon+0x1f/0x100 [mt7921_common] The same missing guard exists in mt7925_channel_switch_rx_beacon(), which shares the same code pattern introduced by the same commit. Add an early-return NULL check for dev->new_ctx in both mt7921_channel_switch_rx_beacon() and mt7925_channel_switch_rx_beacon(). When new_ctx is NULL there is no pending channel switch to process, so returning immediately is the correct and safe action. Oops-Analysis: http://oops.fenrus.org/reports/lkml/20260502125824.425d7159@bongani-mini.home.org.za/report.html The Linux kernel CVE team has assigned CVE-2026-64325 to this issue. Affected and fixed versions =========================== Issue introduced in 6.14 with commit 8aa2f59260eb66fc80378c158922ccb741ccc491 and fixed in 7.1.4 with commit 77e7b127472a191e086e1e0b1b051703f33b1801 Issue introduced in 6.14 with commit 8aa2f59260eb66fc80378c158922ccb741ccc491 and fixed in 7.2-rc1 with commit 351dd7d2c80d23e56dcce6faa4e62bea5b0877c7 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-64325 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/mt7921/main.c drivers/net/wireless/mediatek/mt76/mt7925/main.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/77e7b127472a191e086e1e0b1b051703f33b1801 https://git.kernel.org/stable/c/351dd7d2c80d23e56dcce6faa4e62bea5b0877c7