CVE-2022-50619
JSON

Not scored

drm/amdkfd: Fix memory leak in kfd_mem_dmamap_userptr()

Severity
Not scored
Exploit likelihood
0.21% (higher than 12% of CVEs; EPSS, by FIRST)
Published
Last changed
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.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 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 *
CVE List

What each source says

CVE List

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.

NVD (es)

En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: drm/amdkfd: Corrección de fuga de memoria en kfd_mem_dmamap_userptr() Si 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.

References

Sources

SourceRecordLicence
CVE ListCVE-2022-50619 changed 2026-05-11CVE Terms of Use
NVDCVE-2022-50619 changed 2026-11-11Public domain