nvme-fabrics: reset io_queues before computing the queue mapping

State
Published
Severity
Not Scored
Published
Nov 30, 2026
Updated
Nov 30, 2026
Reserved
Nov 30, 2026

Read the record on cve.org

Description

In the Linux kernel, the following vulnerability has been resolved:

nvme-fabrics: reset io_queues before computing the queue mapping

nvmf_set_io_queues only sets the io_queues 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 nvmf_map_queues maps CPUs to hardware contexts that don't exist anymore, which crashes blk_mq_map_swqueue with a NULL pointer dereference. E.g. with nr_io_queues=8, nr_write_queues=8 and nr_poll_queues=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.

ProductVersions
Linux Linux5651cd3c43368873d0787b52acb2e0e08f3c5da4 to before 94498c0363440da72de04cd8a3bff6465f4f4886 Affected5651cd3c43368873d0787b52acb2e0e08f3c5da4 to before 8bf33026231edefd87bbedbf21f4cf57924732ee Affected5651cd3c43368873d0787b52acb2e0e08f3c5da4 to before 7cd360c2fb439e60c777c00f2d49e6bbecbe83b0 Affected5651cd3c43368873d0787b52acb2e0e08f3c5da4 to before 2cde8f0ce90d3b78e74c6aed54c22374505552d2 Affected5651cd3c43368873d0787b52acb2e0e08f3c5da4 to before 0402ae823759c4dc695596f00a039dfd078b2e37 Affected5651cd3c43368873d0787b52acb2e0e08f3c5da4 to before 9588769af5fc8ac12290d48ce1014a78916681fc Affectedd8a303bd8452396a928f5ca2c7957167b2d185f0 Affected3111e132f46e64440878d7b855fc1709d20ff7d8 Affected5.1.9 to before 5.2 Affected5.1.13 to before 5.2 Affected
Linux Linux5.2 Affectedbefore 5.2 Not Affected6.1.193 through 6.1.* Not Affected6.6.163 through 6.6.* Not Affected6.12.119 through 6.12.* Not Affected6.18.65 through 6.18.* Not Affected7.3.6 through 7.3.* Not Affected7.4-rc1 and later Not Affected

Weaknesses

The record names no weakness.

References

Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.

© 2026 NVIDIA, the NVIDIA logo, and NVIDIA Inception are trademarks and/or registered trademarks of NVIDIA Corporation in the U.S. and other countries.