In the Linux kernel, the following vulnerability has been resolved: mtd: block2mtd: Fix divide error when erase_size is zero The erase size is… (CVE-2026-98722)
Description
A vulnerability in the Linux kernel's block2mtd module allowed a divide error when the erase_size parameter was set to zero. This caused a divide-by-zero error during a modulo operation, leading to a kernel crash. The issue is fixed by rejecting zero erase_size values before the modulo operation, ensuring proper error handling and device cleanup.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The Linux kernel's block2mtd module parses the erase_size from a module parameter, which could be set to zero. This zero value was used as a divisor in a modulo operation (size % erase_size) within add_device(), causing a divide error and kernel crash. The fix involves rejecting zero erase_size values before the modulo operation, triggering an existing error path that reports invalid arguments and frees the device safely.
Potential Impact
Exploitation of this vulnerability causes a kernel panic due to a divide-by-zero error, resulting in a denial of service (system crash). There is no indication of privilege escalation or code execution from the provided data.
Mitigation Recommendations
Apply the official fix that rejects zero erase_size values before performing the modulo operation. This prevents the divide error and ensures proper error reporting and device cleanup. Check the vendor advisory or Linux kernel updates for the patch and update affected systems accordingly.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-9h6m-c947-v865
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-98722"]
Threat ID: 6ad520ab2cdf04f656993a02
Added to database: 10/18/2026, 19:40:27 UTC
Last enriched: 10/18/2026, 22:25:16 UTC
Last updated: 10/19/2026, 02:28:17 UTC
Views: 2
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.