In the Linux kernel, the following vulnerability has been resolved: mtd: spinand: fix NULL pointer dereference with no ECC engine When… (CVE-2026-98931)
Description
A NULL pointer dereference vulnerability in the Linux kernel's SPI-NAND driver was fixed. The issue occurs when the device tree sets "nand-no-ecc-engine", causing the ECC engine pointer to remain NULL while the code dereferences it unconditionally, leading to a kernel oops during device probing. The fix introduces a helper function to safely check the ECC engine pointer before use.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The Linux kernel SPI-NAND driver had a vulnerability where setting "nand-no-ecc-engine" in the device tree caused nanddev_get_ecc_engine() to return success but leave nand->ecc.engine as NULL. The SPI-NAND code then dereferenced this NULL pointer to test for a pipelined ECC engine, causing an immediate kernel oops on device probing. The fix adds a nand_ecc_is_pipelined() helper that includes a NULL check, preventing the dereference of a NULL pointer and ensuring safer ECC engine handling.
Potential Impact
This vulnerability leads to a NULL pointer dereference causing a kernel oops (crash) during SPI-NAND device probing when no ECC engine is configured. This results in denial of service on affected systems running the vulnerable Linux kernel versions.
Mitigation Recommendations
A fix has been implemented in the Linux kernel to address this issue by adding a helper function that safely checks the ECC engine pointer before dereferencing. Users should update to the fixed kernel version containing this patch. No other mitigation is indicated.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-h8g8-r2jh-pj86
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-98931"]
Threat ID: 6adbaad0d73cc49347b2059f
Added to database: 10/23/2026, 18:43:28 UTC
Last enriched: 10/23/2026, 19:00:56 UTC
Last updated: 10/23/2026, 21:25:17 UTC
Views: 3
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.