CVE-2026-143021

Not scored yetLast modified Dec 3, 2026

Description

In the Linux kernel, the following vulnerability has been resolved:

dm snapshot: fix discard_granularity unit in snapshot_io_hints

snapshot_io_hints() copies the snapshot store's chunk_size, which is in 512-byte sectors, into queue_limits.discard_granularity, which, like all other members of struct queue_limits, is in bytes.

For snapshots with a chunk size smaller than 512 sectors, e.g. the 16 KiB (32-sector) chunks created by the syzkaller reproducer, the resulting granularity is smaller than a single sector. When dm_calculate_queue_limits() then stacks the target limits into the table limits:

blk_stack_limits(limits, &ti_limits, 0)

queue_limit_discard_alignment() truncates that granularity to zero sectors and sector_div() divides by zero:

Oops: divide error: 0000 [#1] SMP KASAN NOPTI RIP: 0010:queue_limit_discard_alignment block/blk-settings.c:645 [inline] RIP: 0010:blk_stack_limits+0x1105/0x2d00 block/blk-settings.c:916 Call Trace: dm_calculate_queue_limits+0x70c/0x1510 drivers/md/dm-table.c:1823 dm_setup_md_queue+0x199/0x4f0 drivers/md/dm.c:2618 table_load+0x4fd/0x8a0 drivers/md/dm-ioctl.c:1661

The divide fault itself only became reachable when commit e924da7d6622 ("block: Drop granularity check in queue_limit_discard_alignment()") removed the check for a sub-sector granularity in v6.13. Kernels before that returned a zero discard alignment instead of faulting, but they still advertised a granularity 512 times too small.

Use the same chunk_size << SECTOR_SHIFT conversion that io_overlaps_chunk() already applies to turn chunk_size into bytes.

Metrics

No CVSS score has been published yet.

Affected software

Source: the vendor's advisory (CNA). NVD analysis pending.

No affected versions have been published.

Timeline

Published
Dec 3, 2026
Last modified
Dec 3, 2026
NVD status
Received

Related CVEs from 2026

CVE-2026-143022In the Linux kernel, the following vulnerability has been resolved: dm persistent data: don't leak bufio buffer if find_leaf fails If findCVE-2026-143023In the Linux kernel, the following vulnerability has been resolved: dm persistent data: don't ignore writeback errors An error returned byCVE-2026-143024In the Linux kernel, the following vulnerability has been resolved: dm-sysfs: fix misbehavior if kobject_init_and_add fails If kobject_iniCVE-2026-143025In the Linux kernel, the following vulnerability has been resolved: dm-pcache: do not advance dirty_tail after backing flush failure AfterCVE-2026-143026In the Linux kernel, the following vulnerability has been resolved: dm mpath: fix buffer overflow in parse_hw_handler() parse_hw_handler()CVE-2026-143027In the Linux kernel, the following vulnerability has been resolved: dm cache: reject kcopyd client destory if it setup failed The value ofCVE-2026-143028In the Linux kernel, the following vulnerability has been resolved: dm: fix use-after-free when dm_get_device() widens the open mode ThereCVE-2026-143029In the Linux kernel, the following vulnerability has been resolved: dm: fix infinite loop in dm_blk_do_report_zones() If the device underlCVE-2026-143030In the Linux kernel, the following vulnerability has been resolved: dm: avoid double-dropping the zone reset submission reference On an erCVE-2026-143031In the Linux kernel, the following vulnerability has been resolved: dm log userspace: drop the device reference on error userspace_ctr() tCVE-2026-143032In the Linux kernel, the following vulnerability has been resolved: smb: client: don't write back through O_DIRECT handles Writeback uses CVE-2026-143033In the Linux kernel, the following vulnerability has been resolved: smb: client: don't retry failed writes forever regardless of mount opti
CVE-2026-143021: Unscored | Vulnix