Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1792758066; b=mDRGi9jD3YJXYvbYejZtiqBTSqyCkXbq1r/7QoY7CyUNOFUV65WH9I1iUperjqN/bQC9 V1QZLjuBJ5ywaZ+QOXkeKwPF8XcI/4Yk4j1UNGdyalwTOd96B8fpYWCWGBMl7txsG8Hxp ZXSp3EUq05MKQVtKst79yN0LY2Ky95x517Pl3vct35J+4uC7dWrUIgvuhzl72nHgVHPCp g4kSGdHpYONV/QHhUKSHNSz2nWqqDqt3IgM94B2VWss68LQ8Es7eC4GuCpbRogCZhLDIH 2m+DbIzDP0v/FsDVYkPaWUbsO6eQ3s8aQuzSVVcWKO1Pv63NXIuujSKU4dztN0AOjvQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1792758066; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: Reply-To:MIME-Version:Lines:X-Developer-Signature:X-Developer-Key: Content-Transfer-Encoding; bh=hQo5wcuqXNxasJS2rVDqKaBcU692BCg2KRpqq2T76oQ=; b=MNebO4QyEDsdN7l3RdAKSzdPuqgDYEmZ1zsv+iymzqWBv1WzRJE9UXMhLBoftLqLICuJ 4XKAM+2WQRKCKfAToolnAYGA7rVxo+mEZJ7AUoseWifKxCvJ4pvV5bxkMNV5MPXBhBRWJ ijJhLdpY3cFVjGAnLCpxOSlGUbHP6hcotVRotoaSwH3oS1BQROhO5Yg5WoLMOOOzU6ye0 nHLw0EWCMuYNVJXzy7QAUwKzGg3UHgmUXK5LFBJhMzYcqXsq5v5KpnkXNpMDDWWD9khVZ oOgRCcS9nfGi+7kxXBuP6c0qPjUZbGCOTIdy3lZiT+glCHfw+qcYpG3AY5h9v0WjYAQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=2A8GJg9+; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6A1E3606A31A for ; Fri, 23 Oct 2026 12:21:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=2A8GJg9+ Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2A1791F01825; Fri, 23 Oct 2026 12:21:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1792758065; bh=hQo5wcuqXNxasJS2rVDqKaBcU692BCg2KRpqq2T76oQ=; h=From:To:Cc:Subject:Date:Reply-To; b=2A8GJg9+L5Tq9h3b9Z3gDGcQ1lAFrXTrPDU7+fOIjRpJVVGW6xw+MwuDowHCNV2Fm 5w3foIH33/Ksc8CvQxQW/VN6x3q5hF53RgC9HDHlBg6t6xuw/Xn7bGOvW8QMSOZOiD bju6HOmbaMHM+dUJgILeW8iTnncHak6fguuvDLSg= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-98922: net: emac: move setting of netops to fix crash Date: Fri, 23 Oct 2026 14:01:43 +0200 Message-ID: <2026102339-CVE-2026-98922-9889@gregkh> X-Mailer: git-send-email 2.56.0 Reply-To: , X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=4459; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=xPtP8NyLH8qIeo+W5Mt5Sqqdta/TGOwT7+1o3bQqwSY=; b=owGbwMvMwCRo6H6F97bub03G02pJDFm3fRY3s2xorUwIuRg9w3C1WfOpz/Wxu1t32F18o7X/V L7S5lavjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjInCSG2ayxHvrRK/gWHau/ /v30aw23N22L5RgWNF+4LOB6Z6tU2ZW9BcmJYbo7FgYVAgA= 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: net: emac: move setting of netops to fix crash fixes the following crash on driver initialization: |BUG: Kernel NULL pointer dereference on read at 0x00000158 |Faulting instruction address: 0xc0566b40 |Oops: Kernel access of bad area, sig: 11 [#1] |BE PAGE_SIZE=4K PowerPC 44x Platform |Modules linked in: |CPU: 0 UID: 0 PID: 1 Comm: swapper/0 Tainted: GW 7.3.0-rc3+ #1 |Tainted: [W]=WARN |Hardware name: MyBook Live APM821XX 0x12c41c83 PowerPC 44x Platform |NIP: c0566b40 LR: c05648f8 CTR: c04c1e9c |REGS: c1053a20 TRAP: 0300 Tainted: GW (7.3.0-rc3+) |MSR: 0002b000 CR: 24008808 XER: 00000000 |DEAR: 00000158 ESR: 00000000 |GPR00: c05648f8 c1053b10 c1063600 c1030000 c5ab3000 00000000 [...] |GPR08: 00000002 00000000 00000000 c1053b40 84002808 00000000 [...] |GPR16: cfffd210 00000002 c0beafcc cfffc960 00000000 c1030644 [...] |GPR24: c0beafbc c1037000 00000000 0000000a 00000000 c1030000 [...] |NIP [c0566b40] phy_link_topo_add_phy+0x2c/0x1d0 |LR [c05648f8] phy_attach_direct+0x1a4/0x368 |Call Trace: |[c1053b10] [c0811e04] klist_put+0x54/0xb4 (unreliable) |[c1053b40] [c05648f8] phy_attach_direct+0x1a4/0x368 |[c1053b70] [c0564ae8] phy_connect_direct+0x2c/0x60 |[c1053b90] [c056c7a8] of_phy_connect+0x50/0x74 |[c1053bc0] [c0572a88] emac_probe+0xd50/0x119c |[c1053c90] [c04cb770] platform_probe+0x74/0xa4 |[c1053cb0] [c04c8f08] really_probe+0x120/0x2b0 |[c1053cd0] [c04c9254] __driver_probe_device+0x1bc/0x1fc |[c1053d00] [c04c9334] driver_probe_device+0x38/0xa8 |[c1053d30] [c04c9560] __driver_attach+0xf4/0x10c |[c1053d50] [c04c6af8] bus_for_each_dev+0x68/0xd0 |[c1053d90] [c04c7c34] bus_add_driver+0xcc/0x1ec |[c1053dc0] [c04c9f6c] driver_register+0xcc/0x110 |[c1053de0] [c0aa3f40] emac_init+0x1c4/0x200 This bug showed up starting with v7.3-rc1. At the NIP in phy_link_topo_add_phy() is a netdev_need_ops_lock() check. This was added by the following commit ded86da4bbb7 ("net: ethtool: relax ethnl_req_get_phydev() locking assertion") The bug shows up because at the time of_phy_connect() was called, the netdev_ops were *not yet* determined. My fix is to move the code that sets netdev_ops+commac.ops+ethtool_ops further up as emac_init_config() derives that by looking at the device-tree and sets the required dev->phy_mode accordingly. During review, the Sashiko bot's AI stated that the commac assignment became a dead store. Great catch! To keep the original behavior as-is, one mentioned option "set dev->commac.ops = &emac_commac_ops only in the non-gige case?" sounded like a great plan. So the dev->commac.ops assignment for the non-gige-case moves into the else block. This patch was tested on a WD MyBook Live (RGMII). the device now works again. The Linux kernel CVE team has assigned CVE-2026-98922 to this issue. Affected and fixed versions =========================== Issue introduced in 7.2 with commit ded86da4bbb78cad74cecc368fee3ae3a296e2ca and fixed in 7.2.9 with commit c664cca8f622e66bea6a94279ae2611f1d1c0c67 Issue introduced in 7.2 with commit ded86da4bbb78cad74cecc368fee3ae3a296e2ca and fixed in 7.3 with commit 7c9f391ec89cb621d7af375ace2eb9a6248e5b9d 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-98922 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/ethernet/ibm/emac/core.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/c664cca8f622e66bea6a94279ae2611f1d1c0c67 https://git.kernel.org/stable/c/7c9f391ec89cb621d7af375ace2eb9a6248e5b9d