CVE-2026-98722

mtd: block2mtd: Fix divide error when erase_size is zero

No CVSS score yet EPSS 0.22%

Published 18 Oct 2026 Updated 30 Oct 2026 CNA: Linux

Check your servers for CVE-2026-98722

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-98722 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

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.

Exploitation

EPSS 0.22%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 7.40% of all scored CVEs. Scores of 29 Nov 2026.

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from ea6d833a3fddcd1d60414d48f34c7f4fbe88608f, before c8004de07739fa9a39e310e859384f1458d7d076
affected from ea6d833a3fddcd1d60414d48f34c7f4fbe88608f, before 7ad5287e58d7aa1a848105f119e6c5b00446882f
affected from ea6d833a3fddcd1d60414d48f34c7f4fbe88608f, before fd73c079abc58e10183a4db4dc9dc5012db17476
affected from ea6d833a3fddcd1d60414d48f34c7f4fbe88608f, before bff83b723e93acc788bd690dc4bc1f6f4356c35b
affected from ea6d833a3fddcd1d60414d48f34c7f4fbe88608f, before 826170a49ca1315af6b293a02200585b1e2186d9
affected from ea6d833a3fddcd1d60414d48f34c7f4fbe88608f, before a991c28066e7ba4da7450bb04478849f7ac6a14a
affected from ea6d833a3fddcd1d60414d48f34c7f4fbe88608f, before 21d0f05989bf0d5cef57b467a7fa4feefbd7236a
affected from ea6d833a3fddcd1d60414d48f34c7f4fbe88608f, before b5965c4221165045e19736794ca5f48ae3d67142
Other versions: unaffected
Linux
affected 3.15
unaffected before 3.15
unaffected from 5.10.273 up to and including 5.10.*
unaffected from 5.15.224 up to and including 5.15.*
unaffected from 6.1.191 up to and including 6.1.*
unaffected from 6.6.160 up to and including 6.6.*
unaffected from 6.12.113 up to and including 6.12.*
unaffected from 6.18.56 up to and including 6.18.*
unaffected from 7.2.10 up to and including 7.2.*
unaffected 7.3 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2026-98722 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-98722

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2026-98722
trivy image --scanners vuln IMAGE | grep CVE-2026-98722

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2026-98722 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.