CVE-2024-26874
drm/mediatek: Fix a null pointer crash in mtk_drm_crtc_finish_page_flip
Mitigation
- No fix listed yet: follow the vendor advisory.
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
Vulnerability facts
- Affected
- Linux >= 119f5173628aa7a0c3cf9db83460d40709e8241d, < accdac6b71d5a2b84040c3d2234f53a60edc398e; >= 119f5173628aa7a0c3cf9db83460d40709e8241d, < dfde84cc6c589f2a9f820f12426d97365670b731; >= 119f5173628aa7a0c3cf9db83460d40709e8241d, < 4688be96d20ffa49d2186523ee84f475f316fd49; >= 119f5173628aa7a0c3cf9db83460d40709e8241d, < 9beec711a17245b853d64488fd5b739031612340; >= 119f5173628aa7a0c3cf9db83460d40709e8241d, < d2bd30c710475b2e29288827d2c91f9e6e2b91d7; >= 119f5173628aa7a0c3cf9db83460d40709e8241d, < a3dd12b64ae8373a41a216a0b621df224210860a; >= 119f5173628aa7a0c3cf9db83460d40709e8241d, < 9acee29a38b4d4b70f1f583e5ef9a245db4db710; >= 119f5173628aa7a0c3cf9db83460d40709e8241d, < 3fc88b246a2fc16014e374040fc15af1d3752535; >= 119f5173628aa7a0c3cf9db83460d40709e8241d, < c958e86e9cc1b48cac004a6e245154dfba8e163b; Linux 4.7
- Fixed in
- Linux 4688be96d20ffa49d2186523ee84f475f316fd49, Linux 9beec711a17245b853d64488fd5b739031612340, Linux 9acee29a38b4d4b70f1f583e5ef9a245db4db710, Linux 3fc88b246a2fc16014e374040fc15af1d3752535
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 4.7 (v3.1, NVD)CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:HOpen in CVSS calculator
Show all 8 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
- EPSS
- 0.30% chance of exploitation in 30 days (percentile 15, 2026-11-26)
- CWE
- CWE-476
- Modified
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
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= 119f5173628aa7a0c3cf9db83460d40709e8241d, < accdac6b71d5a2b84040c3d2234f53a60edc398e; >= 119f5173628aa7a0c3cf9db83460d40709e8241d, < dfde84cc6c589f2a9f820f12426d97365670b731; >= 119f5173628aa7a0c3cf9db83460d40709e8241d, < 4688be96d20ffa49d2186523ee84f475f316fd49; >= 119f5173628aa7a0c3cf9db83460d40709e8241d, < 9beec711a17245b853d64488fd5b739031612340; >= 119f5173628aa7a0c3cf9db83460d40709e8241d, < d2bd30c710475b2e29288827d2c91f9e6e2b91d7; >= 119f5173628aa7a0c3cf9db83460d40709e8241d, < a3dd12b64ae8373a41a216a0b621df224210860a; >= 119f5173628aa7a0c3cf9db83460d40709e8241d, < 9acee29a38b4d4b70f1f583e5ef9a245db4db710; >= 119f5173628aa7a0c3cf9db83460d40709e8241d, < 3fc88b246a2fc16014e374040fc15af1d3752535; >= 119f5173628aa7a0c3cf9db83460d40709e8241d, < c958e86e9cc1b48cac004a6e245154dfba8e163b | — | cvelist |
| Linux | 4.7 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
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.
References
Patches
- https://git.kernel.org/stable/c/accdac6b71d5a2b84040c3d2234f53a60edc398e
- https://git.kernel.org/stable/c/dfde84cc6c589f2a9f820f12426d97365670b731
- https://git.kernel.org/stable/c/4688be96d20ffa49d2186523ee84f475f316fd49
- https://git.kernel.org/stable/c/9beec711a17245b853d64488fd5b739031612340
- https://git.kernel.org/stable/c/d2bd30c710475b2e29288827d2c91f9e6e2b91d7
- https://git.kernel.org/stable/c/a3dd12b64ae8373a41a216a0b621df224210860a
- https://git.kernel.org/stable/c/9acee29a38b4d4b70f1f583e5ef9a245db4db710
- https://git.kernel.org/stable/c/3fc88b246a2fc16014e374040fc15af1d3752535
- https://git.kernel.org/stable/c/c958e86e9cc1b48cac004a6e245154dfba8e163b
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.