{"id":"CVE-2026-98931","aliases":["CVE-2026-98931"],"related":[],"kind":"vulnerability","state":"published","title":"mtd: spinand: fix NULL pointer dereference with no ECC engine","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nmtd: spinand: fix NULL pointer dereference with no ECC engine\n\nWhen \"nand-no-ecc-engine\" is set in DT, nanddev_get_ecc_engine() takes\nthe NAND_ECC_ENGINE_TYPE_NONE path and returns success while leaving\nnand->ecc.engine NULL. The SPI-NAND code nevertheless dereferences it\nunconditionally to test for a pipelined engine, so probing such a\ndevice oopses immediately.\n\nRather than open-coding the test three times, add a\nnand_ecc_is_pipelined() helper to the NAND core that folds the NULL\ncheck into the integration comparison, and use it everywhere. Future\ncallers then cannot reintroduce the problem.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nmtd: spinand: fix NULL pointer dereference with no ECC engine\n\nWhen \"nand-no-ecc-engine\" is set in DT, nanddev_get_ecc_engine() takes\nthe NAND_ECC_ENGINE_TYPE_NONE path and returns success while leaving\nnand->ecc.engine NULL. The SPI-NAND code nevertheless dereferences it\nunconditionally to test for a pipelined engine, so probing such a\ndevice oopses immediately.\n\nRather than open-coding the test three times, add a\nnand_ecc_is_pipelined() helper to the NAND core that folds the NULL\ncheck into the integration comparison, and use it everywhere. Future\ncallers then cannot reintroduce the problem.","source":"cvelist"}],"published":"2026-10-23T12:11:34.935Z","modified":"2026-10-30T13:21:31.610Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"f9d7c7265bcff7d9a17425a8cddf702e8fe159c2","fixed":"ab781c7840bb8a210156e25eb0c027d6097fb74d","status":"affected"},{"type":"git","introduced":"f9d7c7265bcff7d9a17425a8cddf702e8fe159c2","fixed":"77c449c9c946fc420008dc55cd30f53749c915e4","status":"affected"},{"type":"git","introduced":"f9d7c7265bcff7d9a17425a8cddf702e8fe159c2","fixed":"3c765fd5212c1bbc71568b1518a7ec963a7040b4","status":"affected"},{"type":"git","introduced":"f9d7c7265bcff7d9a17425a8cddf702e8fe159c2","fixed":"80e8b0ea73ba295e92dfb6cf1c41df9da64234c6","status":"affected"},{"type":"git","introduced":"f9d7c7265bcff7d9a17425a8cddf702e8fe159c2","fixed":"fc2f651f520394893b14b75281a01e502bfa73bb","status":"affected"},{"type":"git","introduced":"f9d7c7265bcff7d9a17425a8cddf702e8fe159c2","fixed":"b890e6163761ddb580cc74f43e15f8bbde15647e","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.18","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.18","status":"unaffected"},{"type":"semver","introduced":"6.1.191","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.160","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.113","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.56","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.2.10","lastAffected":"7.2.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.3","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/ab781c7840bb8a210156e25eb0c027d6097fb74d","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/77c449c9c946fc420008dc55cd30f53749c915e4","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/3c765fd5212c1bbc71568b1518a7ec963a7040b4","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/80e8b0ea73ba295e92dfb6cf1c41df9da64234c6","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/fc2f651f520394893b14b75281a01e502bfa73bb","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b890e6163761ddb580cc74f43e15f8bbde15647e","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-98931","url":"https://www.cve.org/CVERecord?id=CVE-2026-98931","licence":"CVE Terms of Use","modified":"2026-10-30T12:40:20.679Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-98931","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-98931","licence":"Public domain","modified":"2026-10-30T13:21:31.610Z"}],"updatedAt":"2026-11-25T22:59:46.914Z","epss":{"score":0.00206,"percentile":0.11298,"date":"2026-12-01T12:00:22.000Z"}}