Description
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 products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
a783a09ee76d6259296dc6aeea2b6884fa526980 to < dc0fba19ef518920073d1d639317b2dd8266fe5eaffecteda783a09ee76d6259296dc6aeea2b6884fa526980 to < 1f661f42beb558b2d21882f0cd527ed6c8e7e749affecteda783a09ee76d6259296dc6aeea2b6884fa526980 to < bdeb73d7312100e00c3e643ff233f09b6ec114aaaffecteda783a09ee76d6259296dc6aeea2b6884fa526980 to < 3a8aa74859dd73eaa76c55eb74da708e56ef51c5affecteda783a09ee76d6259296dc6aeea2b6884fa526980 to < 0b9878aba5cf93bc2b55ba9eb807757ce3239becaffecteda783a09ee76d6259296dc6aeea2b6884fa526980 to < 25a1669907512e927fab9ad4d4fb74ff57f63cd9affected
Linux Linux
Default version status: affected
5.3affected0 to < 5.3unaffected6.1.191 to ≤ 6.1.*unaffected6.6.160 to ≤ 6.6.*unaffected6.12.110 to ≤ 6.12.*unaffected6.18.52 to ≤ 6.18.*unaffected7.2.6 to ≤ 7.2.*unaffected7.3 to ≤ *unaffected
References
- https://git.kernel.org/stable/c/dc0fba19ef518920073d1d639317b2dd8266fe5e ↗
- https://git.kernel.org/stable/c/1f661f42beb558b2d21882f0cd527ed6c8e7e749 ↗
- https://git.kernel.org/stable/c/bdeb73d7312100e00c3e643ff233f09b6ec114aa ↗
- https://git.kernel.org/stable/c/3a8aa74859dd73eaa76c55eb74da708e56ef51c5 ↗
- https://git.kernel.org/stable/c/0b9878aba5cf93bc2b55ba9eb807757ce3239bec ↗
- https://git.kernel.org/stable/c/25a1669907512e927fab9ad4d4fb74ff57f63cd9 ↗