accel/habanalabs: postpone mem_mgr IDR destruction to hpriv_release()
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 2e8e9a895c4589f124a37fc84d123b5114406e94, Kernel 840de329ca99cafd0cdde9c6ac160b1330942aba and Kernel c96cc6b46fdce89a8feb270a35bbe5086c142534.
In the Linux kernel, the following vulnerability has been resolved: accel/habanalabs: postpone mem_mgr IDR destruction to hpriv_release() The memory manager IDR is currently destroyed when user releases the file descriptor. However, at this point the user context might be still held, and memory buffers might be still in use. Later on, calls to release those buffers will fail due to not finding their handles in the IDR, leading to a memory leak. To avoid this leak, split the IDR destruction from the memory manager fini, and postpone it to hpriv_release() when there is no user context and no buffers are used.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | =5.1, >=0feaf86d4e69507ab9b2af7dcc63a6886352d5db <2e8e9a895c4589f124a37fc84d123b5114406e94, >=0feaf86d4e69507ab9b2af7dcc63a6886352d5db <840de329ca99cafd0cdde9c6ac160b1330942aba, >=0feaf86d4e69507ab9b2af7dcc63a6886352d5db <c96cc6b46fdce89a8feb270a35bbe5086c142534 | 2e8e9a895c4589f124a37fc84d123b5114406e94, 840de329ca99cafd0cdde9c6ac160b1330942aba, c96cc6b46fdce89a8feb270a35bbe5086c142534 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket