CVE-2022-50619

published 8 Dec 2025 · updated 13 Nov 2026

drm/amdkfd: Fix memory leak in kfd_mem_dmamap_userptr()

5.0MediumEPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 304a10161696d86300ceab1cbe72b2d74b8cdd94, Kernel 90bfee142af0f0e9d3bec80e7acd5f49b230acf7, Kernel c6dc4c9ba093829ebe1450d5fb101da6fb7a2a58 and 2 more.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
LinuxKernel=5.14, >=264fb4d332f5e76743818480e482464437837c52 <304a10161696d86300ceab1cbe72b2d74b8cdd94, >=264fb4d332f5e76743818480e482464437837c52 <90bfee142af0f0e9d3bec80e7acd5f49b230acf7, >=264fb4d332f5e76743818480e482464437837c52 <c6dc4c9ba093829ebe1450d5fb101da6fb7a2a58304a10161696d86300ceab1cbe72b2d74b8cdd94, 90bfee142af0f0e9d3bec80e7acd5f49b230acf7, c6dc4c9ba093829ebe1450d5fb101da6fb7a2a58
linux-kernel: Kernel>=5.14.0 <5.15.77, >=5.16.0 <6.0.75.15.77, 6.0.7

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Kernel, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2022-50619 severity on Zeptric[![CVE-2022-50619](https://zeptric.io/badge/cve/CVE-2022-50619.svg)](https://zeptric.io/cve/CVE-2022-50619)