CVE-2026-72108

Source
https://cve.org/CVERecord?id=CVE-2026-72108
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-72108.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-72108
Downstream
Published
2026-08-15T05:52:50.321Z
Modified
2026-08-18T03:56:20.322201425Z
Severity
  • 7.8 (High) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
dm thin metadata: fix metadata snapshot consistency on commit failure
Details

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

dm thin metadata: fix metadata snapshot consistency on commit failure

__reservemetadatasnap() and __releasemetadatasnap() modify the superblock's heldroot directly in the blockmanager's buffer. If the subsequent metadata commit fails, the heldroot gets flushed to disk through the aborttransaction path, resulting in inconsistent metadata.

Reproducer 1: __reservemetadatasnap()

  1. Create a 2 MiB metadata device and make the region after the 14th block inaccessible, to trigger metadata commit failure in the subsequent reservemetadatasnap operation. The 14th block will be the shadow destination for the index block.

dmsetup create tmeta --table "0 112 linear /dev/sdc 0 112 3984 error"

  1. Create a 16 MiB thin-pool

dmsetup create tdata --table "0 32768 zero" dd if=/dev/zero of=/dev/mapper/tmeta bs=4k count=1 dmsetup create tpool --table "0 32768 thin-pool /dev/mapper/tmeta \ /dev/mapper/tdata 128 0 1 skipblockzeroing"

  1. Take a metadata snapshot to trigger metadata commit failure and transaction abort. However, the held_root is written to disk, breaking metadata consistency.

dmsetup message tpool 0 "reservemetadatasnap"

thin_check v1.2.2 result:

Bad reference count for metadata block 6. Expected 2, but space map contains 1. Bad reference count for metadata block 7. Expected 2, but space map contains 1. Bad reference count for metadata block 13. Expected 1, but space map contains 0.

Reproducer 2: __releasemetadatasnap()

  1. Create a 2 MiB metadata device and make the region after the 16th block inaccessible, to trigger metadata commit failure in the subsequent releasemetadatasnap operation. The 16th block will be the shadow destination for the index block.

dmsetup create tmeta --table "0 128 linear /dev/sdc 0 128 3968 error"

  1. Create a 16 MiB thin-pool

dmsetup create tdata --table "0 32768 zero" dd if=/dev/zero of=/dev/mapper/tmeta bs=4k count=1 dmsetup create tpool --table "0 32768 thin-pool /dev/mapper/tmeta \ /dev/mapper/tdata 128 0 1 skipblockzeroing"

  1. Reserve then release the metadata snapshot, to trigger metadata commit failure and transaction abort. The held_root gets removed from the on-disk superblock, causing inconsistent metadata.

dmsetup message tpool 0 "reservemetadatasnap" dmsetup message tpool 0 "releasemetadatasnap"

thin_check v1.2.2 result:

Bad reference count for metadata block 6. Expected 1, but space map contains 2. Bad reference count for metadata block 7. Expected 1, but space map contains 2. 1 metadata blocks have leaked.

Fix by deferring the held_root update to commit time.

Additionally, move the existing-snapshot check in __reservemetadatasnap before the shadow operation to avoid unnecessary work. In _releasemetadatasnap, clear pmd->heldroot before btree deletion so partial failure leaks blocks rather than leaving a stale reference, and unlock the snapshot block before decrementing its refcount.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/72xxx/CVE-2026-72108.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
991d9fa02da0dd1f843dc011376965e0c8c6c9b5
Fixed
4af993468193cf4cd32ba5748786e7801945f7d2
Fixed
abf2fae92cbe68945028987d498cc72f8f0e23a8
Fixed
5efb1a7734ed4035fa4fdc3716bdb84621f27cf6
Fixed
3dc9ae1029320d77472c44965e572f176949cd63
Fixed
b5f9a31c51cbb374a1713c3494f8660ab070f035
Fixed
7f76245960a332f39b08cc556e675d1765dc5bbb
Fixed
9f1a0d27586ceab055e6b050e3731ce3c6b2c4f0
Fixed
5bcd4d3058ebaf46ad2e163829d87dd4870c7a45

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-72108.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
3.2.0
Fixed
5.10.261
Type
ECOSYSTEM
Events
Introduced
5.11.0
Fixed
5.15.212
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
6.1.178
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.6.145
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.12.97
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.18.40
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
7.1.5

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-72108.json"