{
  "id": "CVE-2026-23248",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-23248",
  "published_at": "2026-03-18T10:05:10.07Z",
  "title": "perf/core: Fix refcount bug and potential UAF in perf_mmap",
  "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\nperf/core: Fix refcount bug and potential UAF in perf_mmap\n\nSyzkaller reported a refcount_t: addition on 0; use-after-free warning\nin perf_mmap.\n\nThe issue is caused by a race condition between a failing mmap() setup\nand a concurrent mmap() on a dependent event (e.g., using output\nredirection).\n\nIn perf_mmap(), the ring_buffer (rb) is allocated and assigned to\nevent-\u003erb with the mmap_mutex held. The mutex is then released to\nperform map_range().\n\nIf map_range() fails, perf_mmap_close() is called to clean up.\nHowever, since the mutex was dropped, another thread attaching to\nthis event (via inherited events or output redirection) can acquire\nthe mutex, observe the valid event-\u003erb pointer, and attempt to\nincrement its reference count. If the cleanup path has already\ndropped the reference count to zero, this results in a\nuse-after-free or refcount saturation warning.\n\nFix this by extending the scope of mmap_mutex to cover the\nmap_range() call. This ensures that the ring buffer initialization\nand mapping (or cleanup on failure) happens atomically effectively,\npreventing other threads from accessing a half-initialized or\ndying ring buffer.",
  "cwe": "CWE-362",
  "cpes": [
    "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:7.0:rc1:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 7.8
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "\u003e= b709eb872e19a19607bbb6d2975bc264d59735cf, \u003c c27dea9f50ed525facb62ef647dddc4722456e07",
          "\u003e= b709eb872e19a19607bbb6d2975bc264d59735cf, \u003c ac7ecb65af170a7fc193e7bd8be15dac84ec6a56",
          "\u003e= b709eb872e19a19607bbb6d2975bc264d59735cf, \u003c 77de62ad3de3967818c3dbe656b7336ebee461d2"
        ],
        "fixed_in": [
          "c27dea9f50ed525facb62ef647dddc4722456e07",
          "ac7ecb65af170a7fc193e7bd8be15dac84ec6a56",
          "77de62ad3de3967818c3dbe656b7336ebee461d2"
        ]
      },
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "6.14"
        ],
        "fixed_in": [
          "0",
          "6.18.17",
          "6.19.7",
          "7.0"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Linux to c27dea9f50ed525facb62ef647dddc4722456e07 or ac7ecb65af170a7fc193e7bd8be15dac84ec6a56 or 77de62ad3de3967818c3dbe656b7336ebee461d2 or later.",
      "Upgrade Linux to 0 or 6.18.17 or 6.19.7 or 7.0 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
