CVE-2022-48950

perf: Fix perf_pending_task() UaF

HIGH
7.8
CVSS Score
Published: October 21, 2024 at 08:05 PM UTC
Updated: August 5, 2026 at 09:24 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.8
Exploit prediction
EPSS 0.3%
SSVC
No known exploit

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 5.15.845.15.77 ≤ v < 5.15.845.16 ≤ v < 6.0.146.0.7 ≤ v < 6.0.145.15.776.0.76.1 rc16.1 rc26.1 rc36.1 rc46.1 rc56.1 rc66.1 rc76.1 rc878c12ccf1fb943cc18c84894c76113dc89e5975ca6c21327c6af02b7eec31ce4b9a740a18c6c13fca7b0a10287e2733bdafb01ef0d4038536625fe3
Vendor states this is fixed in 517e6a301f34613bff24a8e35b5455884f2d83d8 (fixed)
Vendor states this is fixed in 78e1317a174edbfd1182599bf76c092a2877672c (fixed)
Vendor states this is fixed in 8bffa95ac19ff27c8261904f89d36c7fcf215d59 (fixed)
Affected range stops below 5.15.84, so it looks safe — our inference, not a vendor statement
Affected range stops below 6.0.14, so it looks safe — our inference, not a vendor statement

References (3)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/517e6a301f34613bff24a8e35b5455884f2d83d8
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/78e1317a174edbfd1182599bf76c092a2877672c
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/8bffa95ac19ff27c8261904f89d36c7fcf215d59

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

7.8HIGHLinux
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-416

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card