CVE-2024-50187
kernel: drm/vc4: Stop the active perfmon before being destroyed
Severity
ModerateRed Hat Product Security
CVSS 3.1
Review impact separately from score.
Published · November 8, 2024
Updated · October 30, 2026
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.
Statement
This vulnerability is rated as Moderate severity because it requires local user privileges to interact with the Direct Rendering Manager (DRM) subsystem, and successful exploitation is confined to systems with Broadcom VideoCore hardware. An attacker could leverage this use-after-free condition to trigger a kernel crash or potentially escalate privileges. Standard Red Hat Enterprise Linux releases do not enable the vc4 graphics driver, mitigating exposure in typical enterprise environments.
CVSS score applicability
The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.
Mitigation
No mitigation is specified in collected source.
CVSS / CWE
CVSS 3.1 · 5.5CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
CWE-416 · Use After Free