# CVE-2026-74384: nvme-multipath: fix flex array size in struct nvme\_ns\_head

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** CRITICAL 9.8
- **CVSS:** 9.8 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.76% (percentile 51, 2026-11-26)
- **Published:** 2026-08-15T05:59:00.445Z
- **Modified:** 2026-10-16T19:17:43.143Z

## Who should check

- Anyone running Linux \>= f333444708f82c4a4d3ccac004da0bfd9cfdfa42, \< 7e7b167e65610dfa7564d449474f4b477f9d4c1c; \>= f333444708f82c4a4d3ccac004da0bfd9cfdfa42, \< 316b5f1168264844aa125959de1d6da2b1905795; \>= f333444708f82c4a4d3ccac004da0bfd9cfdfa42, \< 1d4131b5c9823c7d2c86389898ad1b466af7df5e; \>= f333444708f82c4a4d3ccac004da0bfd9cfdfa42, \< 9ffdd11bd6c961b46b3689850ff6c5d7af5c5fe5; \>= f333444708f82c4a4d3ccac004da0bfd9cfdfa42, \< bde4d6eb53f7d3cdae7e62c9ee84345fdd6e70a6; \>= f333444708f82c4a4d3ccac004da0bfd9cfdfa42, \< 140d6fff4ed266592492a23444043842b4af7a62; \>= f333444708f82c4a4d3ccac004da0bfd9cfdfa42, \< 7173a741fed73de6247384056fe92e582ba12507; \>= f333444708f82c4a4d3ccac004da0bfd9cfdfa42, \< 001e57554de81aa79c25c18fd53911d8a415c304
- Anyone running Linux 4.20

## Description

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

nvme-multipath: fix flex array size in struct nvme\_ns\_head

struct nvme\_ns\_head contains a flexible array member, current\_path\[\],
which is indexed using the NUMA node ID:
head-\>current\_path\[numa\_node\_id()\]

The structure is currently allocated as:
size = sizeof(struct nvme\_ns\_head) +
       (num\_possible\_nodes() \* sizeof(struct nvme\_ns \*));
head = kzalloc(size, GFP\_KERNEL);

This allocation assumes that NUMA node IDs are sequential and densely
packed from 0 .. num\_possible\_nodes() - 1. While this assumption holds
on many systems, it is not always true on some architectures such as
powerpc.

On some powerpc systems, NUMA node IDs can be sparse. For example:
NUMA:
  NUMA node(s):              6
  NUMA node0 CPU(s):         80-159
  NUMA node8 CPU(s):         0-79
  NUMA node252 CPU(s):
  NUMA node253 CPU(s):
  NUMA node254 CPU(s):
  NUMA node255 CPU(s):

That is, the possible/online NUMA node IDs are: 0, 8, 252, 253, 254, 255
In this case: num\_possible\_nodes() = 6

So memory is allocated for only 6 entries in current\_path\[\]. However,
the array is later indexed using the actual NUMA node ID. As a result,
accesses such as:
head-\>current\_path\[8\] or
head-\>current\_path\[252\]
goes out of bounds, leading to the following KASAN splat:

==================================================================
BUG: KASAN: slab-out-of-bounds in nvme\_mpath\_revalidate\_paths+0x22c/0x290 \[nvme\_core\]
Write of size 8 at addr c00020003bda35b8 by task kworker/u641:2/1997

