{
  "id": "CVE-2026-72108",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-72108",
  "published_at": "2026-08-15T05:52:50.321Z",
  "title": "dm thin metadata: fix metadata snapshot consistency on commit failure",
  "vendor": "Linux",
  "product": "Linux",
  "cvss": {
    "score": 7.8,
    "source": "cna",
    "vector": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "In the Linux kernel, the following vulnerability has been resolved:\n\ndm thin metadata: fix metadata snapshot consistency on commit failure\n\n__reserve_metadata_snap() and __release_metadata_snap() modify the\nsuperblock's held_root directly in the block_manager's buffer. If the\nsubsequent metadata commit fails, the held_root gets flushed to disk\nthrough the abort_transaction path, resulting in inconsistent metadata.\n\nReproducer 1: __reserve_metadata_snap()\n\n1. Create a 2 MiB metadata device and make the region after the 14th\n   block inaccessible, to trigger metadata commit failure in the\n   subsequent reserve_metadata_snap operation. The 14th block will be\n   the shadow destination for the index block.\n\ndmsetup create tmeta --table \"0 112 linear /dev/sdc 0\n112 3984 error\"\n\n2. Create a 16 MiB thin-pool\n\ndmsetup create tdata --table \"0 32768 zero\"\ndd if=/dev/zero of=/dev/mapper/tmeta bs=4k count=1\ndmsetup create tpool --table \"0 32768 thin-pool /dev/mapper/tmeta \\\n/dev/mapper/tdata 128 0 1 skip_block_zeroing\"\n\n3. Take a metadata snapshot to trigger metadata commit failure and\n   transaction abort. However, the held_root is written to disk,\n   breaking metadata consistency.\n\ndmsetup message tpool 0 \"reserve_metadata_snap\"\n\nthin_check v1.2.2 result:\n\nBad reference count for metadata block 6.  Expected 2, but space map contains 1.\nBad reference count for metadata block 7.  Expected 2, but space map contains 1.\nBad reference count for metadata block 13.  Expected 1, but space map contains 0.\n\nReproducer 2: __release_metadata_snap()\n\n1. Create a 2 MiB metadata device and make the region after the 16th\n   block inaccessible, to trigger metadata commit failure in the\n   subsequent release_metadata_snap operation. The 16th block will be\n   the shadow destination for the index block.\n\ndmsetup create tmeta --table \"0 128 linear /dev/sdc 0\n128 3968 error\"\n\n2. Create a 16 MiB thin-pool\n\ndmsetup create tdata --table \"0 32768 zero\"\ndd if=/dev/zero of=/dev/mapper/tmeta bs=4k count=1\ndmsetup create tpool --table \"0 32768 thin-pool /dev/mapper/tmeta \\\n/dev/mapper/tdata 128 0 1 skip_block_zeroing\"\n\n3. Reserve then release the metadata snapshot, to trigger metadata\n   commit failure and transaction abort. The held_root gets removed\n   from the on-disk superblock, causing inconsistent metadata.\n\ndmsetup message tpool 0 \"reserve_metadata_snap\"\ndmsetup message tpool 0 \"release_metadata_snap\"\n\nthin_check v1.2.2 result:\n\nBad reference count for metadata block 6.  Expected 1, but space map contains 2.\nBad reference count for metadata block 7.  Expected 1, but space map contains 2.\n1 metadata blocks have leaked.\n\nFix by deferring the held_root update to commit time.\n\nAdditionally, move the existing-snapshot check in __reserve_metadata_snap\nbefore the shadow operation to avoid unnecessary work. In\n__release_metadata_snap, clear pmd-\u003eheld_root before btree deletion so\npartial failure leaks blocks rather than leaving a stale reference, and\nunlock the snapshot block before decrementing its refcount.",
  "cwe": "CWE-672",
  "cvss_by_source": {
    "cna": 7.8
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "\u003e= 991d9fa02da0dd1f843dc011376965e0c8c6c9b5, \u003c 4af993468193cf4cd32ba5748786e7801945f7d2",
          "\u003e= 991d9fa02da0dd1f843dc011376965e0c8c6c9b5, \u003c abf2fae92cbe68945028987d498cc72f8f0e23a8",
          "\u003e= 991d9fa02da0dd1f843dc011376965e0c8c6c9b5, \u003c 5efb1a7734ed4035fa4fdc3716bdb84621f27cf6",
          "\u003e= 991d9fa02da0dd1f843dc011376965e0c8c6c9b5, \u003c 3dc9ae1029320d77472c44965e572f176949cd63",
          "\u003e= 991d9fa02da0dd1f843dc011376965e0c8c6c9b5, \u003c b5f9a31c51cbb374a1713c3494f8660ab070f035",
          "\u003e= 991d9fa02da0dd1f843dc011376965e0c8c6c9b5, \u003c 7f76245960a332f39b08cc556e675d1765dc5bbb",
          "\u003e= 991d9fa02da0dd1f843dc011376965e0c8c6c9b5, \u003c 9f1a0d27586ceab055e6b050e3731ce3c6b2c4f0",
          "\u003e= 991d9fa02da0dd1f843dc011376965e0c8c6c9b5, \u003c 5bcd4d3058ebaf46ad2e163829d87dd4870c7a45"
        ],
        "fixed_in": [
          "4af993468193cf4cd32ba5748786e7801945f7d2",
          "abf2fae92cbe68945028987d498cc72f8f0e23a8",
          "5efb1a7734ed4035fa4fdc3716bdb84621f27cf6",
          "3dc9ae1029320d77472c44965e572f176949cd63",
          "b5f9a31c51cbb374a1713c3494f8660ab070f035",
          "7f76245960a332f39b08cc556e675d1765dc5bbb",
          "9f1a0d27586ceab055e6b050e3731ce3c6b2c4f0",
          "5bcd4d3058ebaf46ad2e163829d87dd4870c7a45"
        ]
      },
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "3.2"
        ],
        "fixed_in": [
          "0",
          "5.10.261",
          "5.15.212",
          "6.1.178",
          "6.6.145",
          "6.12.97",
          "6.18.40",
          "7.1.5",
          "7.2"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Linux to 4af993468193cf4cd32ba5748786e7801945f7d2 or abf2fae92cbe68945028987d498cc72f8f0e23a8 or 5efb1a7734ed4035fa4fdc3716bdb84621f27cf6 or 3dc9ae1029320d77472c44965e572f176949cd63 or b5f9a31c51cbb374a1713c3494f8660ab070f035 or 7f76245960a332f39b08cc556e675d1765dc5bbb or 9f1a0d27586ceab055e6b050e3731ce3c6b2c4f0 or 5bcd4d3058ebaf46ad2e163829d87dd4870c7a45 or later.",
      "Upgrade Linux to 0 or 5.10.261 or 5.15.212 or 6.1.178 or 6.6.145 or 6.12.97 or 6.18.40 or 7.1.5 or 7.2 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
