{"id":"CVE-2026-98790","summary":"perf: Fix race between perf_event_exit_task() and perf_pending_task()","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nperf: Fix race between perf_event_exit_task() and perf_pending_task()\n\nA race condition exists between perf_event_exit_task() and\nperf_pending_task() during begin_new_exec().\n\nDuring begin_new_exec(), perf_event_exit_task() may be called, and the\nPF_EXITING flag is not set on task. So perf_sigtrap() continues to execute\nand triggers WARN_ON_ONCE(event-\u003ectx-\u003etask != current).\n\nSince both task exit and exec paths can call perf_event_exit_task() which\nsets ctx-\u003etask to TASK_TOMBSTONE, fix this by explicitly checking if\nevent-\u003ectx-\u003etask equals TASK_TOMBSTONE and dropping the redundant\nPF_EXITING check.","modified":"2026-10-20T02:31:12.302126816Z","published":"2026-10-18T15:48:27.412Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/98xxx/CVE-2026-98790.json"},"references":[{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"},{"type":"WEB","url":"https://git.kernel.org/stable/c/524063fea29f8a841e49927ea7a8085194ad3ec2"},{"type":"WEB","url":"https://git.kernel.org/stable/c/672b8a9ce8f51b991481dfde26fba5cc4340a91a"},{"type":"WEB","url":"https://git.kernel.org/stable/c/81e61e3f8befa1bae3ec8e779d8ada5e5e362c21"},{"type":"WEB","url":"https://git.kernel.org/stable/c/ffb684f2aa141eeb0caa6308422e7e05d1ded7c4"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/98xxx/CVE-2026-98790.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-98790"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"97ba62b278674293762c3d91f724f1bb922f04e0"},{"fixed":"672b8a9ce8f51b991481dfde26fba5cc4340a91a"},{"fixed":"524063fea29f8a841e49927ea7a8085194ad3ec2"},{"fixed":"81e61e3f8befa1bae3ec8e779d8ada5e5e362c21"},{"fixed":"ffb684f2aa141eeb0caa6308422e7e05d1ded7c4"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-98790.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.13.0"},{"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/cve-osv-conversion/osv-output/CVE-2026-98790.json"}}],"schema_version":"1.9.0"}