Linux
drm/v3d: Clear queue->active_job when v3d_fence_create() fails
In the Linux kernel, the following vulnerability has been resolved: drm/v3d: Clear queue->active_job when v3d_fence_create() fails The run_job() callbacks for BIN, RENDER, TFU and CSD assign the incoming job to queue->active_job before calling v3d_fence_create(). If v3d_fence_create() fails, the callback returns NULL without clearing active_job, leaving a dangling pointer. Create a failure path in all run_job() callbacks that clears the active job before returning NULL. The BIN path takes queue->queue_lock around the clear as it races against v3d_overflow_mem_work(); RENDER, TFU and CSD paths have no concurrent reader, so the clear is lock-free.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= a783a09ee76d6259296dc6aeea2b6884fa526980, < dc0fba19ef518920073d1d639317b2dd8266fe5e
- >= a783a09ee76d6259296dc6aeea2b6884fa526980, < 1f661f42beb558b2d21882f0cd527ed6c8e7e749
- >= a783a09ee76d6259296dc6aeea2b6884fa526980, < bdeb73d7312100e00c3e643ff233f09b6ec114aa
- >= a783a09ee76d6259296dc6aeea2b6884fa526980, < 3a8aa74859dd73eaa76c55eb74da708e56ef51c5
- >= a783a09ee76d6259296dc6aeea2b6884fa526980, < 0b9878aba5cf93bc2b55ba9eb807757ce3239bec
- >= a783a09ee76d6259296dc6aeea2b6884fa526980, < 25a1669907512e927fab9ad4d4fb74ff57f63cd9
Fixed in dc0fba19ef518920073d1d639317b2dd8266fe5e, 1f661f42beb558b2d21882f0cd527ed6c8e7e749, bdeb73d7312100e00c3e643ff233f09b6ec114aa, 3a8aa74859dd73eaa76c55eb74da708e56ef51c5, 0b9878aba5cf93bc2b55ba9eb807757ce3239bec, 25a1669907512e927fab9ad4d4fb74ff57f63cd9
- 5.3
Fixed in 0, 6.1.191, 6.6.160, 6.12.110, 6.18.52, 7.2.6, 7.3
Mitigation
Upgrade Linux to dc0fba19ef518920073d1d639317b2dd8266fe5e or 1f661f42beb558b2d21882f0cd527ed6c8e7e749 or bdeb73d7312100e00c3e643ff233f09b6ec114aa or 3a8aa74859dd73eaa76c55eb74da708e56ef51c5 or 0b9878aba5cf93bc2b55ba9eb807757ce3239bec or 25a1669907512e927fab9ad4d4fb74ff57f63cd9 or later.
Upgrade Linux to 0 or 6.1.191 or 6.6.160 or 6.12.110 or 6.18.52 or 7.2.6 or 7.3 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.