CVE-2024-50187

MEDIUM

Linux Kernel 4.17-6.1.112, 6.2.0-6.6.56, 6.7.0-6.11.3 - Use-After-Free in DRM VC4 Performance Monitor

Title source: llm
STIX 2.1

Description

In the Linux kernel, the following vulnerability has been resolved: drm/vc4: Stop the active perfmon before being destroyed Upon closing the file descriptor, the active performance monitor is not stopped. Although all perfmons are destroyed in `vc4_perfmon_close_file()`, the active performance monitor's pointer (`vc4->active_perfmon`) is still retained. If we open a new file descriptor and submit a few jobs with performance monitors, the driver will attempt to stop the active performance monitor using the stale pointer in `vc4->active_perfmon`. However, this pointer is no longer valid because the previous process has already terminated, and all performance monitors associated with it have been destroyed and freed. To fix this, when the active performance monitor belongs to a given process, explicitly stop it before destroying and freeing it.

Scores

CVSS v3 5.5
EPSS 0.0022
EPSS Percentile 12.8%
Attack Vector LOCAL
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

CISA SSVC

Vulnrichment
Exploitation none
Automatable no
Technical Impact partial

Details

Status published
Products (15)
linux/Kernel 4.17.0 - 6.1.113linux
linux/Kernel 6.2.0 - 6.6.57linux
linux/Kernel 6.7.0 - 6.11.4linux
Linux/Linux < 4.17
Linux/Linux 4.17
Linux/Linux 6.1.113 - 6.1.*
Linux/Linux 6.11.4 - 6.11.*
Linux/Linux 6.12
Linux/Linux 6.6.57 - 6.6.*
Linux/Linux 65101d8c9108201118efa7e08f4e2c57f438deb9 - 0b2ad4f6f2bec74a5287d96cb2325a5e11706f22
... and 5 more
Published Nov 08, 2024
Tracked Since Feb 18, 2026