{ "dataType": "CVE_RECORD", "dataVersion": "5.2", "cveMetadata": { "cveId": "CVE-2026-139121", "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67", "state": "PUBLISHED", "assignerShortName": "Linux", "dateReserved": "2026-11-30T13:22:15.915Z", "datePublished": "2026-11-30T13:31:46.564Z", "dateUpdated": "2026-12-01T05:41:21.685Z" }, "containers": { "cna": { "providerMetadata": { "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67", "shortName": "Linux", "dateUpdated": "2026-12-01T05:41:21.685Z" }, "descriptions": [ { "lang": "en", "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nblk-mq: exit the hctxs of a queue under tag_list_lock\n\nblk_mq_update_nr_hw_queues() exits and replaces the hctxs of every queue\non set->tag_list under tag_list_lock. blk_mq_exit_queue() exits its\nhctxs without the lock and only then takes the queue off the list, so an\nupdate running at the same time exits them again and sets up new ones\nthat nobody exits. del_gendisk() is kept away by update_nr_hwq_lock,\ndisk_release() of a never added disk and blk_mq_destroy_queue() are not,\nand nvme_alloc_ns() drops such a disk when it finds the queues frozen by\na reset.\n\nHold tag_list_lock for both steps." } ], "metrics": [ { "cvssV3_1": { "version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H", "baseScore": 9.8, "baseSeverity": "CRITICAL" }, "scenarios": [ { "lang": "en", "value": "AV:N - A hostile NVMe/TCP target sends a Namespace-Changed AEN and Identify data, so nvme_scan_work→nvme_alloc_ns allocates a queue on ctrl->tagset. It then sends a Persistent-Internal-Error AEN, so nvme_reset_ctrl→nvme_tcp_configure_io_queues runs blk_mq_update_nr_hw_queues. nvme_alloc_ns then sees NVME_CTRL_FROZEN or a failed Identify, and put_disk→disk_release calls blk_mq_exit_queue without tag_list_lock.\nAC:L - The target drives both sides. It times the Identify NS completion that makes nvme_alloc_ns drop the disk against the I/O-queue Connect completions that start the update. nvme_stop_ctrl never flushes scan_work, nr_maps=2 makes every reconnect reallocate each queue's hctxs, and the async scan gives many dying queues per reset. Missed attempts are harmless and repeatable.\nPR:N - The attacker is the NVMe/TCP target, or an on-path spoofer when TLS/DH-HMAC-CHAP are not configured, and needs no host account. The host accepts AEN and Identify completions on the established fabrics session. The local triggers (reset_controller sysfs, NVME_IOCTL_RESET/RESCAN) need root or CAP_SYS_ADMIN and are not used.\nUI:N - scan_work, nvme_scan_ns_async and the reset_work reconnect all run in nvme_wq/nvme_reset_wq kernel workers in response to AEN completions the target sends. No host user action is needed once the fabrics controller is connected.\nS:U - The double hctx exit and the stale hctxs corrupt host kernel heap in blk-mq and nvme-tcp request PDUs. No VM, IOMMU or other security-authority boundary is crossed.\nC:H - If the update reallocates the queue's hctxs before or during blk_mq_exit_hw_queues, its blk_mq_add_hw_queues_cpuhp re-registers hctxs that blk_mq_release then kfrees on mainline. On 6.6/6.12 it installs never-exited hctxs whose ->queue is the freed request_queue. Later cpuhp instance adds and blk_mq_hctx_notify_dead read freed memory, a sprayable UAF.\nI:H - Two concurrent blk_mq_exit_hctx() calls on one hctx run nvme_tcp_exit_request's page_frag_free(req->pdu) twice and queue fq->rcu_head to SRCU twice, double-kfreeing flush_rq and the flush queue. notify_dead also splices lists inside a freed ctx. This slab and page corruption is usable for control-flow hijack.\nA:H - In the simplest interleaving blk_mq_exit_hw_queues finishes first and the update's blk_mq_exit_hctx dereferences the NULLed hctx->fq. That oopses the reset worker while it holds tag_list_lock and update_nr_hwq_lock with every namespace frozen, so all I/O on the controller hangs. The target can repeat the AEN and reset cycle at will." } ] } ], "affected": [ { "product": "Linux", "vendor": "Linux", "defaultStatus": "unaffected", "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git", "programFiles": [ "block/blk-mq.c" ], "versions": [ { "version": "630ef623ed26c18a457cdc070cf24014e50129c2", "lessThan": "a6f435cba9508e6ee9f81c1b32ebce9e90031023", "status": "affected", "versionType": "git" }, { "version": "630ef623ed26c18a457cdc070cf24014e50129c2", "lessThan": "f179c59bea9959901d6b9f0a7e45c170d6fbb2e3", "status": "affected", "versionType": "git" }, { "version": "630ef623ed26c18a457cdc070cf24014e50129c2", "lessThan": "2aa679bff2e9a90f8a39e769ccb0b03d945a5c52", "status": "affected", "versionType": "git" }, { "version": "630ef623ed26c18a457cdc070cf24014e50129c2", "lessThan": "b11079315bcbe2bd947e5e819e5f5c03451afc61", "status": "affected", "versionType": "git" }, { "version": "630ef623ed26c18a457cdc070cf24014e50129c2", "lessThan": "89a2381482d8ff8e4fe0b7d32797bb4f77503b89", "status": "affected", "versionType": "git" }, { "version": "0b948f3c2149680b38757257d37406777338b0dc", "status": "affected", "versionType": "git" }, { "version": "00b5bc6421739f6eba45eede245846394e0dd279", "status": "affected", "versionType": "git" }, { "version": "3c1db90ae0d0210c0695f63f77458124d83508b2", "status": "affected", "versionType": "git" }, { "version": "3a96437f6bf85fa64e933cc100445f9278cee1ff", "status": "affected", "versionType": "git" }, { "version": "929778cfc8f31f3fa793a5fa5f10fe3cd30f63ff", "status": "affected", "versionType": "git" }, { "version": "5e9e6d114b536c654a7209c98a38f982a2de7009", "status": "affected", "versionType": "git" }, { "version": "4.14.233", "lessThan": "4.15", "status": "affected", "versionType": "semver" }, { "version": "4.19.191", "lessThan": "4.20", "status": "affected", "versionType": "semver" }, { "version": "5.4.120", "lessThan": "5.5", "status": "affected", "versionType": "semver" }, { "version": "5.10.38", "lessThan": "5.11", "status": "affected", "versionType": "semver" }, { "version": "5.11.22", "lessThan": "5.12", "status": "affected", "versionType": "semver" }, { "version": "5.12.5", "lessThan": "5.13", "status": "affected", "versionType": "semver" } ] }, { "product": "Linux", "vendor": "Linux", "defaultStatus": "affected", "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git", "programFiles": [ "block/blk-mq.c" ], "versions": [ { "version": "5.13", "status": "affected" }, { "version": "0", "lessThan": "5.13", "status": "unaffected", "versionType": "semver" }, { "version": "6.6.163", "lessThanOrEqual": "6.6.*", "status": "unaffected", "versionType": "semver" }, { "version": "6.12.119", "lessThanOrEqual": "6.12.*", "status": "unaffected", "versionType": "semver" }, { "version": "6.18.65", "lessThanOrEqual": "6.18.*", "status": "unaffected", "versionType": "semver" }, { "version": "7.3.6", "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": "5.13", "versionEndExcluding": "6.6.163" }, { "vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionStartIncluding": "5.13", "versionEndExcluding": "6.12.119" }, { "vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionStartIncluding": "5.13", "versionEndExcluding": "6.18.65" }, { "vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionStartIncluding": "5.13", "versionEndExcluding": "7.3.6" }, { "vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionStartIncluding": "5.13", "versionEndExcluding": "7.4-rc1" }, { "vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionStartIncluding": "4.14.233" }, { "vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionStartIncluding": "4.19.191" }, { "vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionStartIncluding": "5.4.120" }, { "vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionStartIncluding": "5.10.38" }, { "vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionStartIncluding": "5.11.22" }, { "vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionStartIncluding": "5.12.5" } ] } ] } ], "references": [ { "url": "https://git.kernel.org/stable/c/a6f435cba9508e6ee9f81c1b32ebce9e90031023" }, { "url": "https://git.kernel.org/stable/c/f179c59bea9959901d6b9f0a7e45c170d6fbb2e3" }, { "url": "https://git.kernel.org/stable/c/2aa679bff2e9a90f8a39e769ccb0b03d945a5c52" }, { "url": "https://git.kernel.org/stable/c/b11079315bcbe2bd947e5e819e5f5c03451afc61" }, { "url": "https://git.kernel.org/stable/c/89a2381482d8ff8e4fe0b7d32797bb4f77503b89" } ], "title": "blk-mq: exit the hctxs of a queue under tag_list_lock", "x_generator": { "engine": "bippy-1.2.0" } } } }