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 1A0EC3CEB84 for ; Sun, 18 Oct 2026 16:17:53 +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=1792340275; cv=none; b=otwXNxiAPv1S2o2SuLnlHdLSa1T8HAPJBWAORFAg1kCMzNhZS3BhrNzXIiIWxn/OOiGo7eHj2BtCS5mDZ+sLEMjLvqhTydiezSbnXGCWN4QEiQHmr0gThihT6IBH+MbWxFQPV/al4aUWQfIRb5KFtN6wi1fngzNILApuMgbgMPQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1792340275; c=relaxed/simple; bh=AEt9L1KxSvfWCDCHwkWB+ZdHQrCFEZHy1Z83NonSPR8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=S8tVdQmmd8l0/2VY5T1LcTn4pSxD5/3lciPzT/YU/P1F9jF6HM8WSdCLGmwwIxdvj0bG5AZtARiUGk8XJ7W3VaUESXAEoySvJyMjCSIRC8Zdkv5QHeBz+hzDtDYZo45x0fMPwWIZlDRNiWtb/pEdSamqiwTQqjO+QRdEyB1NoS0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=lQatXECW; 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="lQatXECW" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D33641F000C4; Sun, 18 Oct 2026 16:17:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1792340273; bh=DYBd6DRmdOjw8ZZLgSnxYi7j6sMy47lmiHjHXWkVoVQ=; h=From:To:Cc:Subject:Date:Reply-To; b=lQatXECWMmOF7eZguKaDhLE0feVhnGxTaIG3ThAimd2OGslHTKemssIVoDAVtJc61 BdC6WpsdtuOFfX2o24kc2hnOG1By2Y15/NBWlDvHevPar4BJ50RqxTE/ajLLjm5AKC 5xmrAclxiqUod1RPaWrmOio0mEDdaU8n5oi4NEik= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-98796: net: ethernet: mtk_eth_soc: allocate dummy netdev sooner Date: Sun, 18 Oct 2026 17:46:11 +0200 Message-ID: <2026101824-CVE-2026-98796-5509@gregkh> X-Mailer: git-send-email 2.56.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=3905; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=FtN2lVqiCnqs05gv6a4ksiB+0NKzCTqZa+RMagHjsLo=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlXXkaI8Bx68/mJ4UFx5Yqau1U6D3TiM+eHXS8JseApf L5KuntWRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEyk355hfmiWTt676J2bQotj HwjNlfX+NXPRKob5rteq+Cyqo0/Znp62i+2n+OONtxX7AQ== 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: ethernet: mtk_eth_soc: allocate dummy netdev sooner The RX rings and the shared NAPI are carried by an internal "dummy" netdev (eth->dummy_dev). mtk_probe() creates that dummy device, and adds the shared tx/rx NAPI to it, only after the MAC netdevs have been registered. That order has been there since the MT7623 support was added and leaves a window in which the netdevs are visible to the network core before the shared NAPI and the dummy device exist. If anything brings the first netdev up during that window (e.g. netifd opening the WAN link the instant the interface is registered), the first-open path runs without them. On NETSYS v2 and later SoCs mtk_rx_alloc() -> __xdp_rxq_info_reg() then dereferences eth->dummy_dev == NULL: WARNING: CPU: ... Missing net_device from driver in net/core/xdp.c and mtk_open() fails with -ENODEV. On NETSYS v1 SoCs (MT7621/MT7622/MT7623/MT7629) there is no page pool, so the same open instead calls napi_enable() on a napi_struct that netif_napi_add() has not initialised yet and dereferences a NULL napi->dev. Allocate the dummy netdev and add the shared tx/rx NAPI to it before the register_netdev() loop. Both the dummy-allocation failure and a register_netdev() failure now unwind through mtk_unreg_dev(), which unregisters the net_device notifiers and the netdevs registered so far, stopping a concurrently-opened netdev (ndo_stop) and its NAPI before the dummy carrier is freed. A netdev that opened during the window can also have queued the frame-engine reset worker (via the tx watchdog or phylink), so the probe error path now cancels eth->pending_work before freeing the shared state, as mtk_cleanup() already does on remove. The Linux kernel CVE team has assigned CVE-2026-98796 to this issue. Affected and fixed versions =========================== Issue introduced in 4.6 with commit 656e705243fd0c2864b89634ea16ed444ef64dc6 and fixed in 6.12.113 with commit 42001839e425b2564b7297be579073a13a8fddf6 Issue introduced in 4.6 with commit 656e705243fd0c2864b89634ea16ed444ef64dc6 and fixed in 6.18.56 with commit 82be3d08de9e14d5aed72377f051adb4f09fd540 Issue introduced in 4.6 with commit 656e705243fd0c2864b89634ea16ed444ef64dc6 and fixed in 7.2.10 with commit 17eafd74de5a31e30361420a2e3ebf64186b77e5 Issue introduced in 4.6 with commit 656e705243fd0c2864b89634ea16ed444ef64dc6 and fixed in 7.3-rc6 with commit 6f0c2c4f5e7143eba75153ecc8af3a03f7b6a98b 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-98796 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/mediatek/mtk_eth_soc.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/42001839e425b2564b7297be579073a13a8fddf6 https://git.kernel.org/stable/c/82be3d08de9e14d5aed72377f051adb4f09fd540 https://git.kernel.org/stable/c/17eafd74de5a31e30361420a2e3ebf64186b77e5 https://git.kernel.org/stable/c/6f0c2c4f5e7143eba75153ecc8af3a03f7b6a98b