CVE-2026-98722 json
mtd: block2mtd: Fix divide error when erase_size is zero
published 24d ago modified 12d ago also EUVD-2026-103976
- cvss
- —
- not scored
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.2%
- EPSS 0.2% chance of exploitation in 30 days, percentile 7%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- Linux Linux 7.3
- linux Debian 13 6.12.113-1
- linux Debian 14 7.2.10-1
- linux-6.12 Debian 12 6.12.113-1~deb12u1
debian advisories DEBIAN-CVE-2026-98722
- linux Ubuntu 24.04 LTS 6.8.0-149.149
- linux Ubuntu 26.04 LTS 7.0.0-43.43
- linux-aws Ubuntu 24.04 LTS 6.8.0-1069.74
- linux-aws Ubuntu 26.04 LTS 7.0.0-1017.18
- linux-gcp Ubuntu 24.04 LTS 6.8.0-1073.81
- linux-gcp Ubuntu 26.04 LTS 7.0.0-1017.19
- linux-gke Ubuntu 24.04 LTS 6.8.0-1068.77
- linux-gke Ubuntu 26.04 LTS 7.0.0-1010.11
ubuntu advisories UBUNTU-CVE-2026-98722
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- kernel Azure Linux 3.0 6.6.161.1-1
azure linux advisories AZL-108917
Azure Linux vulnerability data, Copyright (c) Microsoft Corporation, from https://github.com/microsoft/AzureLinuxVulnerabilityData via OSV, under the MIT licence; changed: normalised to fixed package versions per release. MIT
- git.kernel.org/stable/c/c8004de07739fa9a39e310e859384f1458d7d076 commit
- git.kernel.org/stable/c/7ad5287e58d7aa1a848105f119e6c5b00446882f commit
- git.kernel.org/stable/c/fd73c079abc58e10183a4db4dc9dc5012db17476 commit
- git.kernel.org/stable/c/bff83b723e93acc788bd690dc4bc1f6f4356c35b commit
- git.kernel.org/stable/c/826170a49ca1315af6b293a02200585b1e2186d9 commit
- git.kernel.org/stable/c/a991c28066e7ba4da7450bb04478849f7ac6a14a commit
- git.kernel.org/stable/c/21d0f05989bf0d5cef57b467a7fa4feefbd7236a commit
- git.kernel.org/stable/c/b5965c4221165045e19736794ca5f48ae3d67142 commit
Is CVE-2026-98722 in your stack? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerVendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2026-98722 updated cvss 4.4
kernel: mtd: block2mtd: Fix divide error when erase_size is zero
-
Red Hat Enterprise Linux 6 perf, kernel, python-perf, kernel-kdump, kernel-firmware, kernel-bootwrapper, +1 moreaffected: no fix planned “Out of support scope”
-
Red Hat Enterprise Linux 7 perf, kernel, bpftool, kernel-rt, python-perf, kernel-kdump, +8 more Red Hat Enterprise Linux 8 perf, kernel, bpftool, kernel-rt, kernel-core, kernel-tools, +29 more Red Hat Enterprise Linux 9 rv, perf, rtla, kernel, bpftool, libperf, +83 more Red Hat Enterprise Linux 10 kernel Red Hat OpenShift Container Platform 4 openshift/ose-rhel-coreos-8, openshift/ose-rhel-coreos-9 Red Hat OpenShift Container Platform 5 openshift/ose-rhel-coreos-9not affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
0.18% chance of exploitation in the next 30 days, higher than 7% of all scored CVEs (FIRST EPSS, 2026-11-11).
Affected products
- Linux Linux
Classification
- Technology feeds
References
- git.kernel.org /stable/c/c8004de07739fa9a39e310e859384f1458d7d076
- git.kernel.org /stable/c/7ad5287e58d7aa1a848105f119e6c5b00446882f
- git.kernel.org /stable/c/fd73c079abc58e10183a4db4dc9dc5012db17476
- git.kernel.org /stable/c/bff83b723e93acc788bd690dc4bc1f6f4356c35b
- git.kernel.org /stable/c/826170a49ca1315af6b293a02200585b1e2186d9
- git.kernel.org /stable/c/a991c28066e7ba4da7450bb04478849f7ac6a14a
- git.kernel.org /stable/c/21d0f05989bf0d5cef57b467a7fa4feefbd7236a
- git.kernel.org /stable/c/b5965c4221165045e19736794ca5f48ae3d67142
Sources
- CVE List CVE-2026-98722
- NVD CVE-2026-98722
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.