{"id":"CVE-2026-98937","summary":"perf/core: Check kernel access when kernel callchains are requested","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nperf/core: Check kernel access when kernel callchains are requested\n\nperf_event_open() currently gates perf_allow_kernel() only on\n!attr.exclude_kernel.\n\nHowever, users can still request kernel callchain collection with\nattr.exclude_callchain_kernel == 0 even when attr.exclude_kernel == 1.\nThat still requires kernel profiling privilege, but the existing check\ndoes not enforce it.\n\nUpdate the permission check to call perf_allow_kernel() when either\nkernel sampling is requested or kernel callchains are requested.\n\nThis keeps permission checks aligned with requested data and prevents\nunprivileged use of kernel callchain capture.","modified":"2026-10-28T02:35:34.320695800Z","published":"2026-10-23T12:11:53.327Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/98xxx/CVE-2026-98937.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/132bee76097be421ab3012130b5b506324cf2be1"},{"type":"WEB","url":"https://git.kernel.org/stable/c/2581b43e162cfc43e6f5d8dd8d2b38f3441550de"},{"type":"WEB","url":"https://git.kernel.org/stable/c/6e187281f978a2bff98ead6aa40f8ddc9a2c9afb"},{"type":"WEB","url":"https://git.kernel.org/stable/c/a4573a3838ae4fc73b70019cfa1dac9aaea7cc2f"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/98xxx/CVE-2026-98937.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-98937"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"0764771dab80d7b84b9a271bee7f1b21a04a3f0c"},{"fixed":"132bee76097be421ab3012130b5b506324cf2be1"},{"fixed":"2581b43e162cfc43e6f5d8dd8d2b38f3441550de"},{"fixed":"6e187281f978a2bff98ead6aa40f8ddc9a2c9afb"},{"fixed":"a4573a3838ae4fc73b70019cfa1dac9aaea7cc2f"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-98937.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.6.31"},{"fixed":"6.12.113"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.56"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.2.10"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-98937.json"}}],"schema_version":"1.9.2"}