CVE-2026-139224: nvme-fabrics: reset io_queues before computing the queue mapping
In the Linux kernel, the following vulnerability has been resolved:
nvme-fabrics: reset ioqueues before computing the queue mapping
nvmfsetioqueues only sets the ioqueues entries of the queue types it hands out, but the array is reused on every reconnect. When the controller grants fewer queues on a reconnect, stale entries survive and nvmfmapqueues maps CPUs to hardware contexts that don't exist anymore, which crashes blkmqmapswqueue with a NULL pointer dereference. E.g. with nrioqueues=8, nrwritequeues=8 and nrpollqueues=8, 24 queues are mapped 8/8/8 (default/read/poll). If the controller grants only 16 queues on the reconnect, the poll map still starts at hardware context 16.
Clear the array before computing the new mapping.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
Reset the io_queues array before computing the queue mapping on reconnect.
Event History
Frequently Asked Questions
Which systems are exposed to this failure?
Systems using Linux NVMe over Fabrics are exposed when a controller reconnect occurs and grants fewer I/O queues than it granted previously. The stale queue mappings can then point CPUs at hardware contexts that no longer exist.
What conditions trigger the crash?
An affected controller must first establish queue mappings and later reconnect with a reduced queue allocation. If stale entries remain in the reused io_queues array, mapping can reach a nonexistent hardware context and cause blk_mq_map_swqueue to dereference a NULL pointer.
Is a normal initial connection sufficient to trigger the issue?
No. The described condition requires a reconnect after a prior connection, with the controller granting fewer queues on the reconnect than before.
What is the impact if the condition is reached?
The kernel can crash in blk_mq_map_swqueue because of a NULL pointer dereference.