{"id":"CVE-2025-38565","aliases":["CVE-2025-38565"],"related":[],"kind":"vulnerability","state":"published","title":"perf/core: Exit early on perf_mmap() fail","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nperf/core: Exit early on perf_mmap() fail\n\nWhen perf_mmap() fails to allocate a buffer, it still invokes the\nevent_mapped() callback of the related event. On X86 this might increase\nthe perf_rdpmc_allowed reference counter. But nothing undoes this as\nperf_mmap_close() is never called in this case, which causes another\nreference count leak.\n\nReturn early on failure to prevent that.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nperf/core: Exit early on perf_mmap() fail\n\nWhen perf_mmap() fails to allocate a buffer, it still invokes the\nevent_mapped() callback of the related event. On X86 this might increase\nthe perf_rdpmc_allowed reference counter. But nothing undoes this as\nperf_mmap_close() is never called in this case, which causes another\nreference count leak.\n\nReturn early on failure to prevent that.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: perf/core: Salida anticipada en caso de fallo de perf_mmap(). Cuando perf_mmap() no asigna un búfer, sigue invocando la devolución de llamada event_mapped() del evento relacionado. En X86, esto podría aumentar el contador de referencias perf_rdpmc_allowed. Sin embargo, esto no se puede revertir, ya que perf_mmap_close() nunca se llama en este caso, lo que provoca otra fuga del recuento de referencias. Para evitarlo, se debe regresar anticipadamente en caso de fallo.","source":"nvd"}],"published":"2025-08-19T17:02:41.700Z","modified":"2026-11-05T22:17:18.717Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"1e0fb9ec679c9273a641f1d6f3d25ea47baef2bb","fixed":"5ffda7f3ed76ec8defc19d985e33b3b82ba07839","status":"affected"},{"type":"git","introduced":"1e0fb9ec679c9273a641f1d6f3d25ea47baef2bb","fixed":"9b90a48c7de828a15c7a4fc565d46999c6e22d6b","status":"affected"},{"type":"git","introduced":"1e0fb9ec679c9273a641f1d6f3d25ea47baef2bb","fixed":"de85e72598d89880a02170a1cbc27b35a7d978a9","status":"affected"},{"type":"git","introduced":"1e0fb9ec679c9273a641f1d6f3d25ea47baef2bb","fixed":"27d44145bd576bbef9bf6165bcd78128ec3e6cbd","status":"affected"},{"type":"git","introduced":"1e0fb9ec679c9273a641f1d6f3d25ea47baef2bb","fixed":"f41e9eba77bf97626e04296dc5677d02816d2432","status":"affected"},{"type":"git","introduced":"1e0fb9ec679c9273a641f1d6f3d25ea47baef2bb","fixed":"92043120a2e992800580855498ab8507e1b22db9","status":"affected"},{"type":"git","introduced":"1e0fb9ec679c9273a641f1d6f3d25ea47baef2bb","fixed":"163b0d1a209fe0df5476c1df2330ca12b55abf92","status":"affected"},{"type":"git","introduced":"1e0fb9ec679c9273a641f1d6f3d25ea47baef2bb","fixed":"7ff8521f30c4c2fcd4e88bd7640486602bf8a650","status":"affected"},{"type":"git","introduced":"1e0fb9ec679c9273a641f1d6f3d25ea47baef2bb","fixed":"07091aade394f690e7b655578140ef84d0e8d7b0","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.0","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.0","status":"unaffected"},{"type":"semver","introduced":"5.4.297","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.241","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.190","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.148","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.102","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.42","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.15.10","lastAffected":"6.15.*","status":"unaffected"},{"type":"semver","introduced":"6.16.1","lastAffected":"6.16.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.17","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"4.0","fixed":"5.4.297"},{"status":"affected","introduced":"5.5","fixed":"5.10.241"},{"status":"affected","introduced":"5.11","fixed":"5.15.190"},{"status":"affected","introduced":"5.16","fixed":"6.1.148"},{"status":"affected","introduced":"6.2","fixed":"6.6.102"},{"status":"affected","introduced":"6.7","fixed":"6.12.42"},{"status":"affected","introduced":"6.13","fixed":"6.15.10"},{"status":"affected","introduced":"6.16","fixed":"6.16.1"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"11.0"}],"vendor":"debian","product":"debian_linux","cpe":"cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/5ffda7f3ed76ec8defc19d985e33b3b82ba07839","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/9b90a48c7de828a15c7a4fc565d46999c6e22d6b","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/de85e72598d89880a02170a1cbc27b35a7d978a9","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/27d44145bd576bbef9bf6165bcd78128ec3e6cbd","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f41e9eba77bf97626e04296dc5677d02816d2432","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/92043120a2e992800580855498ab8507e1b22db9","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/163b0d1a209fe0df5476c1df2330ca12b55abf92","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/7ff8521f30c4c2fcd4e88bd7640486602bf8a650","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/07091aade394f690e7b655578140ef84d0e8d7b0","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html","tags":["mailing-list","third-party-advisory"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html","tags":["mailing-list","third-party-advisory"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-11-05T21:04:06.362Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-38565","url":"https://www.cve.org/CVERecord?id=CVE-2025-38565","licence":"CVE Terms of Use","modified":"2026-11-05T21:12:47.389Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-38565","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-38565","licence":"Public domain","modified":"2026-11-05T22:17:18.717Z"}],"updatedAt":"2026-11-25T22:59:02.708Z","epss":{"score":0.00218,"percentile":0.13082,"date":"2026-12-01T12:00:22.000Z"}}