Skip to contentSkip to conversation

CVE-2026-31523: nvme-pci: ensure we're polling a polled queue

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Apr 22

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

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

nvme-pci: ensure we're polling a polled queue

A user can change the polled queue count at run time. There's a brief window during a reset where a hipri task may try to poll that queue before the block layer has updated the queue maps, which would race with the now interrupt driven queue and may cause double completions.

The Linux kernel CVE team has assigned CVE-2026-31523 to this issue.

Affected and fixed versions
===========================

	Fixed in 5.10.253 with commit 965e2c943f065122f14282a88d70a8a92e12a4da
	Fixed in 5.15.203 with commit ba167d5982e2eb6ff9356d409eca592ce99555da
	Fixed in 6.1.168 with commit 0685dd9cb855ab77fcf3577b4702ba1d6df1c98d
	Fixed in 6.6.131 with commit 6f12734c4b619f923a4df0b1a46b8098b187d324
	Fixed in 6.12.80 with commit acbc72dd1a09df53cafcf577259f4678be6afd6d
	Fixed in 6.18.21 with commit b96c7b25eb1b748f3e3b1832ebf028b0b223d7e3
	Fixed in 6.19.11 with commit b222680ba55e018426c4535067a008f1d81a5d21
	Fixed in 7.0 with commit 166e31d7dbf6aa44829b98aa446bda5c9580f12a

Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at

	https://cve.org/CVERecord/?id=CVE-2026-31523

will be updated if fixes are backported, please check that for the most up to date information about this issue.

Affected files
==============

The file(s) affected by this issue are:
drivers/nvme/host/pci.c

Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:

	https://git.kernel.org/stable/c/965e2c943f065122f14282a88d70a8a92e12a4da
	https://git.kernel.org/stable/c/ba167d5982e2eb6ff9356d409eca592ce99555da
	https://git.kernel.org/stable/c/0685dd9cb855ab77fcf3577b4702ba1d6df1c98d
	https://git.kernel.org/stable/c/6f12734c4b619f923a4df0b1a46b8098b187d324
	https://git.kernel.org/stable/c/acbc72dd1a09df53cafcf577259f4678be6afd6d
	https://git.kernel.org/stable/c/b96c7b25eb1b748f3e3b1832ebf028b0b223d7e3
	https://git.kernel.org/stable/c/b222680ba55e018426c4535067a008f1d81a5d21
	https://git.kernel.org/stable/c/166e31d7dbf6aa44829b98aa446bda5c9580f12a