Description (CNA)
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 (CNA)
| Vendor / product | Versions |
|---|---|
| Linux / Linux | affected a783a09ee76d6259296dc6aeea2b6884fa526980 before 1f661f42beb558b2d21882f0cd527ed6c8e7e749; affected a783a09ee76d6259296dc6aeea2b6884fa526980 before bdeb73d7312100e00c3e643ff233f09b6ec114aa; affected a783a09ee76d6259296dc6aeea2b6884fa526980 before 3a8aa74859dd73eaa76c55eb74da708e56ef51c5; affected a783a09ee76d6259296dc6aeea2b6884fa526980 before 0b9878aba5cf93bc2b55ba9eb807757ce3239bec; affected a783a09ee76d6259296dc6aeea2b6884fa526980 before 25a1669907512e927fab9ad4d4fb74ff57f63cd9 |
| Linux / Linux | affected 5.3; unaffected 0 before 5.3; unaffected 6.6.160 through 6.6.*; unaffected 6.12.110 through 6.12.*; unaffected 6.18.52 through 6.18.*; unaffected 7.2.6 through 7.2.*; unaffected 7.3 through * |
CWE
No CWE identifiers supplied.
References
- 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