CVE-2026-98153: nvme: fix racy access to FDP placement id array
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
nvme: fix racy access to FDP placement id array
nvme_query_fdp_info() is called per-path and therefore prone to races.
It populates head->nr_plids/head->plids for fdp registration. But nothing protects that pair from concurrent access - two paths scanning the same namespace can race to populate it.
Avoid the race by moving this initialization work to nvme_alloc_ns_head() which is called once per shared namespace.
The Linux kernel CVE team has assigned CVE-2026-98153 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.16 with commit 30b5f20bb2ddab013035399e5c7e6577da49320a and fixed in 7.2.7 with commit e0a23e3c8c4c3ce11529fa70d2292b4e56d143ba Issue introduced in 6.16 with commit 30b5f20bb2ddab013035399e5c7e6577da49320a and fixed in 7.3-rc2 with commit 56e1c6bbe4bb084d7ecf61698afdf70be23dd35f
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-98153
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/core.c
drivers/nvme/host/nvme.h
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/e0a23e3c8c4c3ce11529fa70d2292b4e56d143ba https://git.kernel.org/stable/c/56e1c6bbe4bb084d7ecf61698afdf70be23dd35f