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.
Published: 2026-10-23
Score: n/a
EPSS: n/a
KEV: No
Impact: Denial of Service (Kernel crash)
Action: Apply Patch
AI Analysis

Impact

In the Linux kernel's MTD subsystem, a NULL pointer dereference was possible when a SPI‑NAND device was configured with the "nand‑no‑ecc‑engine" option. The driver set an ecc.engine pointer to NULL but continued to dereference it unconditionally to check for pipelined support, causing an immediate oops during device probing. The resulting kernel crash leads to a denial‑of‑service; a crash can reset the entire system or render services unavailable. The weakness is a classic unchecked NULL pointer dereference (CWE‑476).

Affected Systems

All Linux kernel builds that include the MTD SPI‑NAND driver and use a device tree entry with nand‑no‑ecc‑engine set are affected. The vulnerability is not limited to a specific kernel version; any release that compiles this driver without the patch in the committed commits (c/3c765fd..., etc.) may be vulnerable. The kernel family includes Linux:Linux per the CNA list.

Risk and Exploitability

The CVSS score is not provided and the EPSS score is unavailable, suggesting no publicly known exploitation. Because the fault occurs during chip probing, an attacker would need local access to trigger the kernel oops, which typically requires privileged or physical access. Without a validated exploit path, the risk is moderate; nevertheless, the crash can be leveraged to exercise denial‑of‑service or to pivot if a privileged user is available. The vulnerability is not listed in CISA's KEV catalog, indicating no known widespread exploitation at the time of analysis.

Generated by OpenCVE AI on October 23, 2026 at 14:34 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update the kernel to a version that includes the commit adding nand_ecc_is_pipelined and removes the NULL dereference.
  • If patching is not yet possible, remove or disable the "nand-no-ecc-engine" property from the device tree for the affected SPI‑NAND device.
  • Verify that all SPI‑NAND devices in use provide a valid ECC engine, or that the kernel configuration disables probing of devices lacking ECC support.

Generated by OpenCVE AI on October 23, 2026 at 14:34 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 23 Oct 2026 17:15:00 +0000

Type Values Removed Values Added
First Time appeared Linux linux
Vendors & Products Linux linux

Fri, 23 Oct 2026 15:00:00 +0000

Type Values Removed Values Added
Weaknesses CWE-476

Fri, 23 Oct 2026 12:30:00 +0000

Type Values Removed Values Added
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.
Title mtd: spinand: fix NULL pointer dereference with no ECC engine
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-10-23T12:11:34.935Z

Reserved: 2026-09-25T10:25:14.381Z

Link: CVE-2026-98931

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-10-23T13:17:13.897

Modified: 2026-10-23T13:17:13.897

Link: CVE-2026-98931

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-23T17:00:14Z

Weaknesses