Skip to content
Heist/ feed
Critical

nvme-multipath: fix flex array size in struct nvme_ns_head

Type: advisorySource: Official CVE List1 source record

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: 199

Announced Group revision 1
Original source ↗

CVE-2026-74384

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: cve:CVE-2026-74384

Linux

Source reference: /containers/cna/affected/0/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Linux

Source reference: /containers/cna/affected/1/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "f333444708f82c4a4d3ccac004da0bfd9cfdfa42",
        "lessThan": "7e7b167e65610dfa7564d449474f4b477f9d4c1c",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "f333444708f82c4a4d3ccac004da0bfd9cfdfa42",
        "lessThan": "316b5f1168264844aa125959de1d6da2b1905795",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "f333444708f82c4a4d3ccac004da0bfd9cfdfa42",
        "lessThan": "1d4131b5c9823c7d2c86389898ad1b466af7df5e",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "f333444708f82c4a4d3ccac004da0bfd9cfdfa42",
        "lessThan": "9ffdd11bd6c961b46b3689850ff6c5d7af5c5fe5",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "f333444708f82c4a4d3ccac004da0bfd9cfdfa42",
        "lessThan": "bde4d6eb53f7d3cdae7e62c9ee84345fdd6e70a6",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "f333444708f82c4a4d3ccac004da0bfd9cfdfa42",
        "lessThan": "140d6fff4ed266592492a23444043842b4af7a62",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "f333444708f82c4a4d3ccac004da0bfd9cfdfa42",
        "lessThan": "7173a741fed73de6247384056fe92e582ba12507",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "f333444708f82c4a4d3ccac004da0bfd9cfdfa42",
        "lessThan": "001e57554de81aa79c25c18fd53911d8a415c304",
        "versionType": "git"
      }
    ],
    "programFiles": [
      "drivers/nvme/host/core.c"
    ],
    "defaultStatus": "unaffected"
  },
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "4.20"
      },
      {
        "status": "unaffected",
        "version": "0",
        "lessThan": "4.20",
        "versionType": "semver"
      },
      {
        "status": "unaffected",
        "version": "5.10.261",
        "versionType": "semver",
        "lessThanOrEqual": "5.10.*"
      },
      {
        "status": "unaffected",
        "version": "5.15.212",
        "versionType": "semver",
        "lessThanOrEqual": "5.15.*"
      },
      {
        "status": "unaffected",
        "version": "6.1.178",
        "versionType": "semver",
        "lessThanOrEqual": "6.1.*"
      },
      {
        "status": "unaffected",
        "version": "6.6.145",
        "versionType": "semver",
        "lessThanOrEqual": "6.6.*"
      },
      {
        "status": "unaffected",
        "version": "6.12.97",
        "versionType": "semver",
        "lessThanOrEqual": "6.12.*"
      },
      {
        "status": "unaffected",
        "version": "6.18.40",
        "versionType": "semver",
        "lessThanOrEqual": "6.18.*"
      },
      {
        "status": "unaffected",
        "version": "7.1.5",
        "versionType": "semver",
        "lessThanOrEqual": "7.1.*"
      },
      {
        "status": "unaffected",
        "version": "7.2",
        "versionType": "original_commit_for_fix",
        "lessThanOrEqual": "*"
      }
    ],
    "programFiles": [
      "drivers/nvme/host/core.c"
    ],
    "defaultStatus": "affected"
  }
]
Related CVEs
CVE-2026-74384

Source reference: /cveMetadata/cveId

Publisher severity

critical

Source reference: /containers/cna/metrics

Event
#33117 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement