# CVE-2026-98722: mtd: block2mtd: Fix divide error when erase\_size is zero

> 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.22% (percentile 7, 2026-11-26)
- **Published:** 2026-10-18T15:46:58.093Z
- **Modified:** 2026-10-30T13:21:21.127Z

## Who should check

- Anyone running Linux \>= ea6d833a3fddcd1d60414d48f34c7f4fbe88608f, \< c8004de07739fa9a39e310e859384f1458d7d076; \>= ea6d833a3fddcd1d60414d48f34c7f4fbe88608f, \< 7ad5287e58d7aa1a848105f119e6c5b00446882f; \>= ea6d833a3fddcd1d60414d48f34c7f4fbe88608f, \< fd73c079abc58e10183a4db4dc9dc5012db17476; \>= ea6d833a3fddcd1d60414d48f34c7f4fbe88608f, \< bff83b723e93acc788bd690dc4bc1f6f4356c35b; \>= ea6d833a3fddcd1d60414d48f34c7f4fbe88608f, \< 826170a49ca1315af6b293a02200585b1e2186d9; \>= ea6d833a3fddcd1d60414d48f34c7f4fbe88608f, \< a991c28066e7ba4da7450bb04478849f7ac6a14a; \>= ea6d833a3fddcd1d60414d48f34c7f4fbe88608f, \< 21d0f05989bf0d5cef57b467a7fa4feefbd7236a; \>= ea6d833a3fddcd1d60414d48f34c7f4fbe88608f, \< b5965c4221165045e19736794ca5f48ae3d67142
- Anyone running Linux 3.15

## Description

In the Linux kernel, the following vulnerability has been resolved:

mtd: block2mtd: Fix divide error when erase\_size is zero

The erase size is parsed from the "block2mtd" module parameter and can
be set to zero. add\_device() then evaluates

        if (size % erase\_size)

with a zero divisor, which triggers a divide error:

divide error: 0000 \[\#1\] PREEMPT SMP PTI
RIP: 0010:add\_device drivers/mtd/devices/block2mtd.c:296 \[inline\]
RIP: 0010:block2mtd\_setup2+0x592/0xda0 drivers/mtd/devices/block2mtd.c:459
Call Trace:
block2mtd\_setup+0x27/0xe0 drivers/mtd/devices/block2mtd.c:476
param\_attr\_store+0x214/0x310 kernel/params.c:589
module\_attr\_store+0x65/0x90 kernel/params.c:904
kernfs\_fop\_write\_iter+0x3a4/0x540 fs/kernfs/file.c:345
...

Reject a zero erase size before performing the modulo operation so the
existing "erasesize must be a divisor of device size" error path
reports the invalid argument and frees the device.

## Affected and fixed versions

- Linux: \>= ea6d833a3fddcd1d60414d48f34c7f4fbe88608f, \< c8004de07739fa9a39e310e859384f1458d7d076; \>= ea6d833a3fddcd1d60414d48f34c7f4fbe88608f, \< 7ad5287e58d7aa1a848105f119e6c5b00446882f; \>= ea6d833a3fddcd1d60414d48f34c7f4fbe88608f, \< fd73c079abc58e10183a4db4dc9dc5012db17476; \>= ea6d833a3fddcd1d60414d48f34c7f4fbe88608f, \< bff83b723e93acc788bd690dc4bc1f6f4356c35b; \>= ea6d833a3fddcd1d60414d48f34c7f4fbe88608f, \< 826170a49ca1315af6b293a02200585b1e2186d9; \>= ea6d833a3fddcd1d60414d48f34c7f4fbe88608f, \< a991c28066e7ba4da7450bb04478849f7ac6a14a; \>= ea6d833a3fddcd1d60414d48f34c7f4fbe88608f, \< 21d0f05989bf0d5cef57b467a7fa4feefbd7236a; \>= ea6d833a3fddcd1d60414d48f34c7f4fbe88608f, \< b5965c4221165045e19736794ca5f48ae3d67142 (cvelist)
- Linux: 3.15 (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-98722. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-98722.md
Affected: Linux >= ea6d833a3fddcd1d60414d48f34c7f4fbe88608f, < c8004de07739fa9a39e310e859384f1458d7d076; >= ea6d833a3fddcd1d60414d48f34c7f4fbe88608f, < 7ad5287e58d7aa1a848105f119e6c5b00446882f; >= ea6d833a3fddcd1d60414d48f34c7f4fbe88608f, < fd73c079abc58e10183a4db4dc9dc5012db17476; >= ea6d833a3fddcd1d60414d4…
Fixed in: Linux 7ad5287e58d7aa1a848105f119e6c5b00446882f, Linux 826170a49ca1315af6b293a02200585b1e2186d9, Linux 21d0f05989bf0d5cef57b467a7fa4feefbd7236a

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-98722 being exploited?

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

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

It has no CVSS score yet. Unknown.

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

Linux \>= ea6d833a3fddcd1d60414d48f34c7f4fbe88608f, \< c8004de07739fa9a39e310e859384f1458d7d076; \>= ea6d833a3fddcd1d60414d48f34c7f4fbe88608f, \< 7ad5287e58d7aa1a848105f119e6c5b00446882f; \>= ea6d833a3fddcd1d60414d48f34c7f4fbe88608f, \< fd73c079abc58e10183a4db4dc9dc5012db17476; \>= ea6d833a3fddcd1d60414d48f34c7f4fbe88608f, \< bff83b723e93acc788bd690dc4bc1f6f4356c35b; \>= ea6d833a3fddcd1d60414d48f34c7f4fbe88608f, \< 826170a49ca1315af6b293a02200585b1e2186d9; \>= ea6d833a3fddcd1d60414d48f34c7f4fbe88608f, \< a991c28066e7ba4da7450bb04478849f7ac6a14a; \>= ea6d833a3fddcd1d60414d48f34c7f4fbe88608f, \< 21d0f05989bf0d5cef57b467a7fa4feefbd7236a; \>= ea6d833a3fddcd1d60414d48f34c7f4fbe88608f, \< b5965c4221165045e19736794ca5f48ae3d67142; Linux 3.15.

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

Yes. Fixed in Linux 7ad5287e58d7aa1a848105f119e6c5b00446882f, Linux 826170a49ca1315af6b293a02200585b1e2186d9, Linux 21d0f05989bf0d5cef57b467a7fa4feefbd7236a. No fix listed yet: follow the vendor advisory.

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

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/c8004de07739fa9a39e310e859384f1458d7d076>
- other: <https://git.kernel.org/stable/c/7ad5287e58d7aa1a848105f119e6c5b00446882f>
- other: <https://git.kernel.org/stable/c/fd73c079abc58e10183a4db4dc9dc5012db17476>
- other: <https://git.kernel.org/stable/c/bff83b723e93acc788bd690dc4bc1f6f4356c35b>
- other: <https://git.kernel.org/stable/c/826170a49ca1315af6b293a02200585b1e2186d9>
- other: <https://git.kernel.org/stable/c/a991c28066e7ba4da7450bb04478849f7ac6a14a>
- other: <https://git.kernel.org/stable/c/21d0f05989bf0d5cef57b467a7fa4feefbd7236a>
- other: <https://git.kernel.org/stable/c/b5965c4221165045e19736794ca5f48ae3d67142>

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

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