Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 772B730EF95 for ; Tue, 28 Oct 2025 11:52:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761652369; cv=none; b=QrTRZKEnKj7DU4oYTFcqPO6I8B6k6yNJgzHHZtqxNJ6tw9CsB4dc9fW/L8vgdpLDzZtLpVfeVynMyJ48KOfxlopbah+q15zMeDvCjBx9W/ofpCJ0NlSVxRp1TbmvMjmUgQjxwSue+5yPTXcjYyGv3d3hY8tGzNPJJ6mttirml2g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761652369; c=relaxed/simple; bh=z0e9jlKScwa9cdS8apVeopjo7hHYUoafW0QSdEhW5Lw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=HaL93ioI6294SiWjXaagBIODWD/EV0q8eb9v20M7faVkC8XX7GgiO8PbcWCi5tiJ+0QCaDV8JMPL7HuCKCEMEe7cZC7jzxirIg//WVZluhpErxcuLF8P5ZM68ixiLmkO1kDTh3LIDu3tkgPyZVk7rDzOiryMYKvR9vtCWaPWCZU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=TVWo49yt; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="TVWo49yt" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B5991C4CEE7; Tue, 28 Oct 2025 11:52:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1761652369; bh=z0e9jlKScwa9cdS8apVeopjo7hHYUoafW0QSdEhW5Lw=; h=From:To:Cc:Subject:Date:Reply-to:From; b=TVWo49ytKE5+dYld7R+GHy2jjkgp/HTRGNU2P+iHgz0OG8EoegoZF/xoe9/Ley+rz hlVhpYFOubNzkgjUgyJaMDkKZZk3prex96VVKQ6Ep4rUCEwXMpDXvLj3onZEEjz54/ MdtQ1X4r6TVQ1qXe+ZyO98srxKZZLiIE7EgwcZcw= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-40066: wifi: mt76: mt7996: Check phy before init msta_link in mt7996_mac_sta_add_links() Date: Tue, 28 Oct 2025 12:48:43 +0100 Message-ID: <2025102817-CVE-2025-40066-02f5@gregkh> X-Mailer: git-send-email 2.51.1 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=2015; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=jLkah1J97rkqrw0fjrnJdN83AbV9xGydzD6JxhQg6WI=; b=owGbwMvMwCRo6H6F97bub03G02pJDJkMaxsTnvIKbLDReyH9LvhtkvGtyw0nA9sFVNgmxHSxL dkSsTK4I5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACZy05hhnkVZ5o2apL3HdnzZ edT4YHTtm6tnixkW7NWI1ApOuvDUWuur4H7LNc99/TjVAA== 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: mt7996: Check phy before init msta_link in mt7996_mac_sta_add_links() In order to avoid a possible NULL pointer dereference in mt7996_mac_sta_init_link routine, move the phy pointer check before running mt7996_mac_sta_init_link() in mt7996_mac_sta_add_links routine. The Linux kernel CVE team has assigned CVE-2025-40066 to this issue. Affected and fixed versions =========================== Issue introduced in 6.15 with commit dd82a9e02c054052b5899872c1f32805428f6131 and fixed in 6.17.3 with commit 2e671536c1c3c7bcad95d408a4ab42e2e54d1882 Issue introduced in 6.15 with commit dd82a9e02c054052b5899872c1f32805428f6131 and fixed in 6.18-rc1 with commit fe5fffadc6c77c56f122cf1042dc830f59e904bf 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-2025-40066 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/mt7996/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/2e671536c1c3c7bcad95d408a4ab42e2e54d1882 https://git.kernel.org/stable/c/fe5fffadc6c77c56f122cf1042dc830f59e904bf