{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "728cbac5fe219d3b8a21a0688a08f2b7f8aeda2b"
            },
            {
              "fixed": "f715e4324b821f051dbd2832c6bd974642b803f2"
            },
            {
              "fixed": "1f866a06b65ec13d37767843d2e991df2dcd1a00"
            },
            {
              "fixed": "4c454b5b2634d982caf797fbe477770c3edfc983"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        },
        {
          "events": [
            {
              "introduced": "42ea64e01c96e594fb4f80c54dfe4f934d008a6e"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "6.14.6"
            },
            {
              "fixed": "6.15"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.15.0"
            },
            {
              "fixed": "6.18.64"
            }
          ],
          "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-100056.json"
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nublk: keep a canceled FETCH round canceling until the server is gone\n\nA cancel completes a fetched io command and sets io-\u003ecmd to NULL, but\nthe io still counts as ready. Only ubq-\u003ecanceling stops ublk_queue_rq()\nfrom using the NULL io-\u003ecmd. Two paths clear that flag too early:\n\n  partial FETCH round                 recovery, two queues\n  -------------------                 --------------------\n  task A: FETCH tags 0-2              q0 ready: q0-\u003ecanceling = false\n  task A exits:                       q0 task exits:\n    start_cancel(): mark queues         start_cancel(): ub-\u003ecanceling\n    tags 0-2: io-\u003ecmd = NULL              is still set -\u003e q0 not marked\n  task B: FETCH tag 3                   q0: io-\u003ecmd = NULL\n    queue ready: canceling = false    q1 ready\n  START_DEV                           END_USER_RECOVERY\n  read -\u003e ublk_queue_cmd(NULL)        read on q0 -\u003e ublk_queue_cmd(NULL)\n\nA FETCH round runs from the open of /dev/ublkcN until\nublk_reset_ch_dev() resets the queues. A canceled command can't be\nfetched again in the same round. So the ready check only needs one\nfact: did this round see a cancel? ub-\u003ecanceling already records it:\nublk_start_cancel() sets it under cancel_mutex before any command is\ntaken. It is only cleared too early, when all queues are ready.\n\nFix:\n\n - clear ub-\u003ecanceling only in ublk_reset_ch_dev()\n - when a queue gets ready, clear ubq-\u003ecanceling only if ub-\u003ecanceling\n   is not set, and check it under cancel_mutex\n\nThe check and the marking are ordered by cancel_mutex:\n\n  check first:   queue cleared -\u003e start_cancel() marks it again\n                 -\u003e command taken\n  cancel first:  check sees ub-\u003ecanceling -\u003e queue stays canceling\n\nWhile ub-\u003ecanceling is set, no queue clears its flag. So the \"all\nqueues marked\" shortcut in ublk_start_cancel() is correct again.\n\nUBLK_F_BATCH_IO follows the same rule. It does not dispatch through\nio-\u003ecmd, so it never hit the oops, but a round which lost a fetch\ncommand is treated the same way: it has to start over.",
  "id": "CVE-2026-100056",
  "modified": "2026-12-01T20:45:47.675469737Z",
  "published": "2026-11-30T13:23:28.707Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/1f866a06b65ec13d37767843d2e991df2dcd1a00"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/4c454b5b2634d982caf797fbe477770c3edfc983"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/f715e4324b821f051dbd2832c6bd974642b803f2"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/100xxx/CVE-2026-100056.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-100056"
    },
    {
      "type": "PACKAGE",
      "url": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
    }
  ],
  "schema_version": "1.9.2",
  "summary": "ublk: keep a canceled FETCH round canceling until the server is gone"
}