accel/rocket: initialize job domain before cleanup paths
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 3043230296653a609ab50006899e64bbb2d99465, Kernel 70e6a33d68a9b03335c5426332666e52d07f45d6 and Kernel 81731f1eda5e6a1dfad31445f741de9bbefbb08e.
In the Linux kernel, the following vulnerability has been resolved: accel/rocket: initialize job domain before cleanup paths rocket_ioctl_submit_job() releases rjob through rocket_job_put() on allocation error paths. rocket_job_cleanup() unconditionally calls rocket_iommu_domain_put(job->domain), but job->domain is assigned only after task copying and BO lookups. A failure before that assignment can therefore clean up a job with a NULL domain pointer. Take the per-file domain reference before the first error path can release rjob. Also clear rjob->tasks after freeing it in rocket_copy_tasks(), so the common cleanup path cannot free the task array again after a task-copy error.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | =6.18, >=0810d5ad88a18f1e6d549853a388ad0316f74e36 <3043230296653a609ab50006899e64bbb2d99465, >=0810d5ad88a18f1e6d549853a388ad0316f74e36 <70e6a33d68a9b03335c5426332666e52d07f45d6, >=0810d5ad88a18f1e6d549853a388ad0316f74e36 <81731f1eda5e6a1dfad31445f741de9bbefbb08e | 3043230296653a609ab50006899e64bbb2d99465, 70e6a33d68a9b03335c5426332666e52d07f45d6, 81731f1eda5e6a1dfad31445f741de9bbefbb08e |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket