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=1792758313; b=y3/nVnzso2p9RNvTe6uaoYs9M2WPWpmIbpQ8arDLaAvgvvbn0b9xKhGKo34DWKdZBnwE 5LcRErYriTYtW0YPP27lp8ZhRqAjt9VkNrgJGbRl80Xkjyq7j8sUyyK0/vkOdQhjOmwws SLYpZJk+7yOEtpN2B8+0RPDNMJxqOUWdasRpRO0ROTxpKbul0wlKN+aNryAcTxVKPAGO3 qq25gnqIL4WJlUn789T8iuw03fkMjOEjSMBYNA+rse4PX5N0HeiV6wjnxWgWktNdnhao+ Do2RiNXUJmcqUkVLXy5c2c96m5jYdMUZuPDSS0RT0AKEeYjnatdOC7ArRLvr4W7DpfA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1792758313; 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=31egTV7gDcqnd7Uo2vKv6SJVCQ5Jf7bgMZgogmvx9Ps=; b=mYgSrecOccbvaCXCBq4SIVwrGyuNn4u11r/hg5GK4MKjBecNajadI46suZ2iM/xqHDrr F/sYsrsfumB4CCJEaR5WOD1mJEGIExCGSNU5eEXQSaCTZPlC2z+gmDrnpm11ZcRPkLbLe I78FrbQVoWk8DQ6ilOkDijsX3cVPjkWkpO8JCk/vhf/CxUkF/14QJ2LCdzX8oeQ+KqFsA wbTy3EahoB/rf8WcX58jGYKjwlWoh6wdEZivGuiWejV9eO7ZVAgF5MIippjSEC5Ojb+jD c1FsvhOH76Qes+mn/GOMvMb9c/oQlX2VmHDqHMuKaMA6XLD/Db1YMh0ADiqlvApEGJA== 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=MrKcjqeV; 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 44164606A31A for ; Fri, 23 Oct 2026 12:25:13 +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=MrKcjqeV Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0A8C51F01825; Fri, 23 Oct 2026 12:25:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1792758312; bh=31egTV7gDcqnd7Uo2vKv6SJVCQ5Jf7bgMZgogmvx9Ps=; h=From:To:Cc:Subject:Date:Reply-To; b=MrKcjqeVuWaTETKBjNDzPYeOSU6I1c/8aMn1Ir56hT0EERerVyD00D08ubXvD4rEk 9cbhiFDwcLtQsf+YB3B6z6IqOHf8en8Y7th7mgv8uOaHi0Kab+Vdzx7F34JgRJD6AP TEHt66IZSC+B46EdREkZkagqRFIpT0IJmpF7SK/E= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-98931: mtd: spinand: fix NULL pointer dereference with no ECC engine Date: Fri, 23 Oct 2026 14:11:38 +0200 Message-ID: <2026102337-CVE-2026-98931-1a19@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=3057; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=fs36AfLaDWdQk807RneUhvADwWxYuoEPn7OncVD4e/8=; b=owGbwMvMwCRo6H6F97bub03G02pJDFm3/X46iKgdMt21dVMcZ8pJ6ZpvdxzLju8SXqays4q1U 8Pm55NzHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjARuZkM81127TTi9c196Lb5 h/gMuY5baQfZhRgWNPm7lcYLG/1QTXtul3xD2+uj0DteAA== 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: mtd: spinand: fix NULL pointer dereference with no ECC engine When "nand-no-ecc-engine" is set in DT, nanddev_get_ecc_engine() takes the NAND_ECC_ENGINE_TYPE_NONE path and returns success while leaving nand->ecc.engine NULL. The SPI-NAND code nevertheless dereferences it unconditionally to test for a pipelined engine, so probing such a device oopses immediately. Rather than open-coding the test three times, add a nand_ecc_is_pipelined() helper to the NAND core that folds the NULL check into the integration comparison, and use it everywhere. Future callers then cannot reintroduce the problem. The Linux kernel CVE team has assigned CVE-2026-98931 to this issue. Affected and fixed versions =========================== Issue introduced in 5.18 with commit f9d7c7265bcff7d9a17425a8cddf702e8fe159c2 and fixed in 6.6.160 with commit 77c449c9c946fc420008dc55cd30f53749c915e4 Issue introduced in 5.18 with commit f9d7c7265bcff7d9a17425a8cddf702e8fe159c2 and fixed in 6.12.113 with commit 3c765fd5212c1bbc71568b1518a7ec963a7040b4 Issue introduced in 5.18 with commit f9d7c7265bcff7d9a17425a8cddf702e8fe159c2 and fixed in 6.18.56 with commit 80e8b0ea73ba295e92dfb6cf1c41df9da64234c6 Issue introduced in 5.18 with commit f9d7c7265bcff7d9a17425a8cddf702e8fe159c2 and fixed in 7.2.10 with commit fc2f651f520394893b14b75281a01e502bfa73bb Issue introduced in 5.18 with commit f9d7c7265bcff7d9a17425a8cddf702e8fe159c2 and fixed in 7.3 with commit b890e6163761ddb580cc74f43e15f8bbde15647e 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-98931 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/mtd/nand/ecc.c drivers/mtd/nand/spi/core.c include/linux/mtd/nand.h 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/77c449c9c946fc420008dc55cd30f53749c915e4 https://git.kernel.org/stable/c/3c765fd5212c1bbc71568b1518a7ec963a7040b4 https://git.kernel.org/stable/c/80e8b0ea73ba295e92dfb6cf1c41df9da64234c6 https://git.kernel.org/stable/c/fc2f651f520394893b14b75281a01e502bfa73bb https://git.kernel.org/stable/c/b890e6163761ddb580cc74f43e15f8bbde15647e