CVE-2026-143021: dm snapshot: fix discard_granularity unit in snapshot_io_hints
dm snapshot: fix discardgranularity unit in snapshotiohints
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.12.120 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.66 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.7 - Compensating control
In dm snapshot’s snapshot_io_hints(), convert chunk_size from 512-byte sectors to bytes using chunk_size << SECTOR_SHIFT before assigning it to queue_limits.discard_granularity, matching io_overlaps_chunk().
Event History
Frequently Asked Questions
Which systems are exposed to the divide-by-zero fault?
Systems using device-mapper snapshot targets with snapshot store chunk sizes below 512 sectors are exposed. The report specifically identifies 16 KiB, or 32-sector, chunks as a triggering example.
When does the failure occur?
The fault occurs while device-mapper calculates and stacks queue limits during table setup or loading. The resulting kernel trace includes queue_limit_discard_alignment(), blk_stack_limits(), dm_calculate_queue_limits(), dm_setup_md_queue(), and table_load().
What can be done if an updated kernel cannot be deployed immediately?
Avoid creating or loading device-mapper snapshots whose chunk size is smaller than 512 sectors. This prevents discard_granularity from being reduced to zero sectors in the affected queue-limit calculation path.