{
  "id": "CVE-2026-23359",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-23359",
  "published_at": "2026-03-25T10:27:43.07Z",
  "title": "bpf: Fix stack-out-of-bounds write in devmap",
  "vendor": "Linux",
  "product": "Linux",
  "cvss": {
    "score": 7.8,
    "source": "nvd",
    "vector": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Fix stack-out-of-bounds write in devmap\n\nget_upper_ifindexes() iterates over all upper devices and writes their\nindices into an array without checking bounds.\n\nAlso the callers assume that the max number of upper devices is\nMAX_NEST_DEV and allocate excluded_devices[1+MAX_NEST_DEV] on the stack,\nbut that assumption is not correct and the number of upper devices could\nbe larger than MAX_NEST_DEV (e.g., many macvlans), causing a\nstack-out-of-bounds write.\n\nAdd a max parameter to get_upper_ifindexes() to avoid the issue.\nWhen there are too many upper devices, return -EOVERFLOW and abort the\nredirect.\n\nTo reproduce, create more than MAX_NEST_DEV(8) macvlans on a device with\nan XDP program attached using BPF_F_BROADCAST | BPF_F_EXCLUDE_INGRESS.\nThen send a packet to the device to trigger the XDP redirect path.",
  "cwe": "CWE-787",
  "cpes": [
    "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:5.15:-:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:7.0:rc1:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:7.0:rc2:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:7.0:rc3:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:7.0:rc4:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:7.0:rc5:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:7.0:rc6:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:7.0:rc7:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "nvd": 7.8
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "\u003e= aeea1b86f9363f3feabb496534d886f082a89f21, \u003c 88df604f0d16a692867582350ce3f2fcd22243f1",
          "\u003e= aeea1b86f9363f3feabb496534d886f082a89f21, \u003c 5000e40acc8d0c36ab709662e32120986ac22e7e",
          "\u003e= aeea1b86f9363f3feabb496534d886f082a89f21, \u003c 8a95fb9df1105b1618872c2846a6c01e3ba20b45",
          "\u003e= aeea1b86f9363f3feabb496534d886f082a89f21, \u003c d2c31d8e03d05edc16656e5ffe187f0d1da763d7",
          "\u003e= aeea1b86f9363f3feabb496534d886f082a89f21, \u003c 75d474702b2ba8b6bcb26eb3004dbc5e95ffd5d2",
          "\u003e= aeea1b86f9363f3feabb496534d886f082a89f21, \u003c ca831567908fd3f73cf97d8a6c09a5054697a182",
          "\u003e= aeea1b86f9363f3feabb496534d886f082a89f21, \u003c b7bf516c3ecd9a2aae2dc2635178ab87b734fef1"
        ],
        "fixed_in": [
          "88df604f0d16a692867582350ce3f2fcd22243f1",
          "5000e40acc8d0c36ab709662e32120986ac22e7e",
          "8a95fb9df1105b1618872c2846a6c01e3ba20b45",
          "d2c31d8e03d05edc16656e5ffe187f0d1da763d7",
          "75d474702b2ba8b6bcb26eb3004dbc5e95ffd5d2",
          "ca831567908fd3f73cf97d8a6c09a5054697a182",
          "b7bf516c3ecd9a2aae2dc2635178ab87b734fef1"
        ]
      },
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "5.15"
        ],
        "fixed_in": [
          "0",
          "5.15.203",
          "6.1.167",
          "6.6.130",
          "6.12.77",
          "6.18.17",
          "6.19.7",
          "7.0"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Linux to 88df604f0d16a692867582350ce3f2fcd22243f1 or 5000e40acc8d0c36ab709662e32120986ac22e7e or 8a95fb9df1105b1618872c2846a6c01e3ba20b45 or d2c31d8e03d05edc16656e5ffe187f0d1da763d7 or 75d474702b2ba8b6bcb26eb3004dbc5e95ffd5d2 or ca831567908fd3f73cf97d8a6c09a5054697a182 or b7bf516c3ecd9a2aae2dc2635178ab87b734fef1 or later.",
      "Upgrade Linux to 0 or 5.15.203 or 6.1.167 or 6.6.130 or 6.12.77 or 6.18.17 or 6.19.7 or 7.0 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
