Description
In 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.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
264fb4d332f5e76743818480e482464437837c52 to < 304a10161696d86300ceab1cbe72b2d74b8cdd94affected264fb4d332f5e76743818480e482464437837c52 to < c6dc4c9ba093829ebe1450d5fb101da6fb7a2a58affected264fb4d332f5e76743818480e482464437837c52 to < 90bfee142af0f0e9d3bec80e7acd5f49b230acf7affected
Linux Linux
Default version status: affected
5.14affected0 to < 5.14unaffected5.15.77 to ≤ 5.15.*unaffected6.0.7 to ≤ 6.0.*unaffected6.1 to ≤ *unaffected