{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "85248d670b71d9edda9459ee14fdc85c8e9632c0"
            },
            {
              "fixed": "e5d84d6ebec814039f40a0366a7272fd330678d4"
            },
            {
              "fixed": "301e34ccf9a63705a197904ccc03e9eaaf442a37"
            },
            {
              "fixed": "c8b349f9daf6d88ff21033028167d00e819dafb6"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        },
        {
          "events": [
            {
              "introduced": "a8555c86f508e0e246a2729fe0f40bdf9fc51da0"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        },
        {
          "events": [
            {
              "introduced": "8cb8ef0c79e3686320e2854c2ab9c9ab4df7b8e8"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "6.1.70"
            },
            {
              "fixed": "6.2"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.6.21"
            },
            {
              "fixed": "6.7"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.7.0"
            },
            {
              "fixed": "6.18.66"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.19.0"
            },
            {
              "fixed": "7.3.4"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/100xxx/CVE-2026-100053.json"
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nublk: let STOP_DEV cancel the server's commands before its release\n\nSTOP_DEV cancels the fetched commands after dropping ub-\u003emutex, so\nSTART_DEV and FETCH can run in between:\n\n  STOP_DEV                          START_DEV / FETCH\n  lock ub-\u003emutex\n    ublk_stop_dev_unlocked()        (not started: does nothing)\n  unlock ub-\u003emutex\n                                    START_DEV goes live, schedules scan\n                                    FETCH publishes a new command\n  cancel_work_sync(scan)            cancels the new disk's scan\n  ublk_cancel_dev()                 takes the new command: NULL io-\u003ecmd\n                                    on a queue which isn't canceling\n\nA START_DEV after STOP_DEV also goes live over the canceled commands.\n\nHold a reference on the server's /dev/ublkcN while canceling:\n\n  STOP_DEV\n  lock ub-\u003emutex\n    ublk_stop_dev_unlocked()\n    cancel_work_sync(scan)\n    server attached: take a reference on its file, set STOPPING\n  unlock ub-\u003emutex\n  ublk_cancel_dev()\n  drop the reference\n\n - STOPPING makes FETCH and PREP get UBLK_IO_RES_ABORT and START_DEV\n   -EBUSY; a START_DEV or END_USER_RECOVERY waiting for the device\n   to get ready wakes up too; the reset in the server's release\n   clears it\n - the release can't run before the reference is dropped, so no new\n   server can attach, and the cancel only meets this server's commands\n - the cancel still runs after the unlock: io_uring_cmd_done() may take\n   uring_lock, under which FETCH takes ub-\u003emutex\n\nublk_ch_open() saves the file in -\u003ech_file and ublk_ch_release() clears\nit, under cancel_mutex. The release runs after the last reference is\ngone, so take ours with file_ref_get(). Drop it with __fput_sync(): if\nit is the last one, fput() would defer the release to this task, which\nDEL_DEV then makes wait for the device to be freed.\n\nA server which opened the device but hasn't fetched is stopped too.\nDocument what a server sees after STOP_DEV in ublk.rst.",
  "id": "CVE-2026-100053",
  "modified": "2026-12-01T06:46:03.386096559Z",
  "published": "2026-11-30T13:23:26.975Z",
  "references": [
    {
      "type": "PACKAGE",
      "url": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/301e34ccf9a63705a197904ccc03e9eaaf442a37"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/c8b349f9daf6d88ff21033028167d00e819dafb6"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/e5d84d6ebec814039f40a0366a7272fd330678d4"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/100xxx/CVE-2026-100053.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-100053"
    }
  ],
  "schema_version": "1.9.2",
  "severity": [
    {
      "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
      "type": "CVSS_V3"
    }
  ],
  "summary": "ublk: let STOP_DEV cancel the server's commands before its release"
}