CVE-2026-53061 (GCVE-0-2026-53061)

Vulnerability from cvelistv5 – Published: 2026-06-24 16:30 – Updated: 2026-06-24 16:30
VLAI
Title
dm cache: fix dirty mapping checking in passthrough mode switching
Summary
In the Linux kernel, the following vulnerability has been resolved: dm cache: fix dirty mapping checking in passthrough mode switching As mentioned in commit 9b1cc9f251af ("dm cache: share cache-metadata object across inactive and active DM tables"), dm-cache assumed table reload occurs after suspension, while LVM's table preload breaks this assumption. The dirty mapping check for passthrough mode was designed around this assumption and is performed during table creation, causing the check to fail with preload while metadata updates are ongoing. This risks loading dirty mappings into passthrough mode, resulting in data loss. Reproduce steps: 1. Create a writeback cache with zero migration_threshold to produce dirty mappings dmsetup create cmeta --table "0 8192 linear /dev/sdc 0" dmsetup create cdata --table "0 131072 linear /dev/sdc 8192" dmsetup create corig --table "0 262144 linear /dev/sdc 262144" dd if=/dev/zero of=/dev/mapper/cmeta bs=4k count=1 oflag=direct dmsetup create cache --table "0 262144 cache /dev/mapper/cmeta \ /dev/mapper/cdata /dev/mapper/corig 128 2 metadata2 writeback smq \ 2 migration_threshold 0" 2. Preload a table in passthrough mode dmsetup reload cache --table "0 262144 cache /dev/mapper/cmeta \ /dev/mapper/cdata /dev/mapper/corig 128 2 metadata2 passthrough smq 0" 3. Write to the first cache block to make it dirty fio --filename=/dev/mapper/cache --name=populate --rw=write --bs=4k \ --direct=1 --size=64k 4. Resume the inactive table. Now it's possible to load the dirty block into passthrough mode. dmsetup resume cache Fix by moving the checks to the preresume phase to support table preloading. Also remove the unused function dm_cache_metadata_all_clean.
Severity
No CVSS data available.
Assigner
Impacted products
Vendor Product Version
Linux Linux Affected: 2ee57d587357f0d752af6c2e3e46434a74b1bee3 , < c2e86f647561fcf5e1c6eba7d75e9e0c4299c94d (git)
Affected: 2ee57d587357f0d752af6c2e3e46434a74b1bee3 , < 5c98a3f1d7a554c9e920aa31daf92af6b5bbb8cc (git)
Affected: 2ee57d587357f0d752af6c2e3e46434a74b1bee3 , < 1443c32f24d6d8bcdf4beceef2afc09290b98717 (git)
Affected: 2ee57d587357f0d752af6c2e3e46434a74b1bee3 , < 12105c7f18375d7615dad7605d89eadae7eb12a6 (git)
Affected: 2ee57d587357f0d752af6c2e3e46434a74b1bee3 , < bd5a2c1018938e6b32670728bdb32a3f0efff00f (git)
Affected: 2ee57d587357f0d752af6c2e3e46434a74b1bee3 , < 21c503d60a257e54ca3ac58e2721bd24501d5bde (git)
Affected: 2ee57d587357f0d752af6c2e3e46434a74b1bee3 , < 01b22656d8a68dbeae59f8b80866e7b11936b20a (git)
Affected: 2ee57d587357f0d752af6c2e3e46434a74b1bee3 , < 322586745bd1a0e5f3559fd1635fdeb4dbd1d6b8 (git)
Create a notification for this product.
Linux Linux Affected: 3.13
Unaffected: 0 , < 3.13 (semver)
Unaffected: 5.10.258 , ≤ 5.10.* (semver)
Unaffected: 5.15.209 , ≤ 5.15.* (semver)
Unaffected: 6.1.175 , ≤ 6.1.* (semver)
Unaffected: 6.6.141 , ≤ 6.6.* (semver)
Unaffected: 6.12.91 , ≤ 6.12.* (semver)
Unaffected: 6.18.33 , ≤ 6.18.* (semver)
Unaffected: 7.0.10 , ≤ 7.0.* (semver)
Unaffected: 7.1 , ≤ * (original_commit_for_fix)
Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "drivers/md/dm-cache-metadata.c",
            "drivers/md/dm-cache-metadata.h",
            "drivers/md/dm-cache-target.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "c2e86f647561fcf5e1c6eba7d75e9e0c4299c94d",
              "status": "affected",
              "version": "2ee57d587357f0d752af6c2e3e46434a74b1bee3",
              "versionType": "git"
            },
            {
              "lessThan": "5c98a3f1d7a554c9e920aa31daf92af6b5bbb8cc",
              "status": "affected",
              "version": "2ee57d587357f0d752af6c2e3e46434a74b1bee3",
              "versionType": "git"
            },
            {
              "lessThan": "1443c32f24d6d8bcdf4beceef2afc09290b98717",
              "status": "affected",
              "version": "2ee57d587357f0d752af6c2e3e46434a74b1bee3",
              "versionType": "git"
            },
            {
              "lessThan": "12105c7f18375d7615dad7605d89eadae7eb12a6",
              "status": "affected",
              "version": "2ee57d587357f0d752af6c2e3e46434a74b1bee3",
              "versionType": "git"
            },
            {
              "lessThan": "bd5a2c1018938e6b32670728bdb32a3f0efff00f",
              "status": "affected",
              "version": "2ee57d587357f0d752af6c2e3e46434a74b1bee3",
              "versionType": "git"
            },
            {
              "lessThan": "21c503d60a257e54ca3ac58e2721bd24501d5bde",
              "status": "affected",
              "version": "2ee57d587357f0d752af6c2e3e46434a74b1bee3",
              "versionType": "git"
            },
            {
              "lessThan": "01b22656d8a68dbeae59f8b80866e7b11936b20a",
              "status": "affected",
              "version": "2ee57d587357f0d752af6c2e3e46434a74b1bee3",
              "versionType": "git"
            },
            {
              "lessThan": "322586745bd1a0e5f3559fd1635fdeb4dbd1d6b8",
              "status": "affected",
              "version": "2ee57d587357f0d752af6c2e3e46434a74b1bee3",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "drivers/md/dm-cache-metadata.c",
            "drivers/md/dm-cache-metadata.h",
            "drivers/md/dm-cache-target.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "3.13"
            },
            {
              "lessThan": "3.13",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.10.*",
              "status": "unaffected",
              "version": "5.10.258",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.15.*",
              "status": "unaffected",
              "version": "5.15.209",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.1.*",
              "status": "unaffected",
              "version": "6.1.175",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.6.*",
              "status": "unaffected",
              "version": "6.6.141",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.12.*",
              "status": "unaffected",
              "version": "6.12.91",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.18.*",
              "status": "unaffected",
              "version": "6.18.33",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "7.0.*",
              "status": "unaffected",
              "version": "7.0.10",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "7.1",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.10.258",
                  "versionStartIncluding": "3.13",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.15.209",
                  "versionStartIncluding": "3.13",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.1.175",
                  "versionStartIncluding": "3.13",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.6.141",
                  "versionStartIncluding": "3.13",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.12.91",
                  "versionStartIncluding": "3.13",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.18.33",
                  "versionStartIncluding": "3.13",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.0.10",
                  "versionStartIncluding": "3.13",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.1",
                  "versionStartIncluding": "3.13",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\ndm cache: fix dirty mapping checking in passthrough mode switching\n\nAs mentioned in commit 9b1cc9f251af (\"dm cache: share cache-metadata\nobject across inactive and active DM tables\"), dm-cache assumed table\nreload occurs after suspension, while LVM\u0027s table preload breaks this\nassumption. The dirty mapping check for passthrough mode was designed\naround this assumption and is performed during table creation, causing\nthe check to fail with preload while metadata updates are ongoing. This\nrisks loading dirty mappings into passthrough mode, resulting in data\nloss.\n\nReproduce steps:\n\n1. Create a writeback cache with zero migration_threshold to produce\n   dirty mappings\n\ndmsetup create cmeta --table \"0 8192 linear /dev/sdc 0\"\ndmsetup create cdata --table \"0 131072 linear /dev/sdc 8192\"\ndmsetup create corig --table \"0 262144 linear /dev/sdc 262144\"\ndd if=/dev/zero of=/dev/mapper/cmeta bs=4k count=1 oflag=direct\ndmsetup create cache --table \"0 262144 cache /dev/mapper/cmeta \\\n/dev/mapper/cdata /dev/mapper/corig 128 2 metadata2 writeback smq \\\n2 migration_threshold 0\"\n\n2. Preload a table in passthrough mode\n\ndmsetup reload cache --table \"0 262144 cache /dev/mapper/cmeta \\\n/dev/mapper/cdata /dev/mapper/corig 128 2 metadata2 passthrough smq 0\"\n\n3. Write to the first cache block to make it dirty\n\nfio --filename=/dev/mapper/cache --name=populate --rw=write --bs=4k \\\n--direct=1 --size=64k\n\n4. Resume the inactive table. Now it\u0027s possible to load the dirty block\n   into passthrough mode.\n\ndmsetup resume cache\n\nFix by moving the checks to the preresume phase to support table\npreloading. Also remove the unused function dm_cache_metadata_all_clean."
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-06-24T16:30:05.522Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/c2e86f647561fcf5e1c6eba7d75e9e0c4299c94d"
        },
        {
          "url": "https://git.kernel.org/stable/c/5c98a3f1d7a554c9e920aa31daf92af6b5bbb8cc"
        },
        {
          "url": "https://git.kernel.org/stable/c/1443c32f24d6d8bcdf4beceef2afc09290b98717"
        },
        {
          "url": "https://git.kernel.org/stable/c/12105c7f18375d7615dad7605d89eadae7eb12a6"
        },
        {
          "url": "https://git.kernel.org/stable/c/bd5a2c1018938e6b32670728bdb32a3f0efff00f"
        },
        {
          "url": "https://git.kernel.org/stable/c/21c503d60a257e54ca3ac58e2721bd24501d5bde"
        },
        {
          "url": "https://git.kernel.org/stable/c/01b22656d8a68dbeae59f8b80866e7b11936b20a"
        },
        {
          "url": "https://git.kernel.org/stable/c/322586745bd1a0e5f3559fd1635fdeb4dbd1d6b8"
        }
      ],
      "title": "dm cache: fix dirty mapping checking in passthrough mode switching",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2026-53061",
    "datePublished": "2026-06-24T16:30:05.522Z",
    "dateReserved": "2026-06-09T07:44:35.382Z",
    "dateUpdated": "2026-06-24T16:30:05.522Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2026-53061",
      "date": "2026-07-02",
      "epss": "0.00176",
      "percentile": "0.0738"
    },
    "nvd": "{\"cve\":{\"id\":\"CVE-2026-53061\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2026-06-24T17:17:18.880\",\"lastModified\":\"2026-06-24T17:17:18.880\",\"vulnStatus\":\"Received\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"In the Linux kernel, the following vulnerability has been resolved:\\n\\ndm cache: fix dirty mapping checking in passthrough mode switching\\n\\nAs mentioned in commit 9b1cc9f251af (\\\"dm cache: share cache-metadata\\nobject across inactive and active DM tables\\\"), dm-cache assumed table\\nreload occurs after suspension, while LVM\u0027s table preload breaks this\\nassumption. The dirty mapping check for passthrough mode was designed\\naround this assumption and is performed during table creation, causing\\nthe check to fail with preload while metadata updates are ongoing. This\\nrisks loading dirty mappings into passthrough mode, resulting in data\\nloss.\\n\\nReproduce steps:\\n\\n1. Create a writeback cache with zero migration_threshold to produce\\n   dirty mappings\\n\\ndmsetup create cmeta --table \\\"0 8192 linear /dev/sdc 0\\\"\\ndmsetup create cdata --table \\\"0 131072 linear /dev/sdc 8192\\\"\\ndmsetup create corig --table \\\"0 262144 linear /dev/sdc 262144\\\"\\ndd if=/dev/zero of=/dev/mapper/cmeta bs=4k count=1 oflag=direct\\ndmsetup create cache --table \\\"0 262144 cache /dev/mapper/cmeta \\\\\\n/dev/mapper/cdata /dev/mapper/corig 128 2 metadata2 writeback smq \\\\\\n2 migration_threshold 0\\\"\\n\\n2. Preload a table in passthrough mode\\n\\ndmsetup reload cache --table \\\"0 262144 cache /dev/mapper/cmeta \\\\\\n/dev/mapper/cdata /dev/mapper/corig 128 2 metadata2 passthrough smq 0\\\"\\n\\n3. Write to the first cache block to make it dirty\\n\\nfio --filename=/dev/mapper/cache --name=populate --rw=write --bs=4k \\\\\\n--direct=1 --size=64k\\n\\n4. Resume the inactive table. Now it\u0027s possible to load the dirty block\\n   into passthrough mode.\\n\\ndmsetup resume cache\\n\\nFix by moving the checks to the preresume phase to support table\\npreloading. Also remove the unused function dm_cache_metadata_all_clean.\"}],\"affected\":[{\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"affectedData\":[{\"vendor\":\"Linux\",\"product\":\"Linux\",\"defaultStatus\":\"unaffected\",\"programFiles\":[\"drivers/md/dm-cache-metadata.c\",\"drivers/md/dm-cache-metadata.h\",\"drivers/md/dm-cache-target.c\"],\"repo\":\"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\"versions\":[{\"version\":\"2ee57d587357f0d752af6c2e3e46434a74b1bee3\",\"lessThan\":\"c2e86f647561fcf5e1c6eba7d75e9e0c4299c94d\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"2ee57d587357f0d752af6c2e3e46434a74b1bee3\",\"lessThan\":\"5c98a3f1d7a554c9e920aa31daf92af6b5bbb8cc\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"2ee57d587357f0d752af6c2e3e46434a74b1bee3\",\"lessThan\":\"1443c32f24d6d8bcdf4beceef2afc09290b98717\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"2ee57d587357f0d752af6c2e3e46434a74b1bee3\",\"lessThan\":\"12105c7f18375d7615dad7605d89eadae7eb12a6\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"2ee57d587357f0d752af6c2e3e46434a74b1bee3\",\"lessThan\":\"bd5a2c1018938e6b32670728bdb32a3f0efff00f\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"2ee57d587357f0d752af6c2e3e46434a74b1bee3\",\"lessThan\":\"21c503d60a257e54ca3ac58e2721bd24501d5bde\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"2ee57d587357f0d752af6c2e3e46434a74b1bee3\",\"lessThan\":\"01b22656d8a68dbeae59f8b80866e7b11936b20a\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"2ee57d587357f0d752af6c2e3e46434a74b1bee3\",\"lessThan\":\"322586745bd1a0e5f3559fd1635fdeb4dbd1d6b8\",\"versionType\":\"git\",\"status\":\"affected\"}]},{\"vendor\":\"Linux\",\"product\":\"Linux\",\"defaultStatus\":\"affected\",\"programFiles\":[\"drivers/md/dm-cache-metadata.c\",\"drivers/md/dm-cache-metadata.h\",\"drivers/md/dm-cache-target.c\"],\"repo\":\"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\"versions\":[{\"version\":\"3.13\",\"status\":\"affected\"},{\"version\":\"0\",\"lessThan\":\"3.13\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"5.10.258\",\"lessThanOrEqual\":\"5.10.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"5.15.209\",\"lessThanOrEqual\":\"5.15.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"6.1.175\",\"lessThanOrEqual\":\"6.1.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"6.6.141\",\"lessThanOrEqual\":\"6.6.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"6.12.91\",\"lessThanOrEqual\":\"6.12.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"6.18.33\",\"lessThanOrEqual\":\"6.18.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"7.0.10\",\"lessThanOrEqual\":\"7.0.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"7.1\",\"lessThanOrEqual\":\"*\",\"versionType\":\"original_commit_for_fix\",\"status\":\"unaffected\"}]}]}],\"metrics\":{},\"references\":[{\"url\":\"https://git.kernel.org/stable/c/01b22656d8a68dbeae59f8b80866e7b11936b20a\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/12105c7f18375d7615dad7605d89eadae7eb12a6\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/1443c32f24d6d8bcdf4beceef2afc09290b98717\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/21c503d60a257e54ca3ac58e2721bd24501d5bde\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/322586745bd1a0e5f3559fd1635fdeb4dbd1d6b8\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/5c98a3f1d7a554c9e920aa31daf92af6b5bbb8cc\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/bd5a2c1018938e6b32670728bdb32a3f0efff00f\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/c2e86f647561fcf5e1c6eba7d75e9e0c4299c94d\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"}]}}"
  }
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

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.

Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…