{
  "id": "CVE-2025-38563",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-38563",
  "published_at": "2025-08-19T17:02:40.249Z",
  "title": "perf/core: Prevent VMA split of buffer mappings",
  "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\nperf/core: Prevent VMA split of buffer mappings\n\nThe perf mmap code is careful about mmap()'ing the user page with the\nringbuffer and additionally the auxiliary buffer, when the event supports\nit. Once the first mapping is established, subsequent mapping have to use\nthe same offset and the same size in both cases. The reference counting for\nthe ringbuffer and the auxiliary buffer depends on this being correct.\n\nThough perf does not prevent that a related mapping is split via mmap(2),\nmunmap(2) or mremap(2). A split of a VMA results in perf_mmap_open() calls,\nwhich take reference counts, but then the subsequent perf_mmap_close()\ncalls are not longer fulfilling the offset and size checks. This leads to\nreference count leaks.\n\nAs perf already has the requirement for subsequent mappings to match the\ninitial mapping, the obvious consequence is that VMA splits, caused by\nresizing of a mapping or partial unmapping, have to be prevented.\n\nImplement the vm_operations_struct::may_split() callback and return\nunconditionally -EINVAL.\n\nThat ensures that the mapping offsets and sizes cannot be changed after the\nfact. Remapping to a different fixed address with the same size is still\npossible as it takes the references for the new mapping and drops those of\nthe old mapping.",
  "cpes": [
    "cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "nvd": 7.8
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "\u003e= 45bfb2e50471abbbfd83d40d28c986078b0d24ff, \u003c e4346ffec2c44d6b0be834d59b20632b5bb5729e",
          "\u003e= 45bfb2e50471abbbfd83d40d28c986078b0d24ff, \u003c d52451a9210f2e5a079ba052918c93563518a9ff",
          "\u003e= 45bfb2e50471abbbfd83d40d28c986078b0d24ff, \u003c 3bd518cc7ea61076bcd725e36ff0e690754977c0",
          "\u003e= 45bfb2e50471abbbfd83d40d28c986078b0d24ff, \u003c 7b84cb58d1f0aa07656802eae24689566e5f5b1b",
          "\u003e= 45bfb2e50471abbbfd83d40d28c986078b0d24ff, \u003c 6757a31a8e295ae4f01717a954afda173f25a121",
          "\u003e= 45bfb2e50471abbbfd83d40d28c986078b0d24ff, \u003c e529888b7e8092912dd8789bdfc76685ccd2ff5f",
          "\u003e= 45bfb2e50471abbbfd83d40d28c986078b0d24ff, \u003c ff668930871e0198c7f4e325058b8b7c286787bd",
          "\u003e= 45bfb2e50471abbbfd83d40d28c986078b0d24ff, \u003c 65311aad4c808bedad0c05d9bb8b06c47dae73eb",
          "\u003e= 45bfb2e50471abbbfd83d40d28c986078b0d24ff, \u003c b024d7b56c77191cde544f838debb7f8451cd0d6"
        ],
        "fixed_in": [
          "e4346ffec2c44d6b0be834d59b20632b5bb5729e",
          "d52451a9210f2e5a079ba052918c93563518a9ff",
          "3bd518cc7ea61076bcd725e36ff0e690754977c0",
          "7b84cb58d1f0aa07656802eae24689566e5f5b1b",
          "6757a31a8e295ae4f01717a954afda173f25a121",
          "e529888b7e8092912dd8789bdfc76685ccd2ff5f",
          "ff668930871e0198c7f4e325058b8b7c286787bd",
          "65311aad4c808bedad0c05d9bb8b06c47dae73eb",
          "b024d7b56c77191cde544f838debb7f8451cd0d6"
        ]
      },
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "4.1"
        ],
        "fixed_in": [
          "0",
          "5.4.297",
          "5.10.241",
          "5.15.190",
          "6.1.148",
          "6.6.102",
          "6.12.42",
          "6.15.10",
          "6.16.1",
          "6.17"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Linux to e4346ffec2c44d6b0be834d59b20632b5bb5729e or d52451a9210f2e5a079ba052918c93563518a9ff or 3bd518cc7ea61076bcd725e36ff0e690754977c0 or 7b84cb58d1f0aa07656802eae24689566e5f5b1b or 6757a31a8e295ae4f01717a954afda173f25a121 or e529888b7e8092912dd8789bdfc76685ccd2ff5f or ff668930871e0198c7f4e325058b8b7c286787bd or 65311aad4c808bedad0c05d9bb8b06c47dae73eb or b024d7b56c77191cde544f838debb7f8451cd0d6 or later.",
      "Upgrade Linux to 0 or 5.4.297 or 5.10.241 or 5.15.190 or 6.1.148 or 6.6.102 or 6.12.42 or 6.15.10 or 6.16.1 or 6.17 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
