VDB

CVE-2024-26874

CVE-2024-26874 PUBLISHED

drm/mediatek: Fix a null pointer crash in mtk_drm_crtc_finish_page_flip

Reported by linux · Published April 17, 2024

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
linux_kernellinux6.8.2, 6.7.11, 6.6.23, 6.1.83, 5.15.153, 5.10.214, 5.4.273, 4.19.311

Affected products

VendorProductVersions
LinuxLinux119f5173628aa7a0c3cf9db83460d40709e8241d, 119f5173628aa7a0c3cf9db83460d40709e8241d, 119f5173628aa7a0c3cf9db83460d40709e8241d
LinuxLinux4.7, 0, 4.19.311
linuxlinux_kernel4.7, 4.7, 4.7
LinuxLinux119f5173628aa7a0c3cf9db83460d40709e8241d, 119f5173628aa7a0c3cf9db83460d40709e8241d, 119f5173628aa7a0c3cf9db83460d40709e8241d

Timeline

  • Apr 17, 2024 CVE Published
  • Apr 18, 2024 EPSS Score (30 in total, the first dated here)
  • Oct 4, 2024 Coalition ESS Score (12 in total, the first dated here)
  • Dec 5, 2025 CVE Updated
  • Jan 15, 2026 Security Advisory (252 in total, the first dated here)
  • Mar 30, 2026 Distribution Patch (195 in total, the first dated here)

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2024-26874
vulnetix vdb fixes CVE-2024-26874

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-26874/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›