CVE-2026-139224

nvme-fabrics: reset io_queues before computing the queue mapping

Published Nov 30, 2026 CVSS 3.1 · 4.1 Medium EPSS n/a KEV · Not listed
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.

Analysis

AI-generated

Technical impact

A flaw in the Linux nvme-fabrics subsystem causes a NULL pointer dereference during queue mapping when a controller reconnects with fewer queues. The code reuses stale entries and does not clear the io_queues array before recomputing the mapping; this leads to a crash in blk_mq_map_swqueue. The issue is a classic CWE‑476: NULL Pointer Dereference, resulting in an abrupt kernel shutdown and system unavailability.

Affected Systems

Any Linux kernel build that includes the nvme-fabrics driver without the recent patch is affected. Exact kernel versions are not listed, but any release prior to the commit that introduced the array clear is vulnerable. Administrators should verify that the nvme module is present and up to date in their kernels.

Risk and Exploitability

No EPSS score is available and the vulnerability is not listed in the CISA KEV catalog. The CVSS score is not provided, so the severity cannot be quantified from the data. The attack likely requires the ability to trigger a controller reconnection that grants fewer io_queues, which may be achieved locally or over the network depending on the NVMe‑over‑Fabrics setup. Attackers with such access could indirectly cause a system crash by forcing the reinitialization sequence.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the upstream kernel patch that clears the io_queues array before recomputing the mapping, which is already incorporated in recent kernel releases.
  • Upgrade to a kernel version that includes the fix; using the most recent stable or LTS release is recommended.
  • If an immediate patch cannot be applied, suppress or limit NVMe‑over‑Fabrics reconnection gaps as a temporary mitigation.
  • Remove the nvme module from systems that do not require NVMe‑over‑Fabrics to reduce exposure.

Generated by OpenCVE AI on December 1, 2026 at 08:02 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
References
Metrics threat_severity

None

cvssV3_1

{'score': 4.1, 'vector': 'CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Moderate

Type Values Removed Values Added
Weaknesses CWE-476
Type Values Removed Values Added
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.
Title nvme-fabrics: reset io_queues before computing the queue mapping
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:32 PM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:18 PM
Modified
Nov 30, 2026, 2:18 PM
Severity
Moderate
Public date
Nov 30, 2026, 1:32 PM