{"id":"CVE-2026-98931","summary":"mtd: spinand: fix NULL pointer dereference with no ECC engine","details":"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-\u003eecc.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.","modified":"2026-11-01T02:35:22.834008724Z","published":"2026-10-23T12:11:34.935Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/98xxx/CVE-2026-98931.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/3c765fd5212c1bbc71568b1518a7ec963a7040b4"},{"type":"WEB","url":"https://git.kernel.org/stable/c/77c449c9c946fc420008dc55cd30f53749c915e4"},{"type":"WEB","url":"https://git.kernel.org/stable/c/80e8b0ea73ba295e92dfb6cf1c41df9da64234c6"},{"type":"WEB","url":"https://git.kernel.org/stable/c/ab781c7840bb8a210156e25eb0c027d6097fb74d"},{"type":"WEB","url":"https://git.kernel.org/stable/c/b890e6163761ddb580cc74f43e15f8bbde15647e"},{"type":"WEB","url":"https://git.kernel.org/stable/c/fc2f651f520394893b14b75281a01e502bfa73bb"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/98xxx/CVE-2026-98931.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-98931"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"f9d7c7265bcff7d9a17425a8cddf702e8fe159c2"},{"fixed":"ab781c7840bb8a210156e25eb0c027d6097fb74d"},{"fixed":"77c449c9c946fc420008dc55cd30f53749c915e4"},{"fixed":"3c765fd5212c1bbc71568b1518a7ec963a7040b4"},{"fixed":"80e8b0ea73ba295e92dfb6cf1c41df9da64234c6"},{"fixed":"fc2f651f520394893b14b75281a01e502bfa73bb"},{"fixed":"b890e6163761ddb580cc74f43e15f8bbde15647e"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-98931.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.18.0"},{"fixed":"6.1.191"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.2.0"},{"fixed":"6.6.160"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.12.113"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.56"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.2.10"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-98931.json"}}],"schema_version":"1.9.2"}