accel/ethosu: fix job completion fence cleanup
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 2d2a3adc91950f9a18829dadc7317fb5180a15c5 and Kernel b3e0f79af1f27339d8d2527c02cc3e8397c2f69f.
In the Linux kernel, the following vulnerability has been resolved: accel/ethosu: fix job completion fence cleanup ethosu_ioctl_submit_job() allocates done_fence before validating buffer handles. Errors after allocation call ethosu_job_err_cleanup(), which frees the job but leaks the uninitialized fence. A scheduler dependency error also lets ethosu_job_run() return before dma_fence_init(). Normal cleanup then passes a zeroed refcount to dma_fence_put(). Release done_fence in the common cleanup path and use dma_fence_was_initialized() to distinguish initialized fences from raw allocations. [robh: also fix goto]
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | =6.19, >=5a5e9c0228e613f0ef2a58b9782d7c0ea8f1e58b <2d2a3adc91950f9a18829dadc7317fb5180a15c5, >=5a5e9c0228e613f0ef2a58b9782d7c0ea8f1e58b <b3e0f79af1f27339d8d2527c02cc3e8397c2f69f | 2d2a3adc91950f9a18829dadc7317fb5180a15c5, b3e0f79af1f27339d8d2527c02cc3e8397c2f69f |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket