drm/amdkfd: Fix memory leak in kfd_mem_dmamap_userptr() (Linux Linux)

CVE-2022-50619
Non disponible

En bref

Source
NVD
EPSS
EPSS 0.20 % · centile 9 ()
État
PUBLISHED
Publiée
Mise à jour
Attribuée par
Linux
Statut NVD
Deferred

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.

Références

Références européennes

Avis du CERT-FR

Produits affectés

ProduitVersions
Linux · Linuxaffected 264fb4d332f5e76743818480e482464437837c52 < 304a10161696d86300ceab1cbe72b2d74b8cdd94 ; affected 264fb4d332f5e76743818480e482464437837c52 < c6dc4c9ba093829ebe1450d5fb101da6fb7a2a58 ; affected 264fb4d332f5e76743818480e482464437837c52 < 90bfee142af0f0e9d3bec80e7acd5f49b230acf7
Linux · Linuxaffected 5.14 ; unaffected 0 < 5.14 ; unaffected 5.15.77 ≤ 5.15.* ; unaffected 6.0.7 ≤ 6.0.* ; unaffected 6.1 ≤ *

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD