{"id":"CVE-2026-100054","aliases":["CVE-2026-100054"],"related":[],"kind":"vulnerability","state":"published","title":"ublk: mark the batch fetch command cancelable before linking it","summary":"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's\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's cancel walk can now find a fetch\ncommand before it is linked. Two things make that safe:\n\n - initialize fcmd->node: 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->cmd instead of fcmd->cmd after dropping evts_lock: once\nfcmd is linked and not the active one, a control-path cancel may\ncomplete and free it.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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's\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's cancel walk can now find a fetch\ncommand before it is linked. Two things make that safe:\n\n - initialize fcmd->node: 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->cmd instead of fcmd->cmd after dropping evts_lock: once\nfcmd is linked and not the active one, a control-path cancel may\ncomplete and free it.","source":"cvelist"}],"published":"2026-11-30T13:23:27.640Z","modified":"2026-12-01T06:17:21.957Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"a4d88375539920b7401ead59d2f944ac23c668ea","fixed":"de0967c9aa6bb63d30e835c79fd935310f30402b","status":"affected"},{"type":"git","introduced":"a4d88375539920b7401ead59d2f944ac23c668ea","fixed":"b59e96011d22e322fbf4d5d1d1124de538c278ed","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"7.0","status":"affected"},{"type":"semver","introduced":"0","fixed":"7.0","status":"unaffected"},{"type":"semver","introduced":"7.3.4","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/de0967c9aa6bb63d30e835c79fd935310f30402b","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b59e96011d22e322fbf4d5d1d1124de538c278ed","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-100054","url":"https://www.cve.org/CVERecord?id=CVE-2026-100054","licence":"CVE Terms of Use","modified":"2026-12-01T05:40:00.085Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-100054","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-100054","licence":"Public domain","modified":"2026-12-01T06:17:21.957Z"}],"updatedAt":"2026-12-01T06:32:16.716Z","epss":{"score":0.00188,"percentile":0.08861,"date":"2026-12-01T12:00:22.000Z"}}