CVE-2026-74383: nvme-pci: fix out-of-bounds access in nvme_setup_descriptor_pools
Greg Kroah-Hartman <[email protected]>
| Newsgroups | org.kernel.vger.linux-cve-announce |
|---|---|
| Message-ID | <2026081505-CVE-2026-74383-a1aa@gregkh> |
From: Greg Kroah-Hartman <[email protected]> Description =========== In the Linux kernel, the following vulnerability has been resolved: nvme-pci: fix out-of-bounds access in nvme_setup_descriptor_pools nvme_setup_descriptor_pools() indexes dev->descriptor_pools[] using the numa_node forwarded from hctx->numa_node by its single caller, nvme_init_hctx_common(). On a non-NUMA kernel hctx->numa_node is NUMA_NO_NODE (-1). Because the parameter was declared 'unsigned', the value becomes UINT_MAX and the index walks off the array (sized to nr_node_ids), faulting during nvme_alloc_ns() and leaving the namespace without a /dev node. Reproduces on any NVMe controller probed by a CONFIG_NUMA=n kernel: BUG: unable to handle page fault for address: ffff889101603d38 RIP: 0010:nvme_init_hctx_common+0x5a/0x190 [nvme] Call Trace: nvme_init_hctx+0x10/0x20 [nvme] nvme_alloc_ns+0x9e/0xa10 [nvme_core] nvme_scan_ns+0x301/0x3b0 [nvme_core] nvme_scan_ns_async+0x23/0x30 [nvme_core] Switch the parameter to int and fall back to node 0 when it is NUMA_NO_NODE; node 0 is always present. The Linux kernel CVE team has assigned CVE-2026-74383 to this issue. Affected and fixed versions =========================== Issue introduced in 6.16 with commit d977506f8863807129d7a11f4057dfb1b38085ea and fixed in 6.18.40 with commit 3e8aed5edaeeb237f97255d711aac6b5843fc059 Issue introduced in 6.16 with commit d977506f8863807129d7a11f4057dfb1b38085ea and fixed in 7.1.5 with commit fa9b6accd1ad7af6914b409c6b003c417724c299 Issue introduced in 6.16 with commit d977506f8863807129d7a11f4057dfb1b38085ea and fixed in 7.2-rc1 with commit a192b8cfa447e1b3701a13434a31c392b2e7ed29 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-74383 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/3e8aed5edaeeb237f97255d711aac6b5843fc059 https://git.kernel.org/stable/c/fa9b6accd1ad7af6914b409c6b003c417724c299 https://git.kernel.org/stable/c/a192b8cfa447e1b3701a13434a31c392b2e7ed29