CVE-2026-72108
Severity CVSS v4.0:
Pending analysis
Type:
Unavailable / Other
Publication date:
15/08/2026
Last modified:
19/10/2026
Description
In the Linux kernel, the following vulnerability has been resolved:<br />
<br />
dm thin metadata: fix metadata snapshot consistency on commit failure<br />
<br />
__reserve_metadata_snap() and __release_metadata_snap() modify the<br />
superblock&#39;s held_root directly in the block_manager&#39;s buffer. If the<br />
subsequent metadata commit fails, the held_root gets flushed to disk<br />
through the abort_transaction path, resulting in inconsistent metadata.<br />
<br />
Reproducer 1: __reserve_metadata_snap()<br />
<br />
1. Create a 2 MiB metadata device and make the region after the 14th<br />
block inaccessible, to trigger metadata commit failure in the<br />
subsequent reserve_metadata_snap operation. The 14th block will be<br />
the shadow destination for the index block.<br />
<br />
dmsetup create tmeta --table "0 112 linear /dev/sdc 0<br />
112 3984 error"<br />
<br />
2. Create a 16 MiB thin-pool<br />
<br />
dmsetup create tdata --table "0 32768 zero"<br />
dd if=/dev/zero of=/dev/mapper/tmeta bs=4k count=1<br />
dmsetup create tpool --table "0 32768 thin-pool /dev/mapper/tmeta \<br />
/dev/mapper/tdata 128 0 1 skip_block_zeroing"<br />
<br />
3. Take a metadata snapshot to trigger metadata commit failure and<br />
transaction abort. However, the held_root is written to disk,<br />
breaking metadata consistency.<br />
<br />
dmsetup message tpool 0 "reserve_metadata_snap"<br />
<br />
thin_check v1.2.2 result:<br />
<br />
Bad reference count for metadata block 6. Expected 2, but space map contains 1.<br />
Bad reference count for metadata block 7. Expected 2, but space map contains 1.<br />
Bad reference count for metadata block 13. Expected 1, but space map contains 0.<br />
<br />
Reproducer 2: __release_metadata_snap()<br />
<br />
1. Create a 2 MiB metadata device and make the region after the 16th<br />
block inaccessible, to trigger metadata commit failure in the<br />
subsequent release_metadata_snap operation. The 16th block will be<br />
the shadow destination for the index block.<br />
<br />
dmsetup create tmeta --table "0 128 linear /dev/sdc 0<br />
128 3968 error"<br />
<br />
2. Create a 16 MiB thin-pool<br />
<br />
dmsetup create tdata --table "0 32768 zero"<br />
dd if=/dev/zero of=/dev/mapper/tmeta bs=4k count=1<br />
dmsetup create tpool --table "0 32768 thin-pool /dev/mapper/tmeta \<br />
/dev/mapper/tdata 128 0 1 skip_block_zeroing"<br />
<br />
3. Reserve then release the metadata snapshot, to trigger metadata<br />
commit failure and transaction abort. The held_root gets removed<br />
from the on-disk superblock, causing inconsistent metadata.<br />
<br />
dmsetup message tpool 0 "reserve_metadata_snap"<br />
dmsetup message tpool 0 "release_metadata_snap"<br />
<br />
thin_check v1.2.2 result:<br />
<br />
Bad reference count for metadata block 6. Expected 1, but space map contains 2.<br />
Bad reference count for metadata block 7. Expected 1, but space map contains 2.<br />
1 metadata blocks have leaked.<br />
<br />
Fix by deferring the held_root update to commit time.<br />
<br />
Additionally, move the existing-snapshot check in __reserve_metadata_snap<br />
before the shadow operation to avoid unnecessary work. In<br />
__release_metadata_snap, clear pmd->held_root before btree deletion so<br />
partial failure leaks blocks rather than leaving a stale reference, and<br />
unlock the snapshot block before decrementing its refcount.
Impact
Base Score 3.x
7.80
Severity 3.x
HIGH
References to Advisories, Solutions, and Tools
- https://git.kernel.org/stable/c/3dc9ae1029320d77472c44965e572f176949cd63
- https://git.kernel.org/stable/c/4af993468193cf4cd32ba5748786e7801945f7d2
- https://git.kernel.org/stable/c/5bcd4d3058ebaf46ad2e163829d87dd4870c7a45
- https://git.kernel.org/stable/c/5efb1a7734ed4035fa4fdc3716bdb84621f27cf6
- https://git.kernel.org/stable/c/7f76245960a332f39b08cc556e675d1765dc5bbb
- https://git.kernel.org/stable/c/9f1a0d27586ceab055e6b050e3731ce3c6b2c4f0
- https://git.kernel.org/stable/c/abf2fae92cbe68945028987d498cc72f8f0e23a8
- https://git.kernel.org/stable/c/b5f9a31c51cbb374a1713c3494f8660ab070f035


