# CVE-2024-26874: drm/mediatek: Fix a null pointer crash in mtk\_drm\_crtc\_finish\_page\_flip

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

- **Severity:** MEDIUM 4.7
- **CVSS:** 4.7 (v3.1, NVD) `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: High; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; 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.30% (percentile 15, 2026-11-26)
- **CWE:** CWE-476
- **Published:** 2024-04-17T10:27:33.278Z
- **Modified:** 2026-06-17T07:18:34.007Z

## Who should check

- Anyone running Linux \>= 119f5173628aa7a0c3cf9db83460d40709e8241d, \< accdac6b71d5a2b84040c3d2234f53a60edc398e; \>= 119f5173628aa7a0c3cf9db83460d40709e8241d, \< dfde84cc6c589f2a9f820f12426d97365670b731; \>= 119f5173628aa7a0c3cf9db83460d40709e8241d, \< 4688be96d20ffa49d2186523ee84f475f316fd49; \>= 119f5173628aa7a0c3cf9db83460d40709e8241d, \< 9beec711a17245b853d64488fd5b739031612340; \>= 119f5173628aa7a0c3cf9db83460d40709e8241d, \< d2bd30c710475b2e29288827d2c91f9e6e2b91d7; \>= 119f5173628aa7a0c3cf9db83460d40709e8241d, \< a3dd12b64ae8373a41a216a0b621df224210860a; \>= 119f5173628aa7a0c3cf9db83460d40709e8241d, \< 9acee29a38b4d4b70f1f583e5ef9a245db4db710; \>= 119f5173628aa7a0c3cf9db83460d40709e8241d, \< 3fc88b246a2fc16014e374040fc15af1d3752535; \>= 119f5173628aa7a0c3cf9db83460d40709e8241d, \< c958e86e9cc1b48cac004a6e245154dfba8e163b
- Anyone running Linux 4.7

## Description

In the Linux kernel, the following vulnerability has been resolved:

drm/mediatek: Fix a null pointer crash in mtk\_drm\_crtc\_finish\_page\_flip

It's possible that mtk\_crtc-\>event is NULL in
mtk\_drm\_crtc\_finish\_page\_flip().

pending\_needs\_vblank value is set by mtk\_crtc-\>event, but in
mtk\_drm\_crtc\_atomic\_flush(), it's is not guarded by the same
lock in mtk\_drm\_finish\_page\_flip(), thus a race condition happens.

Consider the following case:

CPU1                              CPU2
step 1:
mtk\_drm\_crtc\_atomic\_begin()
mtk\_crtc-\>event is not null,
                                  step 1:
                                  mtk\_drm\_crtc\_atomic\_flush:
                                  mtk\_drm\_crtc\_update\_config(
                                      !!mtk\_crtc-\>event)
step 2:
mtk\_crtc\_ddp\_irq -\>
mtk\_drm\_finish\_page\_flip:
lock
mtk\_crtc-\>event set to null,
pending\_needs\_vblank set to false
unlock
                                  pending\_needs\_vblank set to true,

                                  step 2:
                                  mtk\_crtc\_ddp\_irq -\>
                                  mtk\_drm\_finish\_page\_flip called again,
                                  pending\_needs\_vblank is still true
                                  //null pointer

Instead of guarding the entire mtk\_drm\_crtc\_atomic\_flush(), it's more
efficient to just check if mtk\_crtc-\>event is null before use.

## Affected and fixed versions

- Linux: \>= 119f5173628aa7a0c3cf9db83460d40709e8241d, \< accdac6b71d5a2b84040c3d2234f53a60edc398e; \>= 119f5173628aa7a0c3cf9db83460d40709e8241d, \< dfde84cc6c589f2a9f820f12426d97365670b731; \>= 119f5173628aa7a0c3cf9db83460d40709e8241d, \< 4688be96d20ffa49d2186523ee84f475f316fd49; \>= 119f5173628aa7a0c3cf9db83460d40709e8241d, \< 9beec711a17245b853d64488fd5b739031612340; \>= 119f5173628aa7a0c3cf9db83460d40709e8241d, \< d2bd30c710475b2e29288827d2c91f9e6e2b91d7; \>= 119f5173628aa7a0c3cf9db83460d40709e8241d, \< a3dd12b64ae8373a41a216a0b621df224210860a; \>= 119f5173628aa7a0c3cf9db83460d40709e8241d, \< 9acee29a38b4d4b70f1f583e5ef9a245db4db710; \>= 119f5173628aa7a0c3cf9db83460d40709e8241d, \< 3fc88b246a2fc16014e374040fc15af1d3752535; \>= 119f5173628aa7a0c3cf9db83460d40709e8241d, \< c958e86e9cc1b48cac004a6e245154dfba8e163b (cvelist)
- Linux: 4.7 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2024-26874.md
Affected: Linux >= 119f5173628aa7a0c3cf9db83460d40709e8241d, < accdac6b71d5a2b84040c3d2234f53a60edc398e; >= 119f5173628aa7a0c3cf9db83460d40709e8241d, < dfde84cc6c589f2a9f820f12426d97365670b731; >= 119f5173628aa7a0c3cf9db83460d40709e8241d, < 4688be96d20ffa49d2186523ee84f475f316fd49; >= 119f5173628aa7a0c3cf9db…
Fixed in: Linux 4688be96d20ffa49d2186523ee84f475f316fd49, Linux 9beec711a17245b853d64488fd5b739031612340, Linux 9acee29a38b4d4b70f1f583e5ef9a245db4db710, Linux 3fc88b246a2fc16014e374040fc15af1d3752535

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-26874 being exploited?

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

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

Medium: CVSS 4.7 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed). The attack needs conditions outside the attacker's control, which makes it harder.

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

Linux \>= 119f5173628aa7a0c3cf9db83460d40709e8241d, \< accdac6b71d5a2b84040c3d2234f53a60edc398e; \>= 119f5173628aa7a0c3cf9db83460d40709e8241d, \< dfde84cc6c589f2a9f820f12426d97365670b731; \>= 119f5173628aa7a0c3cf9db83460d40709e8241d, \< 4688be96d20ffa49d2186523ee84f475f316fd49; \>= 119f5173628aa7a0c3cf9db83460d40709e8241d, \< 9beec711a17245b853d64488fd5b739031612340; \>= 119f5173628aa7a0c3cf9db83460d40709e8241d, \< d2bd30c710475b2e29288827d2c91f9e6e2b91d7; \>= 119f5173628aa7a0c3cf9db83460d40709e8241d, \< a3dd12b64ae8373a41a216a0b621df224210860a; \>= 119f5173628aa7a0c3cf9db83460d40709e8241d, \< 9acee29a38b4d4b70f1f583e5ef9a245db4db710; \>= 119f5173628aa7a0c3cf9db83460d40709e8241d, \< 3fc88b246a2fc16014e374040fc15af1d3752535; \>= 119f5173628aa7a0c3cf9db83460d40709e8241d, \< c958e86e9cc1b48cac004a6e245154dfba8e163b; Linux 4.7.

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

Yes. Fixed in Linux 4688be96d20ffa49d2186523ee84f475f316fd49, Linux 9beec711a17245b853d64488fd5b739031612340, Linux 9acee29a38b4d4b70f1f583e5ef9a245db4db710, Linux 3fc88b246a2fc16014e374040fc15af1d3752535. No fix listed yet: follow the vendor advisory.

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

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/accdac6b71d5a2b84040c3d2234f53a60edc398e>
- patch: <https://git.kernel.org/stable/c/dfde84cc6c589f2a9f820f12426d97365670b731>
- patch: <https://git.kernel.org/stable/c/4688be96d20ffa49d2186523ee84f475f316fd49>
- patch: <https://git.kernel.org/stable/c/9beec711a17245b853d64488fd5b739031612340>
- patch: <https://git.kernel.org/stable/c/d2bd30c710475b2e29288827d2c91f9e6e2b91d7>
- patch: <https://git.kernel.org/stable/c/a3dd12b64ae8373a41a216a0b621df224210860a>
- patch: <https://git.kernel.org/stable/c/9acee29a38b4d4b70f1f583e5ef9a245db4db710>
- patch: <https://git.kernel.org/stable/c/3fc88b246a2fc16014e374040fc15af1d3752535>
- patch: <https://git.kernel.org/stable/c/c958e86e9cc1b48cac004a6e245154dfba8e163b>
- other: <https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html>
- other: <https://lists.debian.org/debian-lts-announce/2024/06/msg00020.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-26874>

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