{"api_version":"1","generated_at":"2026-12-04T13:19:53+00:00","cve":"CVE-2026-143019","urls":{"html":"https://cve.report/CVE-2026-143019","api":"https://cve.report/api/cve/CVE-2026-143019.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-143019","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-143019"},"summary":{"title":"dm snapshot: fix discard writing into the next COW chunk","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ndm snapshot: fix discard writing into the next COW chunk\n\nzero_exception() zeroes one chunk of the COW device and takes the start\nsector from bio->bi_iter.bi_sector.  remap_exception() has already set\nthat to the COW chunk start plus the offset inside the chunk.  That\noffset is needed for reads and writes, but for a discard it is wrong:\nthe zeroing window is shifted, so the head of the target chunk keeps\nits old data and the tail lands in the next COW chunk, which holds a\ndifferent exception.\n\nio_overlaps_chunk() should have caught this, but it only compares the\nlength.  \"maps to entire chunks\" in snapshot.rst also means the discard\nhas to start on a chunk boundary.\n\nA discard that is not a full chunk has a second problem: after\nremap_exception() it is sent to the COW device, where it hits a chunk\nthat still backs a live exception.  After a discard the contents are\nundefined, but the exception stays in the table and keeps pointing at\nthat chunk, so a later read returns whatever the discard left instead\nof the snapshot's data.\n\nReproducer:\n\n\ttruncate -s 4M o.img c.img\n\to=$(losetup -f --show o.img)\n\tc=$(losetup -f --show c.img)\n\tdmsetup create snap --table \\\n\t\t\"0 8192 snapshot $o $c P 512 1 discard_zeroes_cow\"\n\n\t# write two chunks, this creates two exceptions\n\thead -c 256K /dev/zero | tr '\\000' '\\252' > pat\n\tdd if=pat of=/dev/mapper/snap bs=256K seek=1 count=1 conv=notrunc\n\tdd if=pat of=/dev/mapper/snap bs=256K seek=2 count=1 conv=notrunc\n\n\t# shift the snapshot by 8 sectors, so a discard that is aligned on\n\t# top is unaligned inside the snapshot\n\tdmsetup create top --table \"0 8184 linear /dev/mapper/snap 8\"\n\tblkdiscard -o 262144 -l 262144 /dev/mapper/top\n\tsync\n\techo 3 > /proc/sys/vm/drop_caches\n\n\t# chunk 1\n\tdd if=/dev/mapper/snap bs=512 skip=512 count=8 | od -An -tx1 -N1\n\t# chunk 2\n\tdd if=/dev/mapper/snap bs=512 skip=1024 count=8 | od -An -tx1 -N1\n\nBefore: aa 00  <- chunk 2 was zeroed although it was not discarded\nAfter:  aa aa  <- nothing written, a discard is only a hint\n\nFix it by requiring the discard to start on a chunk boundary in\nio_overlaps_chunk(), and by finishing a discard that is not a full\nchunk with bio_endio() instead of passing it down to the COW device.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-12-03 10:17:29","updated_at":"2026-12-03 10:17:29"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/19ff998f1d27e1417b286ae0ec88fc19842d4f2f","name":"https://git.kernel.org/stable/c/19ff998f1d27e1417b286ae0ec88fc19842d4f2f","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/4a02cc97d87a3c2eb7c37ac6ea7e8ef8e8fc0344","name":"https://git.kernel.org/stable/c/4a02cc97d87a3c2eb7c37ac6ea7e8ef8e8fc0344","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/1fa8f3def9b79052ed510aa85eefbdb2d7b0ead1","name":"https://git.kernel.org/stable/c/1fa8f3def9b79052ed510aa85eefbdb2d7b0ead1","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/6a227764d4e9ffdbe9ab4e59e9b24e21fa0e91bd","name":"https://git.kernel.org/stable/c/6a227764d4e9ffdbe9ab4e59e9b24e21fa0e91bd","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/73174b4bb6fcd0e6cf973c9402a0fae2e567ad9f","name":"https://git.kernel.org/stable/c/73174b4bb6fcd0e6cf973c9402a0fae2e567ad9f","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/0c661d80fdbeea980d3e03b528ecb51e38f0d85e","name":"https://git.kernel.org/stable/c/0c661d80fdbeea980d3e03b528ecb51e38f0d85e","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-143019","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-143019","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 2e6023850e177dbaca21498ada04c5a5ac93f812 1fa8f3def9b79052ed510aa85eefbdb2d7b0ead1 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 2e6023850e177dbaca21498ada04c5a5ac93f812 6a227764d4e9ffdbe9ab4e59e9b24e21fa0e91bd git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 2e6023850e177dbaca21498ada04c5a5ac93f812 4a02cc97d87a3c2eb7c37ac6ea7e8ef8e8fc0344 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 2e6023850e177dbaca21498ada04c5a5ac93f812 19ff998f1d27e1417b286ae0ec88fc19842d4f2f git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 2e6023850e177dbaca21498ada04c5a5ac93f812 0c661d80fdbeea980d3e03b528ecb51e38f0d85e git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 2e6023850e177dbaca21498ada04c5a5ac93f812 73174b4bb6fcd0e6cf973c9402a0fae2e567ad9f git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 5.3","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.3 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.10.276 5.10.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.15.227 5.15.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.12.120 6.12.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.66 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.7 7.3.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.4-rc3 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":{"cve_year":"2026","cve_id":"143019","cve":"CVE-2026-143019","epss":"0.002150000","percentile":"0.126090000","score_date":"2026-12-03","updated_at":"2026-12-04 00:14:18"},"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["drivers/md/dm-snap.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"1fa8f3def9b79052ed510aa85eefbdb2d7b0ead1","status":"affected","version":"2e6023850e177dbaca21498ada04c5a5ac93f812","versionType":"git"},{"lessThan":"6a227764d4e9ffdbe9ab4e59e9b24e21fa0e91bd","status":"affected","version":"2e6023850e177dbaca21498ada04c5a5ac93f812","versionType":"git"},{"lessThan":"4a02cc97d87a3c2eb7c37ac6ea7e8ef8e8fc0344","status":"affected","version":"2e6023850e177dbaca21498ada04c5a5ac93f812","versionType":"git"},{"lessThan":"19ff998f1d27e1417b286ae0ec88fc19842d4f2f","status":"affected","version":"2e6023850e177dbaca21498ada04c5a5ac93f812","versionType":"git"},{"lessThan":"0c661d80fdbeea980d3e03b528ecb51e38f0d85e","status":"affected","version":"2e6023850e177dbaca21498ada04c5a5ac93f812","versionType":"git"},{"lessThan":"73174b4bb6fcd0e6cf973c9402a0fae2e567ad9f","status":"affected","version":"2e6023850e177dbaca21498ada04c5a5ac93f812","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["drivers/md/dm-snap.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"5.3"},{"lessThan":"5.3","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"5.10.*","status":"unaffected","version":"5.10.276","versionType":"semver"},{"lessThanOrEqual":"5.15.*","status":"unaffected","version":"5.15.227","versionType":"semver"},{"lessThanOrEqual":"6.12.*","status":"unaffected","version":"6.12.120","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.66","versionType":"semver"},{"lessThanOrEqual":"7.3.*","status":"unaffected","version":"7.3.7","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.4-rc3","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.10.276","versionStartIncluding":"5.3","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.15.227","versionStartIncluding":"5.3","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.12.120","versionStartIncluding":"5.3","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.66","versionStartIncluding":"5.3","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.7","versionStartIncluding":"5.3","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc3","versionStartIncluding":"5.3","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\ndm snapshot: fix discard writing into the next COW chunk\n\nzero_exception() zeroes one chunk of the COW device and takes the start\nsector from bio->bi_iter.bi_sector.  remap_exception() has already set\nthat to the COW chunk start plus the offset inside the chunk.  That\noffset is needed for reads and writes, but for a discard it is wrong:\nthe zeroing window is shifted, so the head of the target chunk keeps\nits old data and the tail lands in the next COW chunk, which holds a\ndifferent exception.\n\nio_overlaps_chunk() should have caught this, but it only compares the\nlength.  \"maps to entire chunks\" in snapshot.rst also means the discard\nhas to start on a chunk boundary.\n\nA discard that is not a full chunk has a second problem: after\nremap_exception() it is sent to the COW device, where it hits a chunk\nthat still backs a live exception.  After a discard the contents are\nundefined, but the exception stays in the table and keeps pointing at\nthat chunk, so a later read returns whatever the discard left instead\nof the snapshot's data.\n\nReproducer:\n\n\ttruncate -s 4M o.img c.img\n\to=$(losetup -f --show o.img)\n\tc=$(losetup -f --show c.img)\n\tdmsetup create snap --table \\\n\t\t\"0 8192 snapshot $o $c P 512 1 discard_zeroes_cow\"\n\n\t# write two chunks, this creates two exceptions\n\thead -c 256K /dev/zero | tr '\\000' '\\252' > pat\n\tdd if=pat of=/dev/mapper/snap bs=256K seek=1 count=1 conv=notrunc\n\tdd if=pat of=/dev/mapper/snap bs=256K seek=2 count=1 conv=notrunc\n\n\t# shift the snapshot by 8 sectors, so a discard that is aligned on\n\t# top is unaligned inside the snapshot\n\tdmsetup create top --table \"0 8184 linear /dev/mapper/snap 8\"\n\tblkdiscard -o 262144 -l 262144 /dev/mapper/top\n\tsync\n\techo 3 > /proc/sys/vm/drop_caches\n\n\t# chunk 1\n\tdd if=/dev/mapper/snap bs=512 skip=512 count=8 | od -An -tx1 -N1\n\t# chunk 2\n\tdd if=/dev/mapper/snap bs=512 skip=1024 count=8 | od -An -tx1 -N1\n\nBefore: aa 00  <- chunk 2 was zeroed although it was not discarded\nAfter:  aa aa  <- nothing written, a discard is only a hint\n\nFix it by requiring the discard to start on a chunk boundary in\nio_overlaps_chunk(), and by finishing a discard that is not a full\nchunk with bio_endio() instead of passing it down to the COW device."}],"providerMetadata":{"dateUpdated":"2026-12-03T09:17:54.070Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/1fa8f3def9b79052ed510aa85eefbdb2d7b0ead1"},{"url":"https://git.kernel.org/stable/c/6a227764d4e9ffdbe9ab4e59e9b24e21fa0e91bd"},{"url":"https://git.kernel.org/stable/c/4a02cc97d87a3c2eb7c37ac6ea7e8ef8e8fc0344"},{"url":"https://git.kernel.org/stable/c/19ff998f1d27e1417b286ae0ec88fc19842d4f2f"},{"url":"https://git.kernel.org/stable/c/0c661d80fdbeea980d3e03b528ecb51e38f0d85e"},{"url":"https://git.kernel.org/stable/c/73174b4bb6fcd0e6cf973c9402a0fae2e567ad9f"}],"title":"dm snapshot: fix discard writing into the next COW chunk","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-143019","datePublished":"2026-12-03T09:17:54.070Z","dateReserved":"2026-12-03T03:10:28.343Z","dateUpdated":"2026-12-03T09:17:54.070Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-12-03 10:17:29","lastModifiedDate":"2026-12-03 10:17:29","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"143019","Ordinal":"1","Title":"dm snapshot: fix discard writing into the next COW chunk","CVE":"CVE-2026-143019","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"143019","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\ndm snapshot: fix discard writing into the next COW chunk\n\nzero_exception() zeroes one chunk of the COW device and takes the start\nsector from bio->bi_iter.bi_sector.  remap_exception() has already set\nthat to the COW chunk start plus the offset inside the chunk.  That\noffset is needed for reads and writes, but for a discard it is wrong:\nthe zeroing window is shifted, so the head of the target chunk keeps\nits old data and the tail lands in the next COW chunk, which holds a\ndifferent exception.\n\nio_overlaps_chunk() should have caught this, but it only compares the\nlength.  \"maps to entire chunks\" in snapshot.rst also means the discard\nhas to start on a chunk boundary.\n\nA discard that is not a full chunk has a second problem: after\nremap_exception() it is sent to the COW device, where it hits a chunk\nthat still backs a live exception.  After a discard the contents are\nundefined, but the exception stays in the table and keeps pointing at\nthat chunk, so a later read returns whatever the discard left instead\nof the snapshot's data.\n\nReproducer:\n\n\ttruncate -s 4M o.img c.img\n\to=$(losetup -f --show o.img)\n\tc=$(losetup -f --show c.img)\n\tdmsetup create snap --table \\\n\t\t\"0 8192 snapshot $o $c P 512 1 discard_zeroes_cow\"\n\n\t# write two chunks, this creates two exceptions\n\thead -c 256K /dev/zero | tr '\\000' '\\252' > pat\n\tdd if=pat of=/dev/mapper/snap bs=256K seek=1 count=1 conv=notrunc\n\tdd if=pat of=/dev/mapper/snap bs=256K seek=2 count=1 conv=notrunc\n\n\t# shift the snapshot by 8 sectors, so a discard that is aligned on\n\t# top is unaligned inside the snapshot\n\tdmsetup create top --table \"0 8184 linear /dev/mapper/snap 8\"\n\tblkdiscard -o 262144 -l 262144 /dev/mapper/top\n\tsync\n\techo 3 > /proc/sys/vm/drop_caches\n\n\t# chunk 1\n\tdd if=/dev/mapper/snap bs=512 skip=512 count=8 | od -An -tx1 -N1\n\t# chunk 2\n\tdd if=/dev/mapper/snap bs=512 skip=1024 count=8 | od -An -tx1 -N1\n\nBefore: aa 00  <- chunk 2 was zeroed although it was not discarded\nAfter:  aa aa  <- nothing written, a discard is only a hint\n\nFix it by requiring the discard to start on a chunk boundary in\nio_overlaps_chunk(), and by finishing a discard that is not a full\nchunk with bio_endio() instead of passing it down to the COW device.","Type":"Description","Title":"dm snapshot: fix discard writing into the next COW chunk"}]}}}