{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-100055",
        "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "state": "PUBLISHED",
        "assignerShortName": "Linux",
        "dateReserved": "2026-09-25T10:25:14.455Z",
        "datePublished": "2026-11-30T13:23:28.176Z",
        "dateUpdated": "2026-12-01T05:40:01.184Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
                "shortName": "Linux",
                "dateUpdated": "2026-12-01T05:40:01.184Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nublk: mark the io command cancelable before publishing it\n\nFETCH, COMMIT_AND_FETCH and NEED_GET_DATA publish the command in io->cmd\nbefore marking it cancelable. A cancel from the control path (STOP_DEV,\nQUIESCE_DEV) can complete it in between:\n\n  issue path                       control-path cancel\n  io->cmd = C\n                                   take C, io_uring_cmd_done(C):\n                                     C not marked, nothing to unlink\n  ublk_prep_cancel(C)\n    the completed C is linked on the cancelable list\n  ring exit: the cancel walk hits it → GPF (KASAN, with a delay added)\n\nMark the command before ublk_fill_io_cmd() publishes it. The handlers\nrun with uring_lock held, as io_uring's cancel walk does, so marking\ntakes no lock and the walk can't see a marked command before it is\npublished. smp_wmb() orders the mark before the io->cmd store; the\ncancel loads cmd with READ_ONCE(io->cmd) before reading cmd->flags.\n\nA marked command has to be completed by io_uring_cmd_done(), so a failed\nFETCH and the inline UBLK_IO_RES_OK of NEED_GET_DATA now do that. The CQE\nis the same."
                }
            ],
            "metrics": [
                {
                    "cvssV3_1": {
                        "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"
                    },
                    "scenarios": [
                        {
                            "lang": "en",
                            "value": "AV:L - Both sides of the race are local io_uring passthrough: UBLK_IO_FETCH_REQ/COMMIT_AND_FETCH_REQ on /dev/ublkcN into ublk_ch_uring_cmd_local(), and UBLK_CMD_STOP_DEV on /dev/ublk-control into ublk_stop_dev() -> ublk_cancel_dev() -> ublk_cancel_cmd(). No remote peer supplies any data on either path.\nAC:L - The attacker drives both sides. One thread issues FETCH or COMMIT_AND_FETCH; another sends STOP_DEV, which reaches ublk_cancel_dev() even before START_DEV. The window runs from ublk_fill_io_cmd() publishing io->cmd to io_uring_cmd_mark_cancelable(), and COMMIT_AND_FETCH widens it with __ublk_complete_rq(). It is retried with DEL_DEV/ADD_DEV loops.\nPR:L - ublk_ctrl_add_dev() accepts UBLK_F_UNPRIVILEGED_DEV from callers without CAP_SYS_ADMIN. ublk_ctrl_uring_cmd_permission() then allows STOP_DEV given MAY_READ|MAY_WRITE on the owner's /dev/ublkcN, and ublk_ch_open() has no capability check. An ordinary user with unprivileged ublk access drives FETCH and STOP_DEV without any init-namespace capability.\nUI:N - The attacking process creates the device, opens /dev/ublkcN, submits the FETCH or COMMIT_AND_FETCH commands, sends STOP_DEV and closes its ring itself. No other user or administrator has to act.\nS:U - The completed io_kiocb left linked on ctx->cancelable_uring_cmd is a host kernel heap object. The corruption stays within the kernel's own authority and crosses no VM, IOMMU or sandbox boundary.\nC:H - ublk_cancel_cmd() completes the command through io_uring_cmd_done() while it is still unmarked, so it is never unlinked, and ublk_prep_cancel() then links the finished request. That request is recycled from the io_kiocb cache for attacker-chosen ops, which gives a reusable-request use-after-free/type confusion that can disclose kernel memory.\nI:H - The stale req->hash_node stays on the cancelable hlist while the io_kiocb is reused, and poll and later marks use the same hash_node, so list pointers are corrupted. At ring exit, io_uring_try_cancel_uring_cmd() calls req->file->f_op->uring_cmd() on the recycled request, which is a type-confused indirect call usable for control-flow hijack.\nA:H - At ring exit, io_uring_try_cancel_uring_cmd() walks the completed request that ublk_prep_cancel() linked; the fix commit reports this as a general protection fault (GPF) under KASAN. The attacker can repeat the STOP_DEV race at will to crash the kernel."
                        }
                    ]
                }
            ],
            "affected": [
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "unaffected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "drivers/block/ublk_drv.c"
                    ],
                    "versions": [
                        {
                            "version": "216c8f5ef0f209a3797292c487bdaa6991ab4b92",
                            "lessThan": "f1de3e25aa13a74c6580cb922be3522c51407885",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "216c8f5ef0f209a3797292c487bdaa6991ab4b92",
                            "lessThan": "49e950f877abdf49427c252d328727a4fc9e8625",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "216c8f5ef0f209a3797292c487bdaa6991ab4b92",
                            "lessThan": "9a735ee97f7f381374cf10e53acc4c97829c8939",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "216c8f5ef0f209a3797292c487bdaa6991ab4b92",
                            "lessThan": "a261f0cacacc022e4fab5b8e38c59f74ce4942e8",
                            "status": "affected",
                            "versionType": "git"
                        }
                    ]
                },
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "affected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "drivers/block/ublk_drv.c"
                    ],
                    "versions": [
                        {
                            "version": "6.7",
                            "status": "affected"
                        },
                        {
                            "version": "0",
                            "lessThan": "6.7",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.12.118",
                            "lessThanOrEqual": "6.12.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.18.64",
                            "lessThanOrEqual": "6.18.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "7.3.4",
                            "lessThanOrEqual": "7.3.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "7.4-rc1",
                            "lessThanOrEqual": "*",
                            "status": "unaffected",
                            "versionType": "original_commit_for_fix"
                        }
                    ]
                }
            ],
            "cpeApplicability": [
                {
                    "nodes": [
                        {
                            "operator": "OR",
                            "negate": false,
                            "cpeMatch": [
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "6.7",
                                    "versionEndExcluding": "6.12.118"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "6.7",
                                    "versionEndExcluding": "6.18.64"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "6.7",
                                    "versionEndExcluding": "7.3.4"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "6.7",
                                    "versionEndExcluding": "7.4-rc1"
                                }
                            ]
                        }
                    ]
                }
            ],
            "references": [
                {
                    "url": "https://git.kernel.org/stable/c/f1de3e25aa13a74c6580cb922be3522c51407885"
                },
                {
                    "url": "https://git.kernel.org/stable/c/49e950f877abdf49427c252d328727a4fc9e8625"
                },
                {
                    "url": "https://git.kernel.org/stable/c/9a735ee97f7f381374cf10e53acc4c97829c8939"
                },
                {
                    "url": "https://git.kernel.org/stable/c/a261f0cacacc022e4fab5b8e38c59f74ce4942e8"
                }
            ],
            "title": "ublk: mark the io command cancelable before publishing it",
            "x_generator": {
                "engine": "bippy-1.2.0"
            }
        }
    }
}