CVE-2022-50619 drm/amdkfd: Fix memory leak in kfd_mem_dmamap_userptr()
A local attacker can trigger a memory leak in the AMD KFD driver, potentially leading to denial of service.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2022-50619?
CVE-2022-50619 is a memory corruption vulnerability in Linux, published on 8 Dec 2025. It can only be exploited from the same machine or local network, with no action from the victim.
Official 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.
Which versions are affected by CVE-2022-50619?
How do I fix CVE-2022-50619?
Apply the vendor's patch.
Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.
Is CVE-2022-50619 being exploited?
There is no known exploitation of CVE-2022-50619 in the wild and no public exploit code.
Sources
Also known as DEBIAN-CVE-2022-50619, GHSA-c6cx-jmr3-qhwx, UBUNTU-CVE-2022-50619.