{"id":"CVE-2026-100054","sourceIdentifier":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","published":"2026-11-30T14:17:23.527","lastModified":"2026-12-01T06:17:21.957","vulnStatus":"Received","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'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."}],"affected":[{"source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","affectedData":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","programFiles":["drivers/block/ublk_drv.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","versions":[{"version":"a4d88375539920b7401ead59d2f944ac23c668ea","lessThan":"de0967c9aa6bb63d30e835c79fd935310f30402b","versionType":"git","status":"affected"},{"version":"a4d88375539920b7401ead59d2f944ac23c668ea","lessThan":"b59e96011d22e322fbf4d5d1d1124de538c278ed","versionType":"git","status":"affected"}]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","programFiles":["drivers/block/ublk_drv.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","versions":[{"version":"7.0","status":"affected"},{"version":"0","lessThan":"7.0","versionType":"semver","status":"unaffected"},{"version":"7.3.4","lessThanOrEqual":"7.3.*","versionType":"semver","status":"unaffected"},{"version":"7.4-rc1","lessThanOrEqual":"*","versionType":"original_commit_for_fix","status":"unaffected"}]}]}],"metrics":{"cvssMetricV31":[{"source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","type":"Secondary","cvssData":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"},"exploitabilityScore":1.8,"impactScore":5.9}]},"references":[{"url":"https://git.kernel.org/stable/c/b59e96011d22e322fbf4d5d1d1124de538c278ed","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/de0967c9aa6bb63d30e835c79fd935310f30402b","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"}]}