{"id":"CVE-2026-142891","summary":"nvme-loop: don't BUG() if a scan runs beside a reset","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nnvme-loop: don't BUG() if a scan runs beside a reset\n\nA reset sets queue_count to 1 while it destroys the I/O queues and\ncounts it back up when the new ones are made, and it doesn't stop the\nscan work. A new namespace found in that window trips the check in\nnvme_loop_init_hctx() for every hctx but the first:\n\n  kernel BUG at drivers/nvme/target/loop.c:224!\n   nvme_loop_init_hctx+0x7d/0x80\n   __blk_mq_realloc_hw_ctxs+0x3af/0xa80\n   nvme_alloc_ns+0x1a2/0x22f0\n\nThe check protects nothing. ctrl-\u003equeues has nr_io_queues + 1 entries\nfor the life of the controller, the tag set never has more hardware\nqueues than that, and nvme_loop_queue_rq() rejects requests until the\ncontroller is live again.\n\nRemove it.","modified":"2026-12-03T05:01:16.063498351Z","published":"2026-12-03T03:25:43.657Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142891.json"},"references":[{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"},{"type":"WEB","url":"https://git.kernel.org/stable/c/586c80bd86228d759298aae3714f3a2dd39ed303"},{"type":"WEB","url":"https://git.kernel.org/stable/c/64e21d782020e267ca57765a30216c38b34f296d"},{"type":"WEB","url":"https://git.kernel.org/stable/c/7eda07f7f8ccf7bf7a5e9514014eac99e8410dd0"},{"type":"WEB","url":"https://git.kernel.org/stable/c/99e4c17b26237416b0114a1303966647a648effd"},{"type":"WEB","url":"https://git.kernel.org/stable/c/9bd1ee9869deb35f962d93ec7b13a7c9f13bfc1d"},{"type":"WEB","url":"https://git.kernel.org/stable/c/c004d5911d19d6695578164ee723efd2ec3a561d"},{"type":"WEB","url":"https://git.kernel.org/stable/c/c93411299eb8c016588452d0af27dd47cba6df0f"},{"type":"WEB","url":"https://git.kernel.org/stable/c/eca0cfe5eb4b7a6488476a862cb38edae951aa64"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142891.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-142891"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"3a85a5de29ea779634ddfd768059e06196687aba"},{"fixed":"99e4c17b26237416b0114a1303966647a648effd"},{"fixed":"c004d5911d19d6695578164ee723efd2ec3a561d"},{"fixed":"7eda07f7f8ccf7bf7a5e9514014eac99e8410dd0"},{"fixed":"9bd1ee9869deb35f962d93ec7b13a7c9f13bfc1d"},{"fixed":"eca0cfe5eb4b7a6488476a862cb38edae951aa64"},{"fixed":"586c80bd86228d759298aae3714f3a2dd39ed303"},{"fixed":"c93411299eb8c016588452d0af27dd47cba6df0f"},{"fixed":"64e21d782020e267ca57765a30216c38b34f296d"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-142891.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.8.0"},{"fixed":"5.10.275"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.11.0"},{"fixed":"5.15.226"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.16.0"},{"fixed":"6.1.193"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.2.0"},{"fixed":"6.6.163"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.12.119"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.65"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.3.6"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-142891.json"}}],"schema_version":"1.9.2"}