CVE-2022-48950

HIGH EPSS 16.5%
Published Oct 21, 20241y ago · Modified Jun 17, 20262w ago
7.8 CVSS 3.1
High
Find Similar
Published Oct 21, 2024 1y ago
Last Modified Jun 17, 2026 2w ago

Description

In the Linux kernel, the following vulnerability has been resolved: perf: Fix perf_pending_task() UaF Per syzbot it is possible for perf_pending_task() to run after the event is free()'d. There are two related but distinct cases: - the task_work was already queued before destroying the event; - destroying the event itself queues the task_work. The first cannot be solved using task_work_cancel() since perf_release() itself might be called from a task_work (____fput), which means the current->task_works list is already empty and task_work_cancel() won't be able to find the perf_pending_task() entry. The simplest alternative is extending the perf_event lifetime to cover the task_work. The second is just silly, queueing a task_work while you know the event is going away makes no sense and is easily avoided by re-arranging how the event is marked STATE_DEAD and ensuring it goes through STATE_OFF on the way down.

CVSS Details

Base Score
7.8
Exploitability
1.8
Impact
5.9
Vector string
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Attack Vector Local
Attack Complexity Low
Privileges Required Low
User Interaction None
Scope Unchanged
Confidentiality High
Integrity High
Availability High

Threat Intelligence

EPSS Exploit Probability
16.5% percentile
Exploit & Patch Status
No Known Exploit
Patch Available

Weaknesses 1

CWE-416 Use After Free Memory Safety

Affected Products 10

VendorProductVersionRange
linuxlinux_kernel* <5.15.84
linuxlinux_kernel*≥5.16  –  <6.0.14
linuxlinux_kernel6.1any
linuxlinux_kernel6.1any
linuxlinux_kernel6.1any
linuxlinux_kernel6.1any
linuxlinux_kernel6.1any
linuxlinux_kernel6.1any
linuxlinux_kernel6.1any
linuxlinux_kernel6.1any

References 3

  • git.kernel.org https://git.kernel.org/stable/c/517e6a301f34613bff24a8e35b5455884f2d83d8
    Patch
  • git.kernel.org https://git.kernel.org/stable/c/78e1317a174edbfd1182599bf76c092a2877672c
    Patch
  • git.kernel.org https://git.kernel.org/stable/c/8bffa95ac19ff27c8261904f89d36c7fcf215d59
    Patch

Remediation

  • git.kernel.org https://git.kernel.org/stable/c/517e6a301f34613bff24a8e35b5455884f2d83d8
    Patch
  • git.kernel.org https://git.kernel.org/stable/c/78e1317a174edbfd1182599bf76c092a2877672c
    Patch
  • git.kernel.org https://git.kernel.org/stable/c/8bffa95ac19ff27c8261904f89d36c7fcf215d59
    Patch