drm/amdkfd: Fix memory leak in kfd_mem_dmamap_userptr()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
5.15.776.0.76.1In the Linux kernel, the following vulnerability has been resolved:
drm/amdkfd: Fix memory leak in kfd_mem_dmamap_userptr()
If the number of pages from the userptr BO differs from the SG BO then the allocated memory for the SG table doesn't get freed before returning -EINVAL, which may lead to a memory leak in some error paths. Fix this by checking the number of pages before allocating memory for the SG table.
From the CVE record · Linux
The Linux kernel’s kfd_mem_dmamap_userptr() can leak memory when the page counts of a userptr buffer object and an SG buffer object differ. The leak occurs on an error path; the input does not establish whether an attacker can trigger it or what access would be required.
Engineers running Linux kernels with drm/amdkfd should check their versions against the vendor advisory; affected versions are not specified.