In the Linux kernel, the following vulnerability has been resolved: nvme-fabrics: clear the poll map if no poll queues are mapped blk_mq_alloc_tag_set sets the nr_queues of every map to nr_hw_queues. When nr_poll_queues is set but no queues are left for polling, nvmf_map_queues skips the poll map and leaves it this way, with all CPUs mapped to hctx 0. The queue then claims poll support, polled I/O ends up on hctx 0, which isn't a poll queue, and hctx 0 is marked as a poll hctx, so even the Connect command of the first I/O queue is marked as polled. Clear the poll map when no poll queues are mapped, so polled I/O is rejected with -EOPNOTSUPP.
https://git.kernel.org/stable/c/d1d655889a125a1d12e1fa37fdaab304006b6d8b
https://git.kernel.org/stable/c/cdd0837de3afb0c86d88f9ce06c878f96496f7b6
https://git.kernel.org/stable/c/81e65ef4eb6db24a2d46aa36d36129ad25631111
https://git.kernel.org/stable/c/725776b35028c8d68c9c0da803deb422a4312aca
https://git.kernel.org/stable/c/36ede1aa85d5d74c39ed375a906f6eadb15cee5b
https://git.kernel.org/stable/c/1fb8f424e4f039495a88a4ded10ced729bd3cb1f