VDB

CVE-2025-21874

CVE-2025-21874 PUBLISHED

dm-integrity: Avoid divide by zero in table status in Inline mode

Reported by linux · Published March 27, 2025

In the Linux kernel, the following vulnerability has been resolved: dm-integrity: Avoid divide by zero in table status in Inline mode In Inline mode, the journal is unused, and journal_sectors is zero. Calculating the journal watermark requires dividing by journal_sectors, which should be done only if the journal is configured. Otherwise, a simple table query (dmsetup table) can cause OOPS. This bug did not show on some systems, perhaps only due to compiler optimization. On my 32-bit testing machine, this reliably crashes with the following: : Oops: divide error: 0000 [#1] PREEMPT SMP : CPU: 0 UID: 0 PID: 2450 Comm: dmsetup Not tainted 6.14.0-rc2+ #959 : EIP: dm_integrity_status+0x2f8/0xab0 [dm_integrity] ...

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
linux_kernellinux6.13.6, 6.12.18
LinuxLinux7fb39882b20c98a9a393c244c86b56ef6933cff8, 22c6f577b3cb184857b440ae5e5916f6c9e7021d, 06d9895f265282e939a8933bb18de82eba2b4dda

Affected products

VendorProductVersions
LinuxLinuxfb0987682c629c1d2c476f35f6fde405a5e304a4, fb0987682c629c1d2c476f35f6fde405a5e304a4, fb0987682c629c1d2c476f35f6fde405a5e304a4
LinuxLinux6.11, 0, 6.12.18
LinuxLinux6.14, 0, 6.12.18
linuxlinux_kernel6.11, 6.11, 6.11

Timeline

  • Mar 27, 2025 CVE Published
  • Mar 28, 2025 EPSS Score (30 in total, the first dated here)
  • Mar 28, 2025 Coalition ESS Score (11 in total, the first dated here)
  • Dec 22, 2025 Security Advisory (128 in total, the first dated here)
  • Sep 5, 2026 Distribution Patch (120 in total, the first dated here)

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2025-21874
vulnetix vdb fixes CVE-2025-21874

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-21874/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›