{
  "id": "CVE-2026-89580",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-89580",
  "published_at": "2026-09-11T19:44:46.846Z",
  "title": "bpf: Disable preemption in __bpf_get_stack",
  "vendor": "Linux",
  "product": "Linux",
  "cvss": {
    "score": 7.8,
    "source": "cna",
    "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: Disable preemption in __bpf_get_stack\n\nget_perf_callchain() returns a per-CPU perf_callchain_entry buffer and\nreleases its recursion slot via put_callchain_entry() before returning,\nso nothing keeps the entry reserved while __bpf_get_stack() consumes\nit below.\n\nA preemptible BPF program (e.g. a non-sleepable raw tracepoint program\non a PREEMPT kernel, which runs under migrate_disable() but not\npreempt_disable()) can be scheduled out between obtaining the entry\nand the copy. Another task scheduled on the same CPU then reuses the\nsame per-CPU buffer and overwrites trace-\u003enr with a larger value.\ncopy_len is then computed from the inflated trace-\u003enr and can exceed\nthe caller's buffer, causing an out-of-bounds write in the memcpy()\nand in the build_id path.\n\nThe rcu_read_lock() taken here alone does not prevent this. It is\nonly taken on the may_fault path, and under CONFIG_PREEMPT_RCU it does\nnot disable preemption; it merely keeps perf's callchain buffer array\nalive (freed via call_rcu()) and does nothing to stop another task\nfrom reusing the entry.\n\nDisable preemption around obtaining the callchain entry and copying\nit into the caller's buffer, so the entry cannot be reused underneath\nus and trace-\u003enr stays bounded by max_depth. Build ID resolution may\nfault and is therefore deferred until after preemption is re-enabled;\nby then the instruction pointers have already been copied into buf,\nso it operates only on that private copy. Note, preempt_disable() also\nsubsumes the buffer-lifetime guarantee the rcu_read_lock() provided,\nsince a preempt-disabled section is an RCU read-side critical section\nfor the callchain buffers' call_rcu() reclaim.\n\n\n[ changed Fixes: commit ]",
  "cvss_by_source": {
    "cna": 7.8
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "\u003e= c195651e565ae7f41a68acb7d4aa7390ad215de1, \u003c 68eebc89c5ab5a8f9281773f35e49c83940450a0",
          "\u003e= c195651e565ae7f41a68acb7d4aa7390ad215de1, \u003c 719e69421de28829c72bf8a2722ab48a1c5a59ad",
          "\u003e= c195651e565ae7f41a68acb7d4aa7390ad215de1, \u003c 8c5ba022f2085ea42d011497a6e92e527d123b9b",
          "\u003e= c195651e565ae7f41a68acb7d4aa7390ad215de1, \u003c dbfecc8a6631c0d3626c14ba1f1a485a4498445a",
          "\u003e= c195651e565ae7f41a68acb7d4aa7390ad215de1, \u003c 9a23747909fcae707990c8466c381a0e7acfaa4e",
          "\u003e= c195651e565ae7f41a68acb7d4aa7390ad215de1, \u003c b1a47b2708d4e95dbd23aee2ec83752190897b3f"
        ],
        "fixed_in": [
          "68eebc89c5ab5a8f9281773f35e49c83940450a0",
          "719e69421de28829c72bf8a2722ab48a1c5a59ad",
          "8c5ba022f2085ea42d011497a6e92e527d123b9b",
          "dbfecc8a6631c0d3626c14ba1f1a485a4498445a",
          "9a23747909fcae707990c8466c381a0e7acfaa4e",
          "b1a47b2708d4e95dbd23aee2ec83752190897b3f"
        ]
      },
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "4.18"
        ],
        "fixed_in": [
          "0",
          "6.1.191",
          "6.6.160",
          "6.12.109",
          "6.18.50",
          "7.2.4",
          "7.3"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Linux to 68eebc89c5ab5a8f9281773f35e49c83940450a0 or 719e69421de28829c72bf8a2722ab48a1c5a59ad or 8c5ba022f2085ea42d011497a6e92e527d123b9b or dbfecc8a6631c0d3626c14ba1f1a485a4498445a or 9a23747909fcae707990c8466c381a0e7acfaa4e or b1a47b2708d4e95dbd23aee2ec83752190897b3f or later.",
      "Upgrade Linux to 0 or 6.1.191 or 6.6.160 or 6.12.109 or 6.18.50 or 7.2.4 or 7.3 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
