CVE-2026-74638: drm/v3d: Serialize the scheduler timeout handlers
In the Linux kernel, the following vulnerability has been resolved:
drm/v3d: Serialize the scheduler timeout handlers
V3D exposes several independent hardware queues (BIN, RENDER, TFU and CSD) but has only a single, global reset. A timeout on any one queue therefore has to stop, reset and restart the schedulers of every other queue as well. That makes concurrent timeout handlers unsafe.
resetlock was never able to make them safe, as a driver-side lock can only cover the driver's &drmschedbackendops.timedoutjob callback. The scheduler handles the timed out job and its pending list around that callback, outside of the driver's control, so a global reset triggered by one queue can still interfere with another queue that is in the middle of handling a timeout of its own.
Consequently, if a reset happens in the CSD queue while a CL-intensive application is running, the global reset stops and restarts the CL queue's scheduler while that queue is handling a timeout of its own. As drmschedstop() and drmschedstart() subtract and add the credits of every job sitting on the pending list of the scheduler they are called on, and as the CL queue's handler concurrently takes its job off that same list and puts it back, the stop and the start no longer see the same set of jobs. The CL queue is left with more credits in flight than its limit:
[ 327.302739] ------------[ cut here ]------------ [ 327.302744] WARNING: CPU: 2 PID: 43 at drivers/gpu/drm/scheduler/schedmain.c:102 drmschedrunjobwork+0x238/0x4d0 [gpusched] [ 327.302884] CPU: 2 UID: 0 PID: 43 Comm: kworker/u16:1 Not tainted 6.18.39-v8-16k+ #3 PREEMPT [ 327.302889] Hardware name: Raspberry Pi 5 Model B Rev 1.0 (DT) [ 327.302893] Workqueue: v3dbin drmschedrunjobwork [gpusched] [ 327.302984] Call trace: [ 327.302987] drmschedrunjobwork+0x238/0x4d0 [gpusched] (P) [ 327.302997] processscheduledworks+0x180/0x3d0 [ 327.303010] workerthread+0x268/0x3e8 [ 327.303016] kthread+0x140/0x250 [ 327.303022] retfromfork+0x10/0x20 [ 327.303031] ---[ end trace 0000000000000000 ]---
From that point on, the credit count of the CL queue is broken, causing a complete GPU hang and UI freeze.
The DRM scheduler already provides a mechanism to serialize the timeout handlers of different schedulers: an ordered workqueue passed as drmschedinit()'s @timeoutwq parameter. By default, each scheduler queues its timeout work on the system workqueue, which runs the handlers concurrently. Give all of the queues a shared ordered workqueue instead, as recommended by the DRM scheduler documentation for hardware that has distinct queues but resets globally.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
ubuntu/linux-hwe-7.0to a version that resolves this vulnerability.Fixed in 7.0.0-42.42~24.04.1 - Upgrade
Upgrade
ubuntu/linux-riscv-7.0to a version that resolves this vulnerability.Fixed in 7.0.0-42.42.1~24.04.1 - Upgrade
Upgrade
ubuntu/linuxto a version that resolves this vulnerability.Fixed in 7.0.0-42.42 - Upgrade
Upgrade
ubuntu/linux-awsto a version that resolves this vulnerability.Fixed in 7.0.0-1016.17 - Upgrade
Upgrade
ubuntu/linux-gcpto a version that resolves this vulnerability.Fixed in 7.0.0-1016.18 - Upgrade
Upgrade
ubuntu/linux-ibmto a version that resolves this vulnerability.Fixed in 7.0.0-1017.17 - Upgrade
Upgrade
ubuntu/linux-oem-7.0to a version that resolves this vulnerability.Fixed in 7.0.0-1017.17 - Upgrade
Upgrade
ubuntu/linux-oracleto a version that resolves this vulnerability.Fixed in 7.0.0-1015.16 - Upgrade
Upgrade
ubuntu/linux-riscvto a version that resolves this vulnerability.Fixed in 7.0.0-42.42.1 - Configuration
Pass all V3D queue schedulers a shared ordered workqueue through drm_sched_init()'s @timeout_wq parameter to serialize timeout handlers across the BIN, RENDER, TFU, and CSD queues.
V3D DRM scheduler drm_sched_init() @timeout_wq = shared ordered workqueue
Event History
Frequently Asked Questions
Which systems are exposed to this issue?
Systems using the Linux kernel V3D DRM driver are relevant. The issue involves V3D's BIN, RENDER, TFU, and CSD hardware queues, which share a single global reset.
What conditions are needed to trigger the problem?
The problem requires concurrent scheduler timeout handling across V3D queues. The described case involves a CSD queue reset occurring while a CL-intensive workload is running and the CL queue is also handling a timeout.
Why can a timeout in one queue affect another queue?
A timeout on any V3D queue requires stopping, resetting, and restarting schedulers for all queues because reset is global. The prior driver-side reset lock did not cover scheduler processing outside the timed-out-job callback, allowing concurrent timeout handling to interfere with scheduler pending-list credit accounting.
What should be done if this affects a deployed system?
Apply a Linux kernel update that includes the resolution for this issue. The provided stable-kernel references identify commits containing the fix.