CVE-2026-98309: drm/vc4: Use managed KMS polling to fix UAF on unbind
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
drm/vc4: Use managed KMS polling to fix UAF on unbind
vc4_kms_load() calls drm_kms_helper_poll_init() but the driver provides no matching drm_kms_helper_poll_fini(). The output poll work stays scheduled after unbind and runs on the freed drm_device:
# modprobe vc4; rmmod vc4; sleep 10 BUG: KASAN: slab-use-after-free in delayed_work_timer_fn BUG: KASAN: slab-use-after-free in drm_client_dev_hotplug [drm] Workqueue: events output_poll_execute [drm_kms_helper] Allocated by task 171: __devm_drm_dev_alloc Freed by task 262 (rmmod): drm_dev_put / component_del
Use drmm_kms_helper_poll_init() so polling is finalized with the device, as other drivers do.
The Linux kernel CVE team has assigned CVE-2026-98309 to this issue.
Affected and fixed versions
===========================
Issue introduced in 4.4 with commit c8b75bca92cbf064b9fa125fc74a85994452e935 and fixed in 6.6.158 with commit b6beee927e7f4e3142032ff91b2d0417cdddc0f6 Issue introduced in 4.4 with commit c8b75bca92cbf064b9fa125fc74a85994452e935 and fixed in 6.12.112 with commit cf0c4432bda37b02e7d430ff5017228ceb7caf0c Issue introduced in 4.4 with commit c8b75bca92cbf064b9fa125fc74a85994452e935 and fixed in 6.18.54 with commit ee507691c18f9fee5d4751e295ab9a7ff31d59ae Issue introduced in 4.4 with commit c8b75bca92cbf064b9fa125fc74a85994452e935 and fixed in 7.2.8 with commit 7f9780df677370a19b4ec9764f13b1b82073e0d9 Issue introduced in 4.4 with commit c8b75bca92cbf064b9fa125fc74a85994452e935 and fixed in 7.3-rc4 with commit 073a30d75f309812ed61af134f24ffef4107b13a
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-98309
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
drivers/gpu/drm/vc4/vc4_kms.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/b6beee927e7f4e3142032ff91b2d0417cdddc0f6 https://git.kernel.org/stable/c/cf0c4432bda37b02e7d430ff5017228ceb7caf0c https://git.kernel.org/stable/c/ee507691c18f9fee5d4751e295ab9a7ff31d59ae https://git.kernel.org/stable/c/7f9780df677370a19b4ec9764f13b1b82073e0d9 https://git.kernel.org/stable/c/073a30d75f309812ed61af134f24ffef4107b13a