HIGH Introduced in 6.1
vc4 RuntimeSuspend Race
CVE-2026-98946
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
01Description
In the Linux kernel, the following vulnerability has been resolved: drm/vc4: Disable the V3D interrupt across runtime suspend vc4_irq_disable() masks the V3D interrupt sources and then calls synchronize_irq() before the V3D is powered down. However, by itself, this is not enough to quiesce the interrupt handler. synchronize_irq() waits for handlers that have already set IRQD_IRQ_INPROGRESS, and for irqchips reporting IRQCHIP_STATE_ACTIVE. A GIC interrupt chip is able to mark an interrupt active as soon as a CPU acknowledges it, so there these checks cover the whole dispatch path. On RPi 0-3, however, the interrupt controller is ARMCTRL, which has no active state. A CPU that has read the hwirq out of the pending register but has not yet reached handle_level_irq() stays invisible to synchronize_irq(). During a power transition, vc4_irq() may therefore run after the power domain is off, where every V3D register read will return 0xdeadbeef. 0xdeadbeef has FLDONE, FRDONE and OUTOMEM set. This problem doesn't trigger NULL pointer dereference issues only because the functions vc4_irq_finish_bin_job() and vc4_irq_finish_render_job() return early when there is no job pointer, but OUTOMEM is still able to schedule vc4_overflow_mem_work() after vc4_irq_disable() has already cancelled it. Therefore, fix the spurious interrupts by disabling the interrupt line across the PM transition. To preserve the enable/disable balance, move vc4_irq_install() and request the IRQ line disabled before the first runtime resume.
02KernelScan AI Analysis
Risk summary
A race condition in the VC4 DRM driver on Raspberry Pi 0-3 allows a local user to trigger a use-after-free during GPU runtime suspend/resume cycles. The interrupt controller (ARMCTRL) lacks an active state, so synchronize_irq() cannot reliably quiesce in-flight handlers before the V3D power domain is turned off. This lets a spurious interrupt run after power-off, reading 0xdeadbeef from registers and scheduling a work item that has already been cancelled, leading to kernel memory corruption and potential privilege escalation.
Vulnerability analysis
During runtime suspend, the VC4 driver masks V3D interrupt sources and calls synchronize_irq() to wait for any running interrupt handlers. On Raspberry Pi 0-3, the ARMCTRL interrupt controller does not track an active state, so a CPU that has fetched the interrupt from the pending register but not yet entered the handler is invisible to synchronize_irq(). If the power domain is turned off while such a handler is in flight, the handler executes with the device powered down; all V3D register reads return 0xdeadbeef, which has the OUTOMEM bit set. This causes the interrupt handler to schedule the overflow memory work item after vc4_irq_disable() has already cancelled it, creating a use-after-free. The fix replaces synchronize_irq() with disable_irq() to fully disable the interrupt line at the controller level across the power transition, requests the IRQ disabled initially (IRQF_NO_AUTOEN), and re-enables it only after the device is powered back up in runtime_resume(). Any local user with access to the GPU device (/dev/dri/renderD* or /dev/dri/card*) can trigger runtime suspend/resume cycles by exercising the GPU, making this a local privilege escalation vulnerability.
Lifecycle
03Fix Versions
| Branch | Introduced | Fixed in | Patch commit |
|---|---|---|---|
| 7.2 | 6.1 | 7.2.11 | e81402c3d420 |
| mainline | 6.1 | 7.3 | 6abc8e4dcfbc |
04CIP Kernels
State of the newest release of each Civil Infrastructure Platform SLTS tree, from CIP's own fix records.
| CIP tree | State |
|---|---|
| cip/6.12 | Affected — no CIP fix yet (latest 6.12.118-cip136) |
| cip/6.1 | Affected — no CIP fix yet (latest 6.1.190-cip62) |
| cip/6.1-rt | Affected — no CIP fix yet (latest 6.1.189-cip61-rt32) |