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 2220939B49D for ; Sun, 18 Oct 2026 15:36:23 +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=1792337785; cv=none; b=PSVYVxOQuPeMXW/j9jy7G0q8PAmcfXCcVvKiCsvnMWG/v5d9MHlHzRAJu9OlGnLg9ri5JCI34wMLRkoYENrE/OO0A35tIfZ/44RYOfHOAYWflI0kzWoOhL7sr6GzrxQMKb9MivoEetOnXtCItH3L/5jYCBpIGT1FKfpW8F/ASII= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1792337785; c=relaxed/simple; bh=7plN6o272H02nWDbnjAx39OXQY6i+C6TDpCjPrk5NdA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=SyICzTNk5Uz8Orh3dvDYti1v2uE4KSKBTfed76n+E2w1zOf6xnC6BmU+PY/YMq+fuVWUEJVxVTJ1VH1kNhmaTxTK7FahniZQyla7U4wReLnciGMoF9CbNEog+AO4jyGx2XiL1HGj3WmY+cXaGWo/C2mjs4ZorEolvXjn6f3cPAE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=ySBoLzGd; 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="ySBoLzGd" Received: by smtp.kernel.org (Postfix) with ESMTPSA id CAA951F000C4; Sun, 18 Oct 2026 15:36:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1792337782; bh=Vy9lyxBV1xMVZVbEoa81kF10r5RRHCrC0ZxEwcbU/Oo=; h=From:To:Cc:Subject:Date:Reply-To; b=ySBoLzGdCxK24XSF3azlOzquP6JJiz+To78SvVGiVZMCNuJX+BqNB0NAD0wCk+UtU aytohz5RwpdUR8V0Pq9u7Tp0e+d2BYbqRSSPXn1zO4wXSEbQLosBiMCqeDic9wVync xA5CKhVxgr3/QFPFBGmrqGUe/E5UmbISeqMtifmA= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-98620: net: ethernet: mtk_eth_soc: unregister net_devices in case of probe failure Date: Sun, 18 Oct 2026 17:18:04 +0200 Message-ID: <2026101841-CVE-2026-98620-5d1a@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=2948; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=dQSrBb06xlCvnsgPyuHOzCfkxE46T3AXB3eBJfQTh2o=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlXHs2z1dAI4P+amXytwP/WE8/VjNPSPeVPH7VVTjC6d lXGeJpoRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEzkpSTDgolVzzaYczyZtOLV 3IgEi+OB7f/L1RgWnJ2pe2/NnntZfz7s8Lhas9iWd9PmGAA= 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: unregister net_devices in case of probe failure If register_netdev() fails for one of the MTK_MAX_DEVS devices in mtk_probe(), the error path jumps to err_deinit_ppe, skipping mtk_unreg_dev(). The previously registered net_devices are then freed by mtk_free_dev() while still in NETREG_REGISTERED state, hitting the BUG_ON(dev->reg_state != NETREG_UNREGISTERED). Route the register_netdev() failure to err_unreg_netdev so the net_devices registered so far are properly unregistered before being freed. The Linux kernel CVE team has assigned CVE-2026-98620 to this issue. Affected and fixed versions =========================== Issue introduced in 4.9 with commit 8a8a9e89f801ce5d3d1d57ac48db678caf072147 and fixed in 6.6.158 with commit 245bea0c7ab278150c70366bdeb69b901327133c Issue introduced in 4.9 with commit 8a8a9e89f801ce5d3d1d57ac48db678caf072147 and fixed in 6.12.112 with commit ab3bde3b3e56331b4f53a1f6cf4e5e9d1c14c1a0 Issue introduced in 4.9 with commit 8a8a9e89f801ce5d3d1d57ac48db678caf072147 and fixed in 6.18.55 with commit 7254b702e556158e34b4d7c168b5d8e7da5978af Issue introduced in 4.9 with commit 8a8a9e89f801ce5d3d1d57ac48db678caf072147 and fixed in 7.2.9 with commit 0fdb944d4df02223c67d5e65c4c134ecb57a5668 Issue introduced in 4.9 with commit 8a8a9e89f801ce5d3d1d57ac48db678caf072147 and fixed in 7.3-rc5 with commit 310d1ac61a4d5a2ca8356a3a48d263acf54503ce 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-98620 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/245bea0c7ab278150c70366bdeb69b901327133c https://git.kernel.org/stable/c/ab3bde3b3e56331b4f53a1f6cf4e5e9d1c14c1a0 https://git.kernel.org/stable/c/7254b702e556158e34b4d7c168b5d8e7da5978af https://git.kernel.org/stable/c/0fdb944d4df02223c67d5e65c4c134ecb57a5668 https://git.kernel.org/stable/c/310d1ac61a4d5a2ca8356a3a48d263acf54503ce