{"id":"CVE-2022-50619","aliases":["CVE-2022-50619"],"related":[],"kind":"vulnerability","state":"published","title":"drm/amdkfd: Fix memory leak in kfd_mem_dmamap_userptr()","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/amdkfd: Fix memory leak in kfd_mem_dmamap_userptr()\n\nIf the number of pages from the userptr BO differs from the SG BO then the\nallocated memory for the SG table doesn't get freed before returning\n-EINVAL, which may lead to a memory leak in some error paths. Fix this by\nchecking the number of pages before allocating memory for the SG table.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/amdkfd: Fix memory leak in kfd_mem_dmamap_userptr()\n\nIf the number of pages from the userptr BO differs from the SG BO then the\nallocated memory for the SG table doesn't get freed before returning\n-EINVAL, which may lead to a memory leak in some error paths. Fix this by\nchecking the number of pages before allocating memory for the SG table.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\ndrm/amdkfd: Corrección de fuga de memoria en kfd_mem_dmamap_userptr()\n\nSi el número de páginas del BO userptr difiere del BO SG, entonces la memoria asignada para la tabla SG no se libera antes de devolver -EINVAL, lo que puede provocar una fuga de memoria en algunas rutas de error. Esto se corrige comprobando el número de páginas antes de asignar memoria para la tabla SG.","source":"nvd"}],"published":"2025-12-08T01:16:32.726Z","modified":"2026-11-11T23:10:00.263Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"264fb4d332f5e76743818480e482464437837c52","fixed":"304a10161696d86300ceab1cbe72b2d74b8cdd94","status":"affected"},{"type":"git","introduced":"264fb4d332f5e76743818480e482464437837c52","fixed":"c6dc4c9ba093829ebe1450d5fb101da6fb7a2a58","status":"affected"},{"type":"git","introduced":"264fb4d332f5e76743818480e482464437837c52","fixed":"90bfee142af0f0e9d3bec80e7acd5f49b230acf7","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.14","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.14","status":"unaffected"},{"type":"semver","introduced":"5.15.77","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.0.7","lastAffected":"6.0.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/304a10161696d86300ceab1cbe72b2d74b8cdd94","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c6dc4c9ba093829ebe1450d5fb101da6fb7a2a58","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/90bfee142af0f0e9d3bec80e7acd5f49b230acf7","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-50619","url":"https://www.cve.org/CVERecord?id=CVE-2022-50619","licence":"CVE Terms of Use","modified":"2026-05-11T19:22:20.912Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-50619","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50619","licence":"Public domain","modified":"2026-11-11T23:10:00.263Z"}],"updatedAt":"2026-11-25T22:58:21.290Z","epss":{"score":0.00213,"percentile":0.12354,"date":"2026-12-01T12:00:22.000Z"}}