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 1DFE91CEAC2 for ; Fri, 1 May 2026 14:17:27 +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=1777645048; cv=none; b=HdDpyL11Zgjnt/1mcTkhzksH5koEMBamR0WO7Rk4QQ0BYMa0F1juaBt4qU/m0RomKsZLOTcRmBO9myrSY312a/T0aeeKyKQrpLHMY9pqX9nN57zEyAaBERgg7nRvbEYMJD2tl37TkKLeW6kkgQva17LElnMTsClRprS4Dlirfgc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777645048; c=relaxed/simple; bh=umU14BHSfrRgZGZcJsiJWb/bCR7mmhCZTAh4SIY+OLs=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=K479D1378nqxWyexF51H84LjHQpHQNTmxv3GclRoY38Sf+hmmtDDz8HGkeBdqNJUHz602sKuvDGPn8gxYXZzWaJj8pzDzOctWwfvwlas9m5l9F+fGyEw6SibuIEnb/RY7dJAzqn5TZjfiC+ZKelLLmZPpJghcpzXAFSrHXHhAXo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=nJmHUQ0V; 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="nJmHUQ0V" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3BB65C2BCB4; Fri, 1 May 2026 14:17:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1777645047; bh=umU14BHSfrRgZGZcJsiJWb/bCR7mmhCZTAh4SIY+OLs=; h=From:To:Cc:Subject:Date:Reply-To:From; b=nJmHUQ0V+KS5fkaNPjSdnrFP+DB4UghpsNABf2ediHd4qHMYZOcM89qGfXaIa497J maZensSsHf/uAGMcwiUelEhFLYgaFRBTasVHEHWAFOArvWo+Igd7LhjDTOE2VUQfKN JKK1gqFscy05YPQjJ/aOUYaad4XeDmKjynUa0Ivw= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-31736: net: ethernet: mtk_ppe: avoid NULL deref when gmac0 is disabled Date: Fri, 1 May 2026 16:14:47 +0200 Message-ID: <2026050138-CVE-2026-31736-c2a4@gregkh> X-Mailer: git-send-email 2.54.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=2635; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=uWjh56OVTEuqQGvBUylCqc+OxnZ8ZfGVaCu5hxwMVVA=; b=owGbwMvMwCRo6H6F97bub03G02pJDJlftvr1ZXgUhx1e78Rx0bhr0Z0QT8vfHLr3+XhLFB6w3 3Y5WLWiI5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACai28gwP9D5dvurf9se2SUk O/ff4WerYPyTwLDg+veDl4vW7VJvuzFX7Pu2qD8l2k+mAAA= 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_ppe: avoid NULL deref when gmac0 is disabled If the gmac0 is disabled, the precheck for a valid ingress device will cause a NULL pointer deref and crash the system. This happens because eth->netdev[0] will be NULL but the code will directly try to access netdev_ops. Instead of just checking for the first net_device, it must be checked if any of the mtk_eth net_devices is matching the netdev_ops of the ingress device. The Linux kernel CVE team has assigned CVE-2026-31736 to this issue. Affected and fixed versions =========================== Issue introduced in 6.11 with commit 73cfd947dbdb25ef9863ac49c4596a7d53ad4025 and fixed in 6.12.81 with commit 0b832aad33e6f160fda310f0306a6483d85e9d6e Issue introduced in 6.11 with commit 73cfd947dbdb25ef9863ac49c4596a7d53ad4025 and fixed in 6.18.22 with commit 5dff799c677152dde963c3917bacd9127b03e145 Issue introduced in 6.11 with commit 73cfd947dbdb25ef9863ac49c4596a7d53ad4025 and fixed in 6.19.12 with commit 7b2380f0a0e374010c1a4a13203511b9dee5b166 Issue introduced in 6.11 with commit 73cfd947dbdb25ef9863ac49c4596a7d53ad4025 and fixed in 7.0 with commit 976ff48c2ac6e6b25b01428c9d7997bcd0fb2949 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-31736 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_ppe_offload.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/0b832aad33e6f160fda310f0306a6483d85e9d6e https://git.kernel.org/stable/c/5dff799c677152dde963c3917bacd9127b03e145 https://git.kernel.org/stable/c/7b2380f0a0e374010c1a4a13203511b9dee5b166 https://git.kernel.org/stable/c/976ff48c2ac6e6b25b01428c9d7997bcd0fb2949