Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-98309 Overview
CVE-2026-98309 is a use-after-free (UAF) vulnerability in the Linux kernel's drm/vc4 graphics driver for Broadcom VideoCore IV GPUs. The flaw resides in the Kernel Mode Setting (KMS) polling lifecycle. The function vc4_kms_load() calls drm_kms_helper_poll_init() but the driver never invokes a matching drm_kms_helper_poll_fini() during unbind. As a result, the output poll work remains scheduled after the driver is removed and executes against a freed drm_device structure, producing a KASAN slab-use-after-free report in delayed_work_timer_fn and drm_client_dev_hotplug. The fix replaces the manual initialization with the device-managed drmm_kms_helper_poll_init() helper so polling is finalized together with the device.
Critical Impact
Local triggering of the UAF by unbinding or unloading the vc4 module can corrupt kernel memory and cause system instability on affected Raspberry Pi and Broadcom VideoCore IV platforms.
Affected Products
- Linux kernel builds including the drm/vc4 driver (Broadcom VideoCore IV / Raspberry Pi graphics stack)
- Stable kernel branches referenced by patches 073a30d, 7f9780d, b6beee9, cf0c443, and ee50769
- Distributions shipping the vulnerable vc4_kms_load() path prior to backport
Discovery Timeline
- 2026-10-06 - CVE-2026-98309 published to NVD
- 2026-10-06 - Last updated in NVD database
Technical Details for CVE-2026-98309
Vulnerability Analysis
The vc4 DRM driver initializes KMS output polling during probe but omits the corresponding teardown call. When an administrator unloads the module with rmmod vc4 or triggers an unbind, the DRM core releases the drm_device via drm_dev_put() and component_del(). The polling work item scheduled by drm_kms_helper_poll_init() remains queued on the events workqueue. Shortly afterward, output_poll_execute runs and dereferences the already-freed drm_device, producing a slab-use-after-free detected by KASAN inside delayed_work_timer_fn and drm_client_dev_hotplug.
Root Cause
The root cause is a missing resource-cleanup pairing. The driver calls drm_kms_helper_poll_init() without a matching drm_kms_helper_poll_fini(), leaving pending delayed work pointing at memory owned by the released device. This is a classic Use-After-Free [CWE-416] arising from unbalanced initialization and teardown of a kernel helper.
Attack Vector
Exploitation requires local privilege sufficient to unbind or unload the vc4 module, typically CAP_SYS_MODULE or root. An attacker with such privileges can reliably trigger the dangling work execution against freed memory. The window between device release and poll execution is deterministic enough to produce consistent kernel memory corruption. The reporter's reproducer is simply:
modprobe vc4
rmmod vc4
sleep 10
The resulting KASAN report shows allocation by __devm_drm_dev_alloc and free by drm_dev_put / component_del, with the dangling access occurring in the output_poll_execute workqueue callback.
Detection Methods for CVE-2026-98309
Indicators of Compromise
- KASAN slab-use-after-free reports in dmesg naming delayed_work_timer_fn or drm_client_dev_hotplug
- Workqueue stack traces referencing output_poll_execute from drm_kms_helper after a vc4 unbind event
- Unexpected kernel oops or panic occurring seconds after rmmod vc4 or device removal
Detection Strategies
- Enable CONFIG_KASAN on test and canary systems to surface the UAF immediately on module unload
- Audit kernel logs for BUG: KASAN entries correlated with vc4 driver lifecycle events
- Monitor module load/unload activity on systems that ship the Broadcom VideoCore IV graphics stack
Monitoring Recommendations
- Collect /var/log/kern.log and journalctl -k output centrally and alert on KASAN or oops signatures
- Track init_module and delete_module syscalls via auditd on embedded and Raspberry Pi fleets
- Baseline running kernel versions and flag hosts still exposing the pre-patch vc4_kms_load() code path
How to Mitigate CVE-2026-98309
Immediate Actions Required
- Apply the upstream stable kernel update that replaces drm_kms_helper_poll_init() with drmm_kms_helper_poll_init() in the vc4 driver
- Restrict module unload capability by removing CAP_SYS_MODULE from non-administrative accounts
- Reboot affected hosts after patching to ensure the vulnerable driver image is no longer resident
Patch Information
The fix converts the driver to managed KMS polling so cleanup is tied to the device lifetime, as other DRM drivers do. Patched commits are available in the stable tree: Kernel Patch 073a30d, Kernel Patch 7f9780d, Kernel Patch b6beee9, Kernel Patch cf0c443, and Kernel Patch ee50769.
Workarounds
- Avoid unbinding or unloading the vc4 module on production systems until patches are deployed
- Blacklist the vc4 driver on systems that do not require Broadcom VideoCore IV display output
- Limit physical and administrative access to devices where the driver is loaded
# Prevent runtime unload of the vulnerable driver
echo 'blacklist vc4' | sudo tee /etc/modprobe.d/vc4-cve-2026-98309.conf
sudo update-initramfs -u
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

