GHSA-RRF4-C877-VG97
Vulnerability from github – Published: 2026-12-03 12:31 – Updated: 2026-12-03 12:31In 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.
{
"affected": [],
"aliases": [
"CVE-2026-143019"
],
"database_specific": {
"cwe_ids": [],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2026-12-03T10:17:29Z",
"severity": null
},
"details": "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-\u003ebi_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\u0027s 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 \u0027\\000\u0027 \u0027\\252\u0027 \u003e 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 \u003e /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 \u003c- chunk 2 was zeroed although it was not discarded\nAfter: aa aa \u003c- 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.",
"id": "GHSA-rrf4-c877-vg97",
"modified": "2026-12-03T12:31:02Z",
"published": "2026-12-03T12:31:02Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2026-143019"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/0c661d80fdbeea980d3e03b528ecb51e38f0d85e"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/19ff998f1d27e1417b286ae0ec88fc19842d4f2f"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/1fa8f3def9b79052ed510aa85eefbdb2d7b0ead1"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/4a02cc97d87a3c2eb7c37ac6ea7e8ef8e8fc0344"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/6a227764d4e9ffdbe9ab4e59e9b24e21fa0e91bd"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/73174b4bb6fcd0e6cf973c9402a0fae2e567ad9f"
}
],
"schema_version": "1.4.0",
"severity": []
}
Drag nodes to arrange them. Double-click a related vulnerability to open it, or a source to visit its link. The Physics button on the left tunes the layout and the simulation; the legend at the bottom left hides or shows nodes by kind and by sighting type.
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Vulnerability timeline
Sightings and recorded dates, grouped by day · UTC
How durations are calculated
Following the VTEM framework (Black Hat USA 2015), time to patch starts when the vendor or a coordinator was informed, total time to patch at discovery, and disclosure to patch at public disclosure; vendor response time runs from the report to its acknowledgement. Time to exploit and time unpatched start at the earliest discovery or report, falling back to public disclosure. Unpatched time ends at the first recorded patch, or the calculation time when no patch is recorded. Exploitation to patch shows the interval between those two events; a published proof of concept is a public exploit, not exploitation. The method is described in a publication.
Each result shows its source dates. A negative interval means the end event came first; when date-only inputs leave the order open, the result says so. Date-only inputs are approximate. The earliest evidence wins: KEV report dates and sightings are labelled as such. Records describing another vulnerability are listed but never calculated from, and a PoC alone does not establish exploitation. Missing patch evidence does not prove that no patch exists. Filters below change the event list only.
Loading timeline…
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
Browse all ATT&CK techniques and the vulnerabilities related to each.
Related by attack behaviour
Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.