CPU: 1 UID: 0 PID: 1997 Comm: kworker/u641:2 Not tainted 7.1.0-rc5-dirty \#14 PREEMPT(lazy)
Hardware name: 8335-GTH POWER9 0x4e1202 opal:skiboot-v6.5.3-35-g1851b2a06 PowerNV
Workqueue: async async\_run\_entry\_fn
Call Trace:
\[c000200037fa7510\] \[c0000000021c23d4\] dump\_stack\_lvl+0x88/0xdc (unreliable)
\[c000200037fa7540\] \[c0000000009fda90\] print\_report+0x22c/0x67c
\[c000200037fa7630\] \[c0000000009fd508\] kasan\_report+0x108/0x220
\[c000200037fa7740\] \[c0000000009fff48\] \_\_asan\_store8+0xe8/0x120
\[c000200037fa7760\] \[c008000018e76474\] nvme\_mpath\_revalidate\_paths+0x22c/0x290 \[nvme\_core\]
\[c000200037fa7800\] \[c008000018e6556c\] nvme\_update\_ns\_info+0x4a4/0x5e0 \[nvme\_core\]
\[c000200037fa7a50\] \[c008000018e66270\] nvme\_alloc\_ns+0x6d8/0x1a70 \[nvme\_core\]
\[c000200037fa7c20\] \[c008000018e679fc\] nvme\_scan\_ns+0x3f4/0x630 \[nvme\_core\]
\[c000200037fa7d10\] \[c00000000031f22c\] async\_run\_entry\_fn+0x9c/0x3a0
\[c000200037fa7db0\] \[c0000000002fa544\] process\_one\_work+0x414/0xa10
\[c000200037fa7ec0\] \[c0000000002fbf00\] worker\_thread+0x320/0x640
\[c000200037fa7f80\] \[c00000000030d0f8\] kthread+0x278/0x290
\[c000200037fa7fe0\] \[c00000000000ded8\] start\_kernel\_thread+0x14/0x18

Allocated by task 1997 on cpu 1 at 35.928317s:

The buggy address belongs to the object at c00020003bda3000
 which belongs to the cache kmalloc-rnd-15-2k of size 2048
The buggy address is located 16 bytes to the right of
 allocated 1448-byte region \[c00020003bda3000, c00020003bda35a8)

The buggy address belongs to the physical page:

Memory state around the buggy address:
 c00020003bda3480: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 c00020003bda3500: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
\>c00020003bda3580: 00 00 00 00 00 fc fc fc fc fc fc fc fc fc fc fc
                                        ^
 c00020003bda3600: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
 c00020003bda3680: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
==================================================================

Fix this by allocating the flexible array using nr\_node\_ids instead
of num\_possible\_nodes(). Since nr\_node\_ids represents the maximum
possible NUMA node IDs, indexing current\_path\[\] using numa\_node\_id()
becomes safe even on systems with sparse node IDs.

## Affected and fixed versions

- Linux: \>= f333444708f82c4a4d3ccac004da0bfd9cfdfa42, \< 7e7b167e65610dfa7564d449474f4b477f9d4c1c; \>= f333444708f82c4a4d3ccac004da0bfd9cfdfa42, \< 316b5f1168264844aa125959de1d6da2b1905795; \>= f333444708f82c4a4d3ccac004da0bfd9cfdfa42, \< 1d4131b5c9823c7d2c86389898ad1b466af7df5e; \>= f333444708f82c4a4d3ccac004da0bfd9cfdfa42, \< 9ffdd11bd6c961b46b3689850ff6c5d7af5c5fe5; \>= f333444708f82c4a4d3ccac004da0bfd9cfdfa42, \< bde4d6eb53f7d3cdae7e62c9ee84345fdd6e70a6; \>= f333444708f82c4a4d3ccac004da0bfd9cfdfa42, \< 140d6fff4ed266592492a23444043842b4af7a62; \>= f333444708f82c4a4d3ccac004da0bfd9cfdfa42, \< 7173a741fed73de6247384056fe92e582ba12507; \>= f333444708f82c4a4d3ccac004da0bfd9cfdfa42, \< 001e57554de81aa79c25c18fd53911d8a415c304 (cvelist)
- Linux: 4.20 (cvelist)

## Mitigation

