accel/habanalabs: postpone mem_mgr IDR destruction to hpriv_release()
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 6.1.189, 6.3.4
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
- Exploitation: none
- Automatable: no
- Technical impact: partial
Summary
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.
Timeline
- CVE published
- CISA SSVC assessment
Exploitation: none · Automatable: no · Technical impact: partial
- Record last updated
Affected versions
- Linux Linux
From 0feaf86d4e69507ab9b2af7dcc63a6886352d5db · fixed in c96cc6b46fdce89a8feb270a35bbe5086c142534; From 0feaf86d4e69507ab9b2af7dcc63a6886352d5db · fixed in 840de329ca99cafd0cdde9c6ac160b1330942aba; From 0feaf86d4e69507ab9b2af7dcc63a6886352d5db · fixed in 2e8e9a895c4589f124a37fc84d123b5114406e94
- Linux Linux
5.1
- KernelLinux
From 5.1.0 · fixed in 6.1.189; From 6.2.0 · fixed in 6.3.4