# CVE-2024-50187: drm/vc4: Stop the active perfmon before being destroyed

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.32% (percentile 17, 2026-11-26)
- **Published:** 2024-11-08T05:38:28.194Z
- **Modified:** 2026-08-05T11:42:22.877Z

## Who should check

- Anyone running Linux \>= 65101d8c9108201118efa7e08f4e2c57f438deb9, \< 75452da51e2403e14be007df80d133e1443fc967; \>= 65101d8c9108201118efa7e08f4e2c57f438deb9, \< 937943c042503dc6087438bf3557f9057a588ba0; \>= 65101d8c9108201118efa7e08f4e2c57f438deb9, \< c9adba739d5f7cdc47a7754df4a17b47b1ecf513; \>= 65101d8c9108201118efa7e08f4e2c57f438deb9, \< 0b2ad4f6f2bec74a5287d96cb2325a5e11706f22
- Anyone running Linux 4.17

## 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.

## Affected and fixed versions

- Linux: \>= 65101d8c9108201118efa7e08f4e2c57f438deb9, \< 75452da51e2403e14be007df80d133e1443fc967; \>= 65101d8c9108201118efa7e08f4e2c57f438deb9, \< 937943c042503dc6087438bf3557f9057a588ba0; \>= 65101d8c9108201118efa7e08f4e2c57f438deb9, \< c9adba739d5f7cdc47a7754df4a17b47b1ecf513; \>= 65101d8c9108201118efa7e08f4e2c57f438deb9, \< 0b2ad4f6f2bec74a5287d96cb2325a5e11706f22 (cvelist)
- Linux: 4.17 (cvelist)

## Mitigation

- Upgrade Linux to 0b2ad4f6f2bec74a5287d96cb2325a5e11706f22 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-50187. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-50187.md
Affected: Linux >= 65101d8c9108201118efa7e08f4e2c57f438deb9, < 75452da51e2403e14be007df80d133e1443fc967; >= 65101d8c9108201118efa7e08f4e2c57f438deb9, < 937943c042503dc6087438bf3557f9057a588ba0; >= 65101d8c9108201118efa7e08f4e2c57f438deb9, < c9adba739d5f7cdc47a7754df4a17b47b1ecf513; >= 65101d8c9108201118efa7e…
Fixed in: Linux 75452da51e2403e14be007df80d133e1443fc967, Linux 937943c042503dc6087438bf3557f9057a588ba0, Linux 0b2ad4f6f2bec74a5287d96cb2325a5e11706f22

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-50187 being exploited?

There is no confirmed exploitation: CVE-2024-50187 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.32% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2024-50187?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2024-50187?

Linux \>= 65101d8c9108201118efa7e08f4e2c57f438deb9, \< 75452da51e2403e14be007df80d133e1443fc967; \>= 65101d8c9108201118efa7e08f4e2c57f438deb9, \< 937943c042503dc6087438bf3557f9057a588ba0; \>= 65101d8c9108201118efa7e08f4e2c57f438deb9, \< c9adba739d5f7cdc47a7754df4a17b47b1ecf513; \>= 65101d8c9108201118efa7e08f4e2c57f438deb9, \< 0b2ad4f6f2bec74a5287d96cb2325a5e11706f22; Linux 4.17.

### Is there a fix for CVE-2024-50187?

Yes. Fixed in Linux 75452da51e2403e14be007df80d133e1443fc967, Linux 937943c042503dc6087438bf3557f9057a588ba0, Linux 0b2ad4f6f2bec74a5287d96cb2325a5e11706f22. Upgrade Linux to 0b2ad4f6f2bec74a5287d96cb2325a5e11706f22 or later.

### How do I check if I'm affected by CVE-2024-50187?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/75452da51e2403e14be007df80d133e1443fc967>
- patch: <https://git.kernel.org/stable/c/937943c042503dc6087438bf3557f9057a588ba0>
- patch: <https://git.kernel.org/stable/c/c9adba739d5f7cdc47a7754df4a17b47b1ecf513>
- patch: <https://git.kernel.org/stable/c/0b2ad4f6f2bec74a5287d96cb2325a5e11706f22>
- other: <https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-50187>

HTML: <https://flawdb.com/CVE-2024-50187> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-50187>
