Skip to content
Heist/ feed
Unrated

bpf: Fix stack-out-of-bounds write in devmap

Type: advisorySource: Official CVE List1 source record

In the Linux kernel, the following vulnerability has been resolved: bpf: Fix stack-out-of-bounds write in devmap get_upper_ifindexes() iterates over all upper devices and writes their indices into an array without checking bounds. Also the callers assume that the max number of upper devices is MAX_NEST_DEV and allocate excluded_devices[1+MAX_NEST_DEV] on the stack, but that assumption is not correct and the number of upper devices could be larger than MAX_NEST_DEV (e.g., many macvlans), causing a stack-out-of-bounds write. Add a max parameter to get_upper_ifindexes() to avoid the issue. When there are too many upper devices, return -EOVERFLOW and abort the redirect. To reproduce, create more than MAX_NEST_DEV(8) macvlans on a device with an XDP program attached using BPF_F_BROADCAST | BPF_F_EXCLUDE_INGRESS. Then send a packet to the device to trigger the XDP redirect path.

Announced Source revision 1
Original source ↗

CVE-2026-23359

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-23359

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": "aeea1b86f9363f3feabb496534d886f082a89f21",
        "lessThan": "88df604f0d16a692867582350ce3f2fcd22243f1",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "aeea1b86f9363f3feabb496534d886f082a89f21",
        "lessThan": "5000e40acc8d0c36ab709662e32120986ac22e7e",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "aeea1b86f9363f3feabb496534d886f082a89f21",
        "lessThan": "8a95fb9df1105b1618872c2846a6c01e3ba20b45",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "aeea1b86f9363f3feabb496534d886f082a89f21",
        "lessThan": "d2c31d8e03d05edc16656e5ffe187f0d1da763d7",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "aeea1b86f9363f3feabb496534d886f082a89f21",
        "lessThan": "75d474702b2ba8b6bcb26eb3004dbc5e95ffd5d2",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "aeea1b86f9363f3feabb496534d886f082a89f21",
        "lessThan": "ca831567908fd3f73cf97d8a6c09a5054697a182",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "aeea1b86f9363f3feabb496534d886f082a89f21",
        "lessThan": "b7bf516c3ecd9a2aae2dc2635178ab87b734fef1",
        "versionType": "git"
      }
    ],
    "programFiles": [
      "kernel/bpf/devmap.c"
    ],
    "defaultStatus": "unaffected"
  },
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "5.15"
      },
      {
        "status": "unaffected",
        "version": "0",
        "lessThan": "5.15",
        "versionType": "semver"
      },
      {
        "status": "unaffected",
        "version": "5.15.203",
        "versionType": "semver",
        "lessThanOrEqual": "5.15.*"
      },
      {
        "status": "unaffected",
        "version": "6.1.167",
        "versionType": "semver",
        "lessThanOrEqual": "6.1.*"
      },
      {
        "status": "unaffected",
        "version": "6.6.130",
        "versionType": "semver",
        "lessThanOrEqual": "6.6.*"
      },
      {
        "status": "unaffected",
        "version": "6.12.77",
        "versionType": "semver",
        "lessThanOrEqual": "6.12.*"
      },
      {
        "status": "unaffected",
        "version": "6.18.17",
        "versionType": "semver",
        "lessThanOrEqual": "6.18.*"
      },
      {
        "status": "unaffected",
        "version": "6.19.7",
        "versionType": "semver",
        "lessThanOrEqual": "6.19.*"
      },
      {
        "status": "unaffected",
        "version": "7.0",
        "versionType": "original_commit_for_fix",
        "lessThanOrEqual": "*"
      }
    ],
    "programFiles": [
      "kernel/bpf/devmap.c"
    ],
    "defaultStatus": "affected"
  }
]
Related CVEs
CVE-2026-23359

Source reference: /cveMetadata/cveId

Publisher severity

No explicit severity was provided.

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