{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-100053",
        "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "state": "PUBLISHED",
        "assignerShortName": "Linux",
        "dateReserved": "2026-09-25T10:25:14.455Z",
        "datePublished": "2026-11-30T13:23:26.975Z",
        "dateUpdated": "2026-12-01T05:39:58.978Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
                "shortName": "Linux",
                "dateUpdated": "2026-12-01T05:39:58.978Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nublk: let STOP_DEV cancel the server's commands before its release\n\nSTOP_DEV cancels the fetched commands after dropping ub->mutex, so\nSTART_DEV and FETCH can run in between:\n\n  STOP_DEV                          START_DEV / FETCH\n  lock ub->mutex\n    ublk_stop_dev_unlocked()        (not started: does nothing)\n  unlock ub->mutex\n                                    START_DEV goes live, schedules scan\n                                    FETCH publishes a new command\n  cancel_work_sync(scan)            cancels the new disk's scan\n  ublk_cancel_dev()                 takes the new command: NULL io->cmd\n                                    on a queue which isn't canceling\n\nA START_DEV after STOP_DEV also goes live over the canceled commands.\n\nHold a reference on the server's /dev/ublkcN while canceling:\n\n  STOP_DEV\n  lock ub->mutex\n    ublk_stop_dev_unlocked()\n    cancel_work_sync(scan)\n    server attached: take a reference on its file, set STOPPING\n  unlock ub->mutex\n  ublk_cancel_dev()\n  drop the reference\n\n - STOPPING makes FETCH and PREP get UBLK_IO_RES_ABORT and START_DEV\n   -EBUSY; a START_DEV or END_USER_RECOVERY waiting for the device\n   to get ready wakes up too; the reset in the server's release\n   clears it\n - the release can't run before the reference is dropped, so no new\n   server can attach, and the cancel only meets this server's commands\n - the cancel still runs after the unlock: io_uring_cmd_done() may take\n   uring_lock, under which FETCH takes ub->mutex\n\nublk_ch_open() saves the file in ->ch_file and ublk_ch_release() clears\nit, under cancel_mutex. The release runs after the last reference is\ngone, so take ours with file_ref_get(). Drop it with __fput_sync(): if\nit is the last one, fput() would defer the release to this task, which\nDEL_DEV then makes wait for the device to be freed.\n\nA server which opened the device but hasn't fetched is stopped too.\nDocument what a server sees after STOP_DEV in ublk.rst."
                }
            ],
            "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 - Every step is a local io_uring passthrough command: UBLK_CMD_STOP_DEV/UBLK_CMD_START_DEV through ublk_ctrl_uring_cmd() on /dev/ublk-control and UBLK_IO_FETCH_REQ on /dev/ublkcN. ublk_stop_dev() runs ublk_cancel_dev() after dropping ub->mutex, and no remote peer supplies any data on this path.\nAC:L - The attacker performs every step, and no race is needed. After FETCHing every tag they send STOP_DEV. ublk_stop_dev_unlocked() does nothing on the never-started (DEAD) device, and ublk_cancel_dev() NULLs every io->cmd without setting ubq->canceling. Their START_DEV then goes live because nr_queue_ready is unchanged. The memory-corruption variant races STOP_DEV's cancel loop against I/O to their own disk, and they issue both sides.\nPR:L - ublk_ctrl_add_dev() lets a caller without CAP_SYS_ADMIN create a UBLK_F_UNPRIVILEGED_DEV device. ublk_ctrl_uring_cmd_permission() gates STOP_DEV/START_DEV only on MAY_READ|MAY_WRITE to the caller's own /dev/ublkcN, and ublk_ch_open() has no capability check. A local user with access to /dev/ublk-control, which the documented unprivileged mode grants, reaches the bug.\nUI:N - The attacker's own process acts as both the ublk server and the control client. The crash fires on the first I/O to the new /dev/ublkbN, whether from the attacker or from udev probing the disk it just added. No other user has to mount, open or approve anything.\nS:U - The NULL io->cmd dereference and the stale io_uring_cmd completion both stay inside the host kernel's ublk, blk-mq and io_uring code, the same authority that owns the ublk control and char device interfaces. No VM, IOMMU or sandbox boundary is crossed.\nC:H - ublk_cancel_dev() must run only after del_gendisk(), and ublk_cancel_cmd()'s blk_mq_request_started() check guards io_uring_cmd_done() against io_uring_cmd_complete_in_task() only when ubq->canceling fences ublk_queue_rq(). Here the disk is live and not canceling. The cancel can therefore load io->cmd after dispatch has completed it, or has overwritten the cmd/req union with a struct request, and treat freed or foreign memory as an io_kiocb.\nI:H - __io_uring_cmd_done() on that stale or type-confused pointer writes req flags and cqe.res, sets io_task_work.func and links the object into the io_uring task_work llist. That corrupts a freed io_kiocb or a live struct request and plants a callback that is later executed, which gives an exploitable write and control-flow primitive, not a bounded change.\nA:H - In the sequential STOP_DEV then START_DEV path, the first request through ublk_queue_rq() reaches ublk_queue_cmd() with a NULL io->cmd. ublk_get_uring_cmd_pdu(NULL)->req = rq then faults near NULL and oopses in blk-mq dispatch. The disk stays live with every command NULL, so each later I/O crashes too."
                        }
                    ]
                }
            ],
            "affected": [
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "unaffected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "Documentation/block/ublk.rst",
                        "drivers/block/ublk_drv.c"
                    ],
                    "versions": [
                        {
                            "version": "85248d670b71d9edda9459ee14fdc85c8e9632c0",
                            "lessThan": "e5d84d6ebec814039f40a0366a7272fd330678d4",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "85248d670b71d9edda9459ee14fdc85c8e9632c0",
                            "lessThan": "301e34ccf9a63705a197904ccc03e9eaaf442a37",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "85248d670b71d9edda9459ee14fdc85c8e9632c0",
                            "lessThan": "c8b349f9daf6d88ff21033028167d00e819dafb6",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "a8555c86f508e0e246a2729fe0f40bdf9fc51da0",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "8cb8ef0c79e3686320e2854c2ab9c9ab4df7b8e8",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "6.1.70",
                            "lessThan": "6.2",
                            "status": "affected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.6.21",
                            "lessThan": "6.7",
                            "status": "affected",
                            "versionType": "semver"
                        }
                    ]
                },
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "affected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "Documentation/block/ublk.rst",
                        "drivers/block/ublk_drv.c"
                    ],
                    "versions": [
                        {
                            "version": "6.7",
                            "status": "affected"
                        },
                        {
                            "version": "0",
                            "lessThan": "6.7",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.18.66",
                            "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.18.66"
                                },
                                {
                                    "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"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "6.1.70"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "6.6.21"
                                }
                            ]
                        }
                    ]
                }
            ],
            "references": [
                {
                    "url": "https://git.kernel.org/stable/c/e5d84d6ebec814039f40a0366a7272fd330678d4"
                },
                {
                    "url": "https://git.kernel.org/stable/c/301e34ccf9a63705a197904ccc03e9eaaf442a37"
                },
                {
                    "url": "https://git.kernel.org/stable/c/c8b349f9daf6d88ff21033028167d00e819dafb6"
                }
            ],
            "title": "ublk: let STOP_DEV cancel the server's commands before its release",
            "x_generator": {
                "engine": "bippy-1.2.0"
            }
        }
    }
}