Skip to content
Heist/ feed
Back to feed
Unrated

dm: fix reading free memory in do_resume

Type: advisorySources: Official CVE List

In the Linux kernel, the following vulnerability has been resolved: dm: fix reading free memory in do_resume When do_resume calls dm_table_get_mode(new_map), the call is done without holding any locks (it only holds a reference to the md). It may be possible that another concurrent ioctl on the same device will swap table after dm_swap_table and before dm_table_get_mode. In this case, dm_table_get_mode(new_map) reads freed memory. This race condition was triggered by syzbot. This commit fixes the race by reading mode of the new table before dm_swap_table. Note that new_map is also passed to dm_ima_need_measure, but this function doesn't attempt to dereference it, so this call should be safe. Note that this is not a security bug because only root can trigger it and the commonly used tools such as lvm or cryptsetup do not call the ioctls concurrently, so that they can't trigger it acceidentally.

Products
Linux
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2026-99036
Confirmed fixed CVEs
Not specified
Updated in this feed
29 Oct 2026, 18:04 UTC · Revision 2

Source evidence

dm: fix reading free memory in do_resume

core-cve · Original source

Published 23 Oct 2026, 12:21 UTC

In the Linux kernel, the following vulnerability has been resolved: dm: fix reading free memory in do_resume When do_resume calls dm_table_get_mode(new_map), the call is done without holding any locks (it only holds a reference to the md). It may be possible that another concurrent ioctl on the same device will swap table after dm_swap_table and before dm_table_get_mode. In this case, dm_table_get_mode(new_map) reads freed memory. This race condition was triggered by syzbot. This commit fixes the race by reading mode of the new table before dm_swap_table. Note that new_map is also passed to dm_ima_need_measure, but this function doesn't attempt to dereference it, so this call should be safe. Note that this is not a security bug because only root can trigger it and the commonly used tools such as lvm or cryptsetup do not call the ioctls concurrently, so that they can't trigger it acceidentally.

cve:CVE-2026-99036

Linux

Fixed versions: Not specified

Linux

Fixed versions: Not specified

Complete source record
{
  "id": "dadb687915983907e5c21f44bcc0e6c18493f49e165d909cc31c4f483232ef0d",
  "url": "https://www.cve.org/CVERecord?id=CVE-2026-99036",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "dm: fix reading free memory in do_resume",
    "summary": "In the Linux kernel, the following vulnerability has been resolved: dm: fix reading free memory in do_resume When do_resume calls dm_table_get_mode(new_map), the call is done without holding any locks (it only holds a reference to the md). It may be possible that another concurrent ioctl on the same device will swap table after dm_swap_table and before dm_table_get_mode. In this case, dm_table_get_mode(new_map) reads freed memory. This race condition was triggered by syzbot. This commit fixes the race by reading mode of the new table before dm_swap_table. Note that new_map is also passed to dm_ima_need_measure, but this function doesn't attempt to dereference it, so this call should be safe. Note that this is not a security bug because only root can trigger it and the commonly used tools such as lvm or cryptsetup do not call the ioctls concurrently, so that they can't trigger it acceidentally.",
    "evidence": "cve:CVE-2026-99036",
    "products": [
      {
        "name": {
          "value": "Linux",
          "evidence": "/containers/cna/affected/0/product"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": []
      },
      {
        "name": {
          "value": "Linux",
          "evidence": "/containers/cna/affected/1/product"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": []
      }
    ],
    "severity": "unknown",
    "structured": {
      "id": "CVE-2026-99036",
      "aliases": [
        "CVE-2026-99036"
      ],
      "metrics": [],
      "affected": [
        {
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "product": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "d58168763f74d1edbc296d7038c60efe6493fdd4",
              "lessThan": "281f68d6cf8acb2547ebf0a849b8beae8fb0ec3c",
              "versionType": "git"
            },
            {
              "status": "affected",
              "version": "d58168763f74d1edbc296d7038c60efe6493fdd4",
              "lessThan": "2c96d1a8324e7736e0f8a5790ecf39d36c2c4a82",
              "versionType": "git"
            },
            {
              "status": "affected",
              "version": "d58168763f74d1edbc296d7038c60efe6493fdd4",
              "lessThan": "e3bf232c913b7e0103d323f15e6342d37cb1b357",
              "versionType": "git"
            },
            {
              "status": "affected",
              "version": "d58168763f74d1edbc296d7038c60efe6493fdd4",
              "lessThan": "301691c32b8ad023e3316d5dbb6a8cf52d47b0dc",
              "versionType": "git"
            },
            {
              "status": "affected",
              "version": "d58168763f74d1edbc296d7038c60efe6493fdd4",
              "lessThan": "c9417c1c5269e2bd0570fbe53e4ec03a8d31f008",
              "versionType": "git"
            }
          ],
          "programFiles": [
            "drivers/md/dm-ioctl.c"
          ],
          "defaultStatus": "unaffected"
        },
        {
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "product": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "2.6.29"
            },
            {
              "status": "unaffected",
              "version": "0",
              "lessThan": "2.6.29",
              "versionType": "semver"
            },
            {
              "status": "unaffected",
              "version": "6.6.160",
              "versionType": "semver",
              "lessThanOrEqual": "6.6.*"
            },
            {
              "status": "unaffected",
              "version": "6.12.113",
              "versionType": "semver",
              "lessThanOrEqual": "6.12.*"
            },
            {
              "status": "unaffected",
              "version": "6.18.57",
              "versionType": "semver",
              "lessThanOrEqual": "6.18.*"
            },
            {
              "status": "unaffected",
              "version": "7.2.11",
              "versionType": "semver",
              "lessThanOrEqual": "7.2.*"
            },
            {
              "status": "unaffected",
              "version": "7.3",
              "versionType": "original_commit_for_fix",
              "lessThanOrEqual": "*"
            }
          ],
          "programFiles": [
            "drivers/md/dm-ioctl.c"
          ],
          "defaultStatus": "affected"
        }
      ],
      "modified": "2026-10-26T06:56:56.323Z",
      "provider": "cve",
      "references": [
        "https://git.kernel.org/stable/c/281f68d6cf8acb2547ebf0a849b8beae8fb0ec3c",
        "https://git.kernel.org/stable/c/2c96d1a8324e7736e0f8a5790ecf39d36c2c4a82",
        "https://git.kernel.org/stable/c/e3bf232c913b7e0103d323f15e6342d37cb1b357",
        "https://git.kernel.org/stable/c/301691c32b8ad023e3316d5dbb6a8cf52d47b0dc",
        "https://git.kernel.org/stable/c/c9417c1c5269e2bd0570fbe53e4ec03a8d31f008"
      ],
      "provider_metadata": {
        "cna": {
          "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
          "shortName": "Linux",
          "dateUpdated": "2026-10-26T06:56:56.323Z"
        }
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-99036",
        "evidence": "/cveMetadata/cveId"
      }
    ],
    "security_relevant": true,
    "severity_evidence": null
  },
  "source_id": "core-cve",
  "document_id": 263381,
  "published_at": "2026-10-23T12:21:49.41+00:00"
}