{"id":"CVE-2026-64300","published":"2026-07-25T08:49:36Z","modified":"2026-08-17T04:52:58Z","title":"perf/aux: Fix page UAF in map_range()","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nperf/aux: Fix page UAF in map_range()\n\nmap_range() reads rb->aux_pages[], rb->aux_nr_pages and rb->aux_pgoff via\nperf_mmap_to_page() while holding only event->mmap_mutex. Those fields are\nserialized by rb->aux_mutex, and mmap_mutex is per event.\n\nThus, two events sharing one rb via PERF_EVENT_IOC_SET_OUTPUT can race\nrb_alloc_aux() with map_range(), leading to a page-UAF scenario as follows:\n\n  CPU 0                           CPU 1\n  =====                           =====\n  rb_alloc_aux()                  map_range()\n  [1]: allocate rb->aux_pages[0]\n  [2]: rb->aux_nr_pages++\n                                  [3]: perf_mmap_to_page()\n                                         returns rb->aux_pages[0]\n                                  [4]: map it as VM_PFNMAP\n  [5]: rb->aux_pgoff = 1\n\n  munmap the page\n  [6]: free rb->aux_pages[0]\n\nPages mapped as VM_PFNMAP have no refcount protection, so CPU 1 holds a\nmapping to a freed physical frame.\n\nFix this by taking rb->aux_mutex across the page walk in map_range().","provenance":"source","from":"CVE.org"},"cvss":{"score":7.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00182,"percentile":0.07775,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/c8b7e113f7b61eef2f017e6329c27c2331058c5a","tags":[]},{"url":"https://git.kernel.org/stable/c/0cff05bd2186020f8706233e261016d149cc24db","tags":[]},{"url":"https://git.kernel.org/stable/c/5948aaf64f81f217a25dcc2bf6c0779bca19566c","tags":[]}],"priority":{"score":7.0,"factors":[{"name":"EPSS percentile","points":1.55},{"name":"CVSS severity","points":5.46}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= b709eb872e19a19607bbb6d2975bc264d59735cf, < c8b7e113f7b61eef2f017e6329c27c2331058c5a",">= b709eb872e19a19607bbb6d2975bc264d59735cf, < 0cff05bd2186020f8706233e261016d149cc24db",">= b709eb872e19a19607bbb6d2975bc264d59735cf, < 5948aaf64f81f217a25dcc2bf6c0779bca19566c"]},{"vendor":"Linux","product":"Linux","versions":["6.14"]}],"euvd":{"id":"EUVD-2026-49012","exploited":false,"provenance":"source"}}