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

- Priority: **Routine**
- Reason: Not severe (CVSS 4.7, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2024-04-17 · Modified: 2026-05-11
- Aliases: UBUNTU-CVE-2024-26874, DEBIAN-CVE-2024-26874
- Record: https://cvemate.com/vulnerability/CVE-2024-26874 · JSON: https://cvemate.com/vulnerability/CVE-2024-26874/json

## Description

```text
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.
```

## Signals

- CVSS: 4.7 medium (v3.1, NVD) CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H
- EPSS: 0.238%, percentile 15.805%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 121)

- debian linux (Debian): \< 6.1.85-1 \| \< 6.7.12-1
- ubuntu linux (Ubuntu): All versions (No fix recorded) \| \< 5.4.0-189.209 \| \< 5.15.0-112.122 \| \< 6.8.0-35.35
- ubuntu linux-allwinner-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws (Ubuntu): All versions (No fix recorded) \| \< 5.4.0-1128.138 \| \< 5.15.0-1063.69 \| \< 6.8.0-1009.9
- ubuntu linux-aws-5.0 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.15 (Ubuntu): \< 5.15.0-1063.69~20.04.1
- ubuntu linux-aws-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.3 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.4 (Ubuntu): \< 5.4.0-1128.138~18.04.1
- ubuntu linux-aws-5.8 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.2 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.5 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-fips (Ubuntu): All versions (No fix recorded) \| \< 5.4.0-1128.138+fips1 \| \< 5.15.0-1063.69+fips1
- ubuntu linux-aws-hwe (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure (Ubuntu): All versions (No fix recorded) \| \< 5.4.0-1133.140 \| \< 5.15.0-1066.75 \| \< 6.8.0-1008.8
- ubuntu linux-azure-4.15 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.13 (Ubuntu): All versions (No fix recorded)

## References (first 20 of 35)

- <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>
- <https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html>
- <https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html>
- <https://ubuntu.com/security/CVE-2024-26874>
- <https://www.cve.org/CVERecord?id=CVE-2024-26874>
- <https://git.kernel.org/linus/c958e86e9cc1b48cac004a6e245154dfba8e163b>
- <https://ubuntu.com/security/notices/USN-6816-1>
- <https://ubuntu.com/security/notices/USN-6817-1>
- <https://ubuntu.com/security/notices/USN-6820-1>
- <https://ubuntu.com/security/notices/USN-6821-1>
- <https://ubuntu.com/security/notices/USN-6821-2>
- <https://ubuntu.com/security/notices/USN-6817-2>

---

Data as of 2026-12-05T05:11:12.497Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
