{"id":"CVE-2022-48950","published":"2024-10-21T20:05:38Z","modified":"2026-08-05T08:53:05Z","title":"perf: Fix perf_pending_task() UaF","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nperf: Fix perf_pending_task() UaF\n\nPer syzbot it is possible for perf_pending_task() to run after the\nevent is free()'d. There are two related but distinct cases:\n\n - the task_work was already queued before destroying the event;\n - destroying the event itself queues the task_work.\n\nThe first cannot be solved using task_work_cancel() since\nperf_release() itself might be called from a task_work (____fput),\nwhich means the current->task_works list is already empty and\ntask_work_cancel() won't be able to find the perf_pending_task()\nentry.\n\nThe simplest alternative is extending the perf_event lifetime to cover\nthe task_work.\n\nThe second is just silly, queueing a task_work while you know the\nevent is going away makes no sense and is easily avoided by\nre-arranging how the event is marked STATE_DEAD and ensuring it goes\nthrough STATE_OFF on the way down.","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.00254,"percentile":0.17233,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/8bffa95ac19ff27c8261904f89d36c7fcf215d59","tags":[]},{"url":"https://git.kernel.org/stable/c/78e1317a174edbfd1182599bf76c092a2877672c","tags":[]},{"url":"https://git.kernel.org/stable/c/517e6a301f34613bff24a8e35b5455884f2d83d8","tags":[]}],"priority":{"score":8.9,"factors":[{"name":"EPSS percentile","points":3.45},{"name":"CVSS severity","points":5.46}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= ca7b0a10287e2733bdafb01ef0d4038536625fe3, < 8bffa95ac19ff27c8261904f89d36c7fcf215d59",">= 078c12ccf1fb943cc18c84894c76113dc89e5975, < 78e1317a174edbfd1182599bf76c092a2877672c",">= ca6c21327c6af02b7eec31ce4b9a740a18c6c13f, < 517e6a301f34613bff24a8e35b5455884f2d83d8"]},{"vendor":"Linux","product":"Linux","versions":[">= 5.15.77, < 5.15.84",">= 6.0.7, < 6.0.14"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-10-22T13:21:45.788376Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2022-53829","exploited":false,"provenance":"source"}}