- Upgrade Linux to 001e57554de81aa79c25c18fd53911d8a415c304 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-74384. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-74384.md
Affected: Linux >= f333444708f82c4a4d3ccac004da0bfd9cfdfa42, < 7e7b167e65610dfa7564d449474f4b477f9d4c1c; >= f333444708f82c4a4d3ccac004da0bfd9cfdfa42, < 316b5f1168264844aa125959de1d6da2b1905795; >= f333444708f82c4a4d3ccac004da0bfd9cfdfa42, < 1d4131b5c9823c7d2c86389898ad1b466af7df5e; >= f333444708f82c4a4d3ccac…
Fixed in: Linux 7e7b167e65610dfa7564d449474f4b477f9d4c1c, Linux 316b5f1168264844aa125959de1d6da2b1905795, Linux 1d4131b5c9823c7d2c86389898ad1b466af7df5e, Linux 9ffdd11bd6c961b46b3689850ff6c5d7af5c5fe5, Linux 140d6fff4ed266592492a23444043842b4af7a62, Linux 7173a741fed73de6247384056fe92e582ba12507, Linux 001e5…

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-74384 being exploited?

There is no confirmed exploitation: CVE-2026-74384 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.76% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-74384?

Critical: CVSS 9.8 (v3.1, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2026-74384?

Linux \>= f333444708f82c4a4d3ccac004da0bfd9cfdfa42, \< 7e7b167e65610dfa7564d449474f4b477f9d4c1c; \>= f333444708f82c4a4d3ccac004da0bfd9cfdfa42, \< 316b5f1168264844aa125959de1d6da2b1905795; \>= f333444708f82c4a4d3ccac004da0bfd9cfdfa42, \< 1d4131b5c9823c7d2c86389898ad1b466af7df5e; \>= f333444708f82c4a4d3ccac004da0bfd9cfdfa42, \< 9ffdd11bd6c961b46b3689850ff6c5d7af5c5fe5; \>= f333444708f82c4a4d3ccac004da0bfd9cfdfa42, \< bde4d6eb53f7d3cdae7e62c9ee84345fdd6e70a6; \>= f333444708f82c4a4d3ccac004da0bfd9cfdfa42, \< 140d6fff4ed266592492a23444043842b4af7a62; \>= f333444708f82c4a4d3ccac004da0bfd9cfdfa42, \< 7173a741fed73de6247384056fe92e582ba12507; \>= f333444708f82c4a4d3ccac004da0bfd9cfdfa42, \< 001e57554de81aa79c25c18fd53911d8a415c304; Linux 4.20.

### Is there a fix for CVE-2026-74384?

Yes. Fixed in Linux 7e7b167e65610dfa7564d449474f4b477f9d4c1c, Linux 316b5f1168264844aa125959de1d6da2b1905795, Linux 1d4131b5c9823c7d2c86389898ad1b466af7df5e, Linux 9ffdd11bd6c961b46b3689850ff6c5d7af5c5fe5, Linux 140d6fff4ed266592492a23444043842b4af7a62, Linux 7173a741fed73de6247384056fe92e582ba12507, Linux 001e57554de81aa79c25c18fd53911d8a415c304. Upgrade Linux to 001e57554de81aa79c25c18fd53911d8a415c304 or later.

### How do I check if I'm affected by CVE-2026-74384?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/7e7b167e65610dfa7564d449474f4b477f9d4c1c>
- other: <https://git.kernel.org/stable/c/316b5f1168264844aa125959de1d6da2b1905795>
- other: <https://git.kernel.org/stable/c/1d4131b5c9823c7d2c86389898ad1b466af7df5e>
- other: <https://git.kernel.org/stable/c/9ffdd11bd6c961b46b3689850ff6c5d7af5c5fe5>
- other: <https://git.kernel.org/stable/c/bde4d6eb53f7d3cdae7e62c9ee84345fdd6e70a6>
- other: <https://git.kernel.org/stable/c/140d6fff4ed266592492a23444043842b4af7a62>
- other: <https://git.kernel.org/stable/c/7173a741fed73de6247384056fe92e582ba12507>
- other: <https://git.kernel.org/stable/c/001e57554de81aa79c25c18fd53911d8a415c304>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-74384>

HTML: <https://flawdb.com/CVE-2026-74384> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-74384>
