drm/vc4: Drop the BO reservations outside of job_lock
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 548546866909b5e7dea02ac0efb9e1b8d6652d77, Kernel 6bdd3a24acae6a5f888cca9c148a5c8175f1c5b0, Kernel 8ef66514d7b993c9fb96a5886f001e3556610c1c and 2 more.
In the Linux kernel, the following vulnerability has been resolved: drm/vc4: Drop the BO reservations outside of job_lock vc4_queue_submit() calls drm_exec_fini() with job_lock held and interrupts disabled. Besides unlocking the reservations, drm_exec_fini() frees the object array with kvfree(), which asks for preemptible task context or a non-NMI interrupt, and may reach might_sleep() through vfree(). Considering that an array that exceeds a page can take the vmalloc fallback, call drm_exec_fini() once job_lock is dropped. The reservations are then held across the job kick, which is harmless as nothing in the completion path takes a BO reservation. Note that vc4_attach_fences() has to stay inside the critical section, as it walks exec, which the job done worker is free to release as soon as job_lock is dropped.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | =6.15, >=04630796c437a9285643097825cbd3cd06603f47 <548546866909b5e7dea02ac0efb9e1b8d6652d77, >=04630796c437a9285643097825cbd3cd06603f47 <6bdd3a24acae6a5f888cca9c148a5c8175f1c5b0, >=04630796c437a9285643097825cbd3cd06603f47 <8ef66514d7b993c9fb96a5886f001e3556610c1c | 548546866909b5e7dea02ac0efb9e1b8d6652d77, 6bdd3a24acae6a5f888cca9c148a5c8175f1c5b0, 8ef66514d7b993c9fb96a5886f001e3556610c1c |
| linux-kernel: Kernel | >=6.15.0 <6.18.64, >=6.19.0 <7.3.5 | 6.18.64, 7.3.5 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket