{
  "id": "CVE-2026-23319",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-23319",
  "published_at": "2026-03-25T10:27:13.678Z",
  "title": "bpf: Fix a UAF issue in bpf_trampoline_link_cgroup_shim",
  "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 a UAF issue in bpf_trampoline_link_cgroup_shim\n\nThe root cause of this bug is that when 'bpf_link_put' reduces the\nrefcount of 'shim_link-\u003elink.link' to zero, the resource is considered\nreleased but may still be referenced via 'tr-\u003eprogs_hlist' in\n'cgroup_shim_find'. The actual cleanup of 'tr-\u003eprogs_hlist' in\n'bpf_shim_tramp_link_release' is deferred. During this window, another\nprocess can cause a use-after-free via 'bpf_trampoline_link_cgroup_shim'.\n\nBased on Martin KaFai Lau's suggestions, I have created a simple patch.\n\nTo fix this:\n   Add an atomic non-zero check in 'bpf_trampoline_link_cgroup_shim'.\n   Only increment the refcount if it is not already zero.\n\nTesting:\n   I verified the fix by adding a delay in\n   'bpf_shim_tramp_link_release' to make the bug easier to trigger:\n\nstatic void bpf_shim_tramp_link_release(struct bpf_link *link)\n{\n\t/* ... */\n\tif (!shim_link-\u003etrampoline)\n\t\treturn;\n\n+\tmsleep(100);\n\tWARN_ON_ONCE(bpf_trampoline_unlink_prog(\u0026shim_link-\u003elink,\n\t\tshim_link-\u003etrampoline, NULL));\n\tbpf_trampoline_put(shim_link-\u003etrampoline);\n}\n\nBefore the patch, running a PoC easily reproduced the crash(almost 100%)\nwith a call trace similar to KaiyanM's report.\nAfter the patch, the bug no longer occurs even after millions of\niterations.",
  "cwe": "CWE-416",
  "cpes": [
    "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.0:-:*:*:*:*:*:*",
    "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= 69fd337a975c7e690dfe49d9cb4fe5ba1e6db44e, \u003c 529e685e522b9d7fb379dbe6929dcdf520e34c8c",
          "\u003e= 69fd337a975c7e690dfe49d9cb4fe5ba1e6db44e, \u003c 9b02c5c4147f8af8ed783c8deb5df927a55c3951",
          "\u003e= 69fd337a975c7e690dfe49d9cb4fe5ba1e6db44e, \u003c cfcfa0ca0212162aa472551266038e8fd6768cff",
          "\u003e= 69fd337a975c7e690dfe49d9cb4fe5ba1e6db44e, \u003c 3eeddb80191f7626ec1ef742bfff51ec3b0fa5c2",
          "\u003e= 69fd337a975c7e690dfe49d9cb4fe5ba1e6db44e, \u003c 4e8a0005d633a4adc98e3b65d5080f93b90d356b",
          "\u003e= 69fd337a975c7e690dfe49d9cb4fe5ba1e6db44e, \u003c 56145d237385ca0e7ca9ff7b226aaf2eb8ef368b"
        ],
        "fixed_in": [
          "529e685e522b9d7fb379dbe6929dcdf520e34c8c",
          "9b02c5c4147f8af8ed783c8deb5df927a55c3951",
          "cfcfa0ca0212162aa472551266038e8fd6768cff",
          "3eeddb80191f7626ec1ef742bfff51ec3b0fa5c2",
          "4e8a0005d633a4adc98e3b65d5080f93b90d356b",
          "56145d237385ca0e7ca9ff7b226aaf2eb8ef368b"
        ]
      },
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "6.0"
        ],
        "fixed_in": [
          "0",
          "6.1.167",
          "6.6.130",
          "6.12.77",
          "6.18.17",
          "6.19.7",
          "7.0"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Linux to 529e685e522b9d7fb379dbe6929dcdf520e34c8c or 9b02c5c4147f8af8ed783c8deb5df927a55c3951 or cfcfa0ca0212162aa472551266038e8fd6768cff or 3eeddb80191f7626ec1ef742bfff51ec3b0fa5c2 or 4e8a0005d633a4adc98e3b65d5080f93b90d356b or 56145d237385ca0e7ca9ff7b226aaf2eb8ef368b or later.",
      "Upgrade Linux to 0 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": []
}
