CVE-2026-100054 (GCVE-0-2026-100054)

Vulnerability from cvelistv5 – Published: 2026-11-30 13:23 – Updated: 2026-12-01 05:40
VLAI
Title
ublk: mark the batch fetch command cancelable before linking it
Summary
In the Linux kernel, the following vulnerability has been resolved: ublk: mark the batch fetch command cancelable before linking it UBLK_U_IO_FETCH_IO_CMDS has the same order problem as the per-io commands: ublk_batch_attach() links the fetch command into fcmd_head and marks it cancelable only after dropping evts_lock. A cancel from the control path (ublk_batch_cancel_queue()) can take it in between and complete it, and the later mark puts a completed request on io_uring's cancelable list. Mark it before linking it. evts_lock orders the mark before the link, which is where the cancel finds it. Batch commands are not bounced to task work, so they can run from io-wq without uring_lock, and io_uring's cancel walk can now find a fetch command before it is linked. Two things make that safe: - initialize fcmd->node: it came from kzalloc(), so list_empty() saw a linked node and ublk_batch_cancel_cmd() would list_del_init() NULL pointers - on the -ENODEV path, complete the command with io_uring_cmd_done() before freeing fcmd: that removes it from the cancelable list under uring_lock, after which nothing can see fcmd Also use data->cmd instead of fcmd->cmd after dropping evts_lock: once fcmd is linked and not the active one, a control-path cancel may complete and free it.
Assigner
Linux CNA under the mitre root
CNA scorecard D 52/100 over 8585 records in the last 180 days details
Impacted products
Vendor Product Version CPE status
Linux Linux Affected: a4d88375539920b7401ead59d2f944ac23c668ea , < de0967c9aa6bb63d30e835c79fd935310f30402b (git)
Affected: a4d88375539920b7401ead59d2f944ac23c668ea , < b59e96011d22e322fbf4d5d1d1124de538c278ed (git)
guessed Create a notification for this product.
Linux Linux Affected: 7.0
Unaffected: 0 , < 7.0 (semver)
Unaffected: 7.3.4 , ≤ 7.3.* (semver)
Unaffected: 7.4-rc1 , ≤ * (original_commit_for_fix)
guessed Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "drivers/block/ublk_drv.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "de0967c9aa6bb63d30e835c79fd935310f30402b",
              "status": "affected",
              "version": "a4d88375539920b7401ead59d2f944ac23c668ea",
              "versionType": "git"
            },
            {
              "lessThan": "b59e96011d22e322fbf4d5d1d1124de538c278ed",
              "status": "affected",
              "version": "a4d88375539920b7401ead59d2f944ac23c668ea",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "drivers/block/ublk_drv.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "7.0"
            },
            {
              "lessThan": "7.0",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "7.3.*",
              "status": "unaffected",
              "version": "7.3.4",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "7.4-rc1",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.3.4",
                  "versionStartIncluding": "7.0",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.4-rc1",
                  "versionStartIncluding": "7.0",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nublk: mark the batch fetch command cancelable before linking it\n\nUBLK_U_IO_FETCH_IO_CMDS has the same order problem as the per-io\ncommands: ublk_batch_attach() links the fetch command into fcmd_head\nand marks it cancelable only after dropping evts_lock. A cancel from\nthe control path (ublk_batch_cancel_queue()) can take it in between and\ncomplete it, and the later mark puts a completed request on io_uring\u0027s\ncancelable list.\n\nMark it before linking it. evts_lock orders the mark before the link,\nwhich is where the cancel finds it.\n\nBatch commands are not bounced to task work, so they can run from io-wq\nwithout uring_lock, and io_uring\u0027s cancel walk can now find a fetch\ncommand before it is linked. Two things make that safe:\n\n - initialize fcmd-\u003enode: it came from kzalloc(), so list_empty() saw a\n   linked node and ublk_batch_cancel_cmd() would list_del_init() NULL\n   pointers\n - on the -ENODEV path, complete the command with io_uring_cmd_done()\n   before freeing fcmd: that removes it from the cancelable list under\n   uring_lock, after which nothing can see fcmd\n\nAlso use data-\u003ecmd instead of fcmd-\u003ecmd after dropping evts_lock: once\nfcmd is linked and not the active one, a control-path cancel may\ncomplete and free it."
        }
      ],
      "metrics": [
        {
          "cvssV3_1": {
            "baseScore": 7.8,
            "baseSeverity": "HIGH",
            "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
            "version": "3.1"
          },
          "scenarios": [
            {
              "lang": "en",
              "value": "AV:L - The race is reached only through local io_uring passthrough on /dev/ublkcN and /dev/ublk-control: UBLK_U_IO_FETCH_IO_CMDS into ublk_ch_batch_io_uring_cmd() -\u003e ublk_batch_attach(), racing UBLK_CMD_STOP_DEV -\u003e ublk_stop_dev() -\u003e ublk_cancel_dev() -\u003e ublk_batch_cancel_queue(). No remote peer supplies data on either path.\nAC:L - The attacker owns both sides: one thread queues a second FETCH_IO_CMDS on a queue whose first fetch command still sits on fcmd_head, another sends STOP_DEV for the same device (it reaches ublk_cancel_dev() even before START_DEV). The window between spin_unlock(evts_lock) and io_uring_cmd_mark_cancelable() is short, but the attacker retries with DEL_DEV/ADD_DEV loops; nothing outside their control is needed.\nPR:L - ublk_ctrl_add_dev() accepts UBLK_F_UNPRIVILEGED_DEV from callers without CAP_SYS_ADMIN and does not strip UBLK_F_BATCH_IO for such devices; ublk_ctrl_uring_cmd_permission() then allows STOP_DEV on MAY_READ|MAY_WRITE access to the owner\u0027s /dev/ublkcN. An ordinary local user with unprivileged ublk access drives both sides; no init-namespace capability is checked.\nUI:N - The attacking process creates the device, opens /dev/ublkcN, submits the fetch commands and issues STOP_DEV itself; no other user or administrator has to act.\nS:U - The freed ublk_batch_fetch_cmd and the stale io_kiocb left on ctx-\u003ecancelable_uring_cmd are host kernel heap objects; the corruption stays inside the kernel\u0027s own authority and crosses no VM, IOMMU or sandbox boundary.\nC:H - ublk_batch_cancel_cmd() kfree()s fcmd, then ublk_batch_attach() reads fcmd-\u003ecmd from the freed 32-byte object and hands it to io_uring_cmd_mark_cancelable(); a reclaimed object supplies an attacker-chosen io_uring_cmd pointer, and the completed io_kiocb left on the cancelable list is a reusable-request UAF that can disclose kernel memory.\nI:H - io_uring_cmd_mark_cancelable() does hlist_add_head() through the possibly attacker-controlled cmd pointer and links an already completed request into ctx-\u003ecancelable_uring_cmd; on ring exit ublk_batch_cancel_fn() runs list_del_init(), a second io_uring_cmd_done() and a second kfree() on the freed fcmd: write-after-free plus double free.\nA:H - io_uring_try_cancel_uring_cmd() on ring exit walks the freed request and calls -\u003euring_cmd on it; sibling fix a261f0cacacc reports the same pattern ending in a GPF, so an unprivileged ublk owner can crash the kernel."
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-12-01T05:40:00.085Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/de0967c9aa6bb63d30e835c79fd935310f30402b"
        },
        {
          "url": "https://git.kernel.org/stable/c/b59e96011d22e322fbf4d5d1d1124de538c278ed"
        }
      ],
      "title": "ublk: mark the batch fetch command cancelable before linking it",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2026-100054",
    "datePublished": "2026-11-30T13:23:27.640Z",
    "dateReserved": "2026-09-25T10:25:14.455Z",
    "dateUpdated": "2026-12-01T05:40:00.085Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2026-100054",
      "date": "2026-12-04",
      "epss": "0.00188",
      "percentile": "0.08834"
    },
    "nvd": {
      "cve": {
        "affected": [
          {
            "affectedData": [
              {
                "defaultStatus": "unaffected",
                "product": "Linux",
                "programFiles": [
                  "drivers/block/ublk_drv.c"
                ],
                "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                "vendor": "Linux",
                "versions": [
                  {
                    "lessThan": "de0967c9aa6bb63d30e835c79fd935310f30402b",
                    "status": "affected",
                    "version": "a4d88375539920b7401ead59d2f944ac23c668ea",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "b59e96011d22e322fbf4d5d1d1124de538c278ed",
                    "status": "affected",
                    "version": "a4d88375539920b7401ead59d2f944ac23c668ea",
                    "versionType": "git"
                  }
                ]
              },
              {
                "defaultStatus": "affected",
                "product": "Linux",
                "programFiles": [
                  "drivers/block/ublk_drv.c"
                ],
                "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                "vendor": "Linux",
                "versions": [
                  {
                    "status": "affected",
                    "version": "7.0"
                  },
                  {
                    "lessThan": "7.0",
                    "status": "unaffected",
                    "version": "0",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "7.3.*",
                    "status": "unaffected",
                    "version": "7.3.4",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "*",
                    "status": "unaffected",
                    "version": "7.4-rc1",
                    "versionType": "original_commit_for_fix"
                  }
                ]
              }
            ],
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
          }
        ],
        "cveTags": [],
        "descriptions": [
          {
            "lang": "en",
            "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nublk: mark the batch fetch command cancelable before linking it\n\nUBLK_U_IO_FETCH_IO_CMDS has the same order problem as the per-io\ncommands: ublk_batch_attach() links the fetch command into fcmd_head\nand marks it cancelable only after dropping evts_lock. A cancel from\nthe control path (ublk_batch_cancel_queue()) can take it in between and\ncomplete it, and the later mark puts a completed request on io_uring\u0027s\ncancelable list.\n\nMark it before linking it. evts_lock orders the mark before the link,\nwhich is where the cancel finds it.\n\nBatch commands are not bounced to task work, so they can run from io-wq\nwithout uring_lock, and io_uring\u0027s cancel walk can now find a fetch\ncommand before it is linked. Two things make that safe:\n\n - initialize fcmd-\u003enode: it came from kzalloc(), so list_empty() saw a\n   linked node and ublk_batch_cancel_cmd() would list_del_init() NULL\n   pointers\n - on the -ENODEV path, complete the command with io_uring_cmd_done()\n   before freeing fcmd: that removes it from the cancelable list under\n   uring_lock, after which nothing can see fcmd\n\nAlso use data-\u003ecmd instead of fcmd-\u003ecmd after dropping evts_lock: once\nfcmd is linked and not the active one, a control-path cancel may\ncomplete and free it."
          }
        ],
        "id": "CVE-2026-100054",
        "lastModified": "2026-12-01T06:17:21.957",
        "metrics": {
          "cvssMetricV31": [
            {
              "cvssData": {
                "attackComplexity": "LOW",
                "attackVector": "LOCAL",
                "availabilityImpact": "HIGH",
                "baseScore": 7.8,
                "baseSeverity": "HIGH",
                "confidentialityImpact": "HIGH",
                "integrityImpact": "HIGH",
                "privilegesRequired": "LOW",
                "scope": "UNCHANGED",
                "userInteraction": "NONE",
                "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
                "version": "3.1"
              },
              "exploitabilityScore": 1.8,
              "impactScore": 5.9,
              "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
              "type": "Secondary"
            }
          ]
        },
        "published": "2026-11-30T14:17:23.527",
        "references": [
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/b59e96011d22e322fbf4d5d1d1124de538c278ed"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/de0967c9aa6bb63d30e835c79fd935310f30402b"
          }
        ],
        "sourceIdentifier": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "vulnStatus": "Received"
      }
    },
    "redhat_vex": {
      "aggregate_severity": "Moderate",
      "current_release_date": "2026-12-01T07:07:44+00:00",
      "cve": "CVE-2026-100054",
      "id": "CVE-2026-100054",
      "initial_release_date": "2026-11-30T13:23:27.640000+00:00",
      "product_status:known_not_affected": "280",
      "source": "Red Hat CSAF VEX",
      "status": "final",
      "title": "kernel: kernel: Denial of Service via race condition in ublk batch command cancellation",
      "url": "https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-100054.json",
      "version": "3"
    }
  }
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Drag nodes to arrange them. Double-click a related vulnerability to open it, or a source to visit its link. The Physics button on the left tunes the layout and the simulation; the legend at the bottom left hides or shows nodes by kind and by sighting type.

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.
Vulnerability timeline

Sightings and recorded dates, grouped by day · UTC

JSON
How durations are calculated

Following the VTEM framework (Black Hat USA 2015), time to patch starts when the vendor or a coordinator was informed, total time to patch at discovery, and disclosure to patch at public disclosure; vendor response time runs from the report to its acknowledgement. Time to exploit and time unpatched start at the earliest discovery or report, falling back to public disclosure. Unpatched time ends at the first recorded patch, or the calculation time when no patch is recorded. Exploitation to patch shows the interval between those two events; a published proof of concept is a public exploit, not exploitation. The method is described in a publication.

Each result shows its source dates. A negative interval means the end event came first; when date-only inputs leave the order open, the result says so. Date-only inputs are approximate. The earliest evidence wins: KEV report dates and sightings are labelled as such. Records describing another vulnerability are listed but never calculated from, and a PoC alone does not establish exploitation. Missing patch evidence does not prove that no patch exists. Filters below change the event list only.

Events included in the timeline

Loading timeline…


    Loading…

    Loading…

    Loading…

    Related by attack behaviour

    Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.