# CVE-2026-98931: mtd: spinand: fix NULL pointer dereference with no ECC engine

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.21% (percentile 7, 2026-11-28)
- **Published:** 2026-10-23T12:11:34.935Z
- **Modified:** 2026-10-30T13:21:31.610Z

## Who should check

- Anyone running Linux \>= f9d7c7265bcff7d9a17425a8cddf702e8fe159c2, \< ab781c7840bb8a210156e25eb0c027d6097fb74d; \>= f9d7c7265bcff7d9a17425a8cddf702e8fe159c2, \< 77c449c9c946fc420008dc55cd30f53749c915e4; \>= f9d7c7265bcff7d9a17425a8cddf702e8fe159c2, \< 3c765fd5212c1bbc71568b1518a7ec963a7040b4; \>= f9d7c7265bcff7d9a17425a8cddf702e8fe159c2, \< 80e8b0ea73ba295e92dfb6cf1c41df9da64234c6; \>= f9d7c7265bcff7d9a17425a8cddf702e8fe159c2, \< fc2f651f520394893b14b75281a01e502bfa73bb; \>= f9d7c7265bcff7d9a17425a8cddf702e8fe159c2, \< b890e6163761ddb580cc74f43e15f8bbde15647e
- Anyone running Linux 5.18

## 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.

## Affected and fixed versions

- Linux: \>= f9d7c7265bcff7d9a17425a8cddf702e8fe159c2, \< ab781c7840bb8a210156e25eb0c027d6097fb74d; \>= f9d7c7265bcff7d9a17425a8cddf702e8fe159c2, \< 77c449c9c946fc420008dc55cd30f53749c915e4; \>= f9d7c7265bcff7d9a17425a8cddf702e8fe159c2, \< 3c765fd5212c1bbc71568b1518a7ec963a7040b4; \>= f9d7c7265bcff7d9a17425a8cddf702e8fe159c2, \< 80e8b0ea73ba295e92dfb6cf1c41df9da64234c6; \>= f9d7c7265bcff7d9a17425a8cddf702e8fe159c2, \< fc2f651f520394893b14b75281a01e502bfa73bb; \>= f9d7c7265bcff7d9a17425a8cddf702e8fe159c2, \< b890e6163761ddb580cc74f43e15f8bbde15647e (cvelist)
- Linux: 5.18 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-98931. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-98931.md
Affected: Linux >= f9d7c7265bcff7d9a17425a8cddf702e8fe159c2, < ab781c7840bb8a210156e25eb0c027d6097fb74d; >= f9d7c7265bcff7d9a17425a8cddf702e8fe159c2, < 77c449c9c946fc420008dc55cd30f53749c915e4; >= f9d7c7265bcff7d9a17425a8cddf702e8fe159c2, < 3c765fd5212c1bbc71568b1518a7ec963a7040b4; >= f9d7c7265bcff7d9a17425a…
Fixed in: Linux 77c449c9c946fc420008dc55cd30f53749c915e4, Linux 3c765fd5212c1bbc71568b1518a7ec963a7040b4, Linux 80e8b0ea73ba295e92dfb6cf1c41df9da64234c6

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-98931 being exploited?

There is no confirmed exploitation: CVE-2026-98931 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.21% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2026-98931?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2026-98931?

Linux \>= f9d7c7265bcff7d9a17425a8cddf702e8fe159c2, \< ab781c7840bb8a210156e25eb0c027d6097fb74d; \>= f9d7c7265bcff7d9a17425a8cddf702e8fe159c2, \< 77c449c9c946fc420008dc55cd30f53749c915e4; \>= f9d7c7265bcff7d9a17425a8cddf702e8fe159c2, \< 3c765fd5212c1bbc71568b1518a7ec963a7040b4; \>= f9d7c7265bcff7d9a17425a8cddf702e8fe159c2, \< 80e8b0ea73ba295e92dfb6cf1c41df9da64234c6; \>= f9d7c7265bcff7d9a17425a8cddf702e8fe159c2, \< fc2f651f520394893b14b75281a01e502bfa73bb; \>= f9d7c7265bcff7d9a17425a8cddf702e8fe159c2, \< b890e6163761ddb580cc74f43e15f8bbde15647e; Linux 5.18.

### Is there a fix for CVE-2026-98931?

Yes. Fixed in Linux 77c449c9c946fc420008dc55cd30f53749c915e4, Linux 3c765fd5212c1bbc71568b1518a7ec963a7040b4, Linux 80e8b0ea73ba295e92dfb6cf1c41df9da64234c6. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2026-98931?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/ab781c7840bb8a210156e25eb0c027d6097fb74d>
- other: <https://git.kernel.org/stable/c/77c449c9c946fc420008dc55cd30f53749c915e4>
- other: <https://git.kernel.org/stable/c/3c765fd5212c1bbc71568b1518a7ec963a7040b4>
- other: <https://git.kernel.org/stable/c/80e8b0ea73ba295e92dfb6cf1c41df9da64234c6>
- other: <https://git.kernel.org/stable/c/fc2f651f520394893b14b75281a01e502bfa73bb>
- other: <https://git.kernel.org/stable/c/b890e6163761ddb580cc74f43e15f8bbde15647e>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-98931>

HTML: <https://flawdb.com/CVE-2026-98931> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-98931>
