CVE-2026-143019

Not scored yetLast modified Dec 3, 2026

Description

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

dm snapshot: fix discard writing into the next COW chunk

zero_exception() zeroes one chunk of the COW device and takes the start sector from bio->bi_iter.bi_sector. remap_exception() has already set that to the COW chunk start plus the offset inside the chunk. That offset is needed for reads and writes, but for a discard it is wrong: the zeroing window is shifted, so the head of the target chunk keeps its old data and the tail lands in the next COW chunk, which holds a different exception.

io_overlaps_chunk() should have caught this, but it only compares the length. "maps to entire chunks" in snapshot.rst also means the discard has to start on a chunk boundary.

A discard that is not a full chunk has a second problem: after remap_exception() it is sent to the COW device, where it hits a chunk that still backs a live exception. After a discard the contents are undefined, but the exception stays in the table and keeps pointing at that chunk, so a later read returns whatever the discard left instead of the snapshot's data.

Reproducer:

truncate -s 4M o.img c.img o=$(losetup -f --show o.img) c=$(losetup -f --show c.img) dmsetup create snap --table \ "0 8192 snapshot $o $c P 512 1 discard_zeroes_cow"

# write two chunks, this creates two exceptions head -c 256K /dev/zero | tr '\000' '\252' > pat dd if=pat of=/dev/mapper/snap bs=256K seek=1 count=1 conv=notrunc dd if=pat of=/dev/mapper/snap bs=256K seek=2 count=1 conv=notrunc

# shift the snapshot by 8 sectors, so a discard that is aligned on # top is unaligned inside the snapshot dmsetup create top --table "0 8184 linear /dev/mapper/snap 8" blkdiscard -o 262144 -l 262144 /dev/mapper/top sync echo 3 > /proc/sys/vm/drop_caches

# chunk 1 dd if=/dev/mapper/snap bs=512 skip=512 count=8 | od -An -tx1 -N1 # chunk 2 dd if=/dev/mapper/snap bs=512 skip=1024 count=8 | od -An -tx1 -N1

Before: aa 00 <- chunk 2 was zeroed although it was not discarded After: aa aa <- nothing written, a discard is only a hint

Fix it by requiring the discard to start on a chunk boundary in io_overlaps_chunk(), and by finishing a discard that is not a full chunk with bio_endio() instead of passing it down to the COW device.

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-143020In the Linux kernel, the following vulnerability has been resolved: dm snapshot: split discards on chunk boundaries dm-snapshot did not seCVE-2026-143021In the Linux kernel, the following vulnerability has been resolved: dm snapshot: fix discard_granularity unit in snapshot_io_hints snapshoCVE-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() t
CVE-2026-143019: Unscored | Vulnix