# CVE-2022-50619: drm/amdkfd: Fix memory leak in kfd_mem_dmamap_userptr()

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.21%, higher than 12% of CVEs (2026-12-01)
- Published: 2025-12-08T01:16:32.726Z
- Modified: 2026-11-11T23:10:00.263Z
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 264fb4d332f5e76743818480e482464437837c52 before 304a10161696d86300ceab1cbe72b2d74b8cdd94; from 264fb4d332f5e76743818480e482464437837c52 before c6dc4c9ba093829ebe1450d5fb101da6fb7a2a58; from 264fb4d332f5e76743818480e482464437837c52 before 90bfee142af0f0e9d3bec80e7acd5f49b230acf7; 5.14 (not affected: before 5.14; from 5.15.77 up to 5.15.*; from 6.0.7 up to 6.0.*; from 6.1 up to *)

## References

- <https://git.kernel.org/stable/c/304a10161696d86300ceab1cbe72b2d74b8cdd94>
- <https://git.kernel.org/stable/c/c6dc4c9ba093829ebe1450d5fb101da6fb7a2a58>
- <https://git.kernel.org/stable/c/90bfee142af0f0e9d3bec80e7acd5f49b230acf7>

## Sources

- CVE List: [CVE-2022-50619](https://www.cve.org/CVERecord?id=CVE-2022-50619), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2022-50619](https://nvd.nist.gov/vuln/detail/CVE-2022-50619), Public domain, modified 2026-11-11

---

Page: https://cve.day/CVE-2022-50619 · Whole record: https://cve.day/CVE-2022-50619.json · Rebuilt by cve.day 2026-11-25T22:58:21.290Z
