{
  "id": "CVE-2025-40319",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-40319",
  "published_at": "2025-12-08T00:46:46.448Z",
  "title": "bpf: Sync pending IRQ work before freeing ring buffer",
  "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: Sync pending IRQ work before freeing ring buffer\n\nFix a race where irq_work can be queued in bpf_ringbuf_commit()\nbut the ring buffer is freed before the work executes.\nIn the syzbot reproducer, a BPF program attached to sched_switch\ntriggers bpf_ringbuf_commit(), queuing an irq_work. If the ring buffer\nis freed before this work executes, the irq_work thread may accesses\nfreed memory.\nCalling `irq_work_sync(\u0026rb-\u003ework)` ensures that all pending irq_work\ncomplete before freeing the buffer.",
  "cvss_by_source": {
    "cna": 7.8
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "\u003e= 457f44363a8894135c85b7a9afd2bd8196db24ab, \u003c 47626748a2a00068dbbd5836d19076637b4e235b",
          "\u003e= 457f44363a8894135c85b7a9afd2bd8196db24ab, \u003c de2ce6b14bc3e565708a39bdba3ef9162aeffc72",
          "\u003e= 457f44363a8894135c85b7a9afd2bd8196db24ab, \u003c e1828c7a8d8135e21ff6adaaa9458c32aae13b11",
          "\u003e= 457f44363a8894135c85b7a9afd2bd8196db24ab, \u003c 6451141103547f4efd774e912418a3b4318046c6",
          "\u003e= 457f44363a8894135c85b7a9afd2bd8196db24ab, \u003c 10ca3b2eec384628bc9f5d8190aed9427ad2dde6",
          "\u003e= 457f44363a8894135c85b7a9afd2bd8196db24ab, \u003c 430e15544f11f8de26b2b5109c7152f71b78295e",
          "\u003e= 457f44363a8894135c85b7a9afd2bd8196db24ab, \u003c 4e9077638301816a7d73fa1e1b4c1db4a7e3b59c"
        ],
        "fixed_in": [
          "47626748a2a00068dbbd5836d19076637b4e235b",
          "de2ce6b14bc3e565708a39bdba3ef9162aeffc72",
          "e1828c7a8d8135e21ff6adaaa9458c32aae13b11",
          "6451141103547f4efd774e912418a3b4318046c6",
          "10ca3b2eec384628bc9f5d8190aed9427ad2dde6",
          "430e15544f11f8de26b2b5109c7152f71b78295e",
          "4e9077638301816a7d73fa1e1b4c1db4a7e3b59c"
        ]
      },
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "5.8"
        ],
        "fixed_in": [
          "0",
          "5.10.247",
          "5.15.197",
          "6.1.159",
          "6.6.117",
          "6.12.58",
          "6.17.8",
          "6.18"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Linux to 47626748a2a00068dbbd5836d19076637b4e235b or de2ce6b14bc3e565708a39bdba3ef9162aeffc72 or e1828c7a8d8135e21ff6adaaa9458c32aae13b11 or 6451141103547f4efd774e912418a3b4318046c6 or 10ca3b2eec384628bc9f5d8190aed9427ad2dde6 or 430e15544f11f8de26b2b5109c7152f71b78295e or 4e9077638301816a7d73fa1e1b4c1db4a7e3b59c or later.",
      "Upgrade Linux to 0 or 5.10.247 or 5.15.197 or 6.1.159 or 6.6.117 or 6.12.58 or 6.17.8 or 6.18 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
