CVE-2025-21874
Severity CVSS v4.0:
Pending analysis
Type:
CWE-369
Divide By Zero
Publication date:
27/03/2025
Last modified:
30/10/2025
Description
In the Linux kernel, the following vulnerability has been resolved:<br />
<br />
dm-integrity: Avoid divide by zero in table status in Inline mode<br />
<br />
In Inline mode, the journal is unused, and journal_sectors is zero.<br />
<br />
Calculating the journal watermark requires dividing by journal_sectors,<br />
which should be done only if the journal is configured.<br />
<br />
Otherwise, a simple table query (dmsetup table) can cause OOPS.<br />
<br />
This bug did not show on some systems, perhaps only due to<br />
compiler optimization.<br />
<br />
On my 32-bit testing machine, this reliably crashes with the following:<br />
<br />
: Oops: divide error: 0000 [#1] PREEMPT SMP<br />
: CPU: 0 UID: 0 PID: 2450 Comm: dmsetup Not tainted 6.14.0-rc2+ #959<br />
: EIP: dm_integrity_status+0x2f8/0xab0 [dm_integrity]<br />
...
Impact
Base Score 3.x
5.50
Severity 3.x
MEDIUM
Vulnerable products and versions
| CPE | From | Up to |
|---|---|---|
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 6.11 (including) | 6.12.18 (excluding) |
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 6.13 (including) | 6.13.6 (excluding) |
| cpe:2.3:o:linux:linux_kernel:6.14:rc1:*:*:*:*:*:* | ||
| cpe:2.3:o:linux:linux_kernel:6.14:rc2:*:*:*:*:*:* | ||
| cpe:2.3:o:linux:linux_kernel:6.14:rc3:*:*:*:*:*:* | ||
| cpe:2.3:o:linux:linux_kernel:6.14:rc4:*:*:*:*:*:* |
To consult the complete list of CPE names with products and versions, see this page



