{"id":"CVE-2025-21874","summary":"dm-integrity: Avoid divide by zero in table status in Inline mode","details":"In the Linux kernel, the following vulnerability has been resolved:\n\ndm-integrity: Avoid divide by zero in table status in Inline mode\n\nIn Inline mode, the journal is unused, and journal_sectors is zero.\n\nCalculating the journal watermark requires dividing by journal_sectors,\nwhich should be done only if the journal is configured.\n\nOtherwise, a simple table query (dmsetup table) can cause OOPS.\n\nThis bug did not show on some systems, perhaps only due to\ncompiler optimization.\n\nOn my 32-bit testing machine, this reliably crashes with the following:\n\n : Oops: divide error: 0000 [#1] PREEMPT SMP\n : CPU: 0 UID: 0 PID: 2450 Comm: dmsetup Not tainted 6.14.0-rc2+ #959\n : EIP: dm_integrity_status+0x2f8/0xab0 [dm_integrity]\n ...","modified":"2026-04-02T12:45:15.534062Z","published":"2025-03-27T14:57:05.496Z","related":["USN-7521-2"],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/21xxx/CVE-2025-21874.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/06d9895f265282e939a8933bb18de82eba2b4dda"},{"type":"WEB","url":"https://git.kernel.org/stable/c/22c6f577b3cb184857b440ae5e5916f6c9e7021d"},{"type":"WEB","url":"https://git.kernel.org/stable/c/7fb39882b20c98a9a393c244c86b56ef6933cff8"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/21xxx/CVE-2025-21874.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-21874"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"fb0987682c629c1d2c476f35f6fde405a5e304a4"},{"fixed":"22c6f577b3cb184857b440ae5e5916f6c9e7021d"},{"fixed":"06d9895f265282e939a8933bb18de82eba2b4dda"},{"fixed":"7fb39882b20c98a9a393c244c86b56ef6933cff8"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-21874.json"}}],"schema_version":"1.7.5"}