{"id":"CVE-2022-50528","state":"PUBLISHED","title":"drm/amdkfd: Fix memory leakage","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/amdkfd: Fix memory leakage\n\nThis patch fixes potential memory leakage and seg fault\nin  _gpuvm_import_dmabuf() function","publishedAt":"2025-10-07T15:19:19.909Z","updatedAt":"2026-10-15T21:41:21.858Z","severity":{"score":7.8,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"Linux"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"d4ec4bdc0bd5ad352854473ba4dcbdb39fd5bfdd","status":"affected","lessThan":"8876793e56ec69b3be2a883b4bc440df3dbb1865","versionType":"git"},{"version":"d4ec4bdc0bd5ad352854473ba4dcbdb39fd5bfdd","status":"affected","lessThan":"7356d8e367d0e025a568e369c4cf575722cac60f","versionType":"git"},{"version":"d4ec4bdc0bd5ad352854473ba4dcbdb39fd5bfdd","status":"affected","lessThan":"c65564790048fa416ccd26a8945c7ec0cf9ef0b7","versionType":"git"},{"version":"d4ec4bdc0bd5ad352854473ba4dcbdb39fd5bfdd","status":"affected","lessThan":"75818afff631e1ea785a82c3e8bb82eb0dee539c","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.14","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.14","versionType":"semver"},{"version":"5.15.86","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.0.16","status":"unaffected","lessThanOrEqual":"6.0.*","versionType":"semver"},{"version":"6.1.2","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.2","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c"]}],"references":["https://git.kernel.org/stable/c/8876793e56ec69b3be2a883b4bc440df3dbb1865","https://git.kernel.org/stable/c/7356d8e367d0e025a568e369c4cf575722cac60f","https://git.kernel.org/stable/c/c65564790048fa416ccd26a8945c7ec0cf9ef0b7","https://git.kernel.org/stable/c/75818afff631e1ea785a82c3e8bb82eb0dee539c"],"weaknesses":[],"ingestedAt":"2026-10-29T20:05:26.763Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2022/50xxx/CVE-2022-50528.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2022-50528","state":"PUBLISHED","datePublished":"2025-10-07T15:19:19.909Z","dateUpdated":"2026-10-15T21:41:21.858Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2025-10-07T15:15:38.664Z"},"containers":{"cna":{"title":"drm/amdkfd: Fix memory leakage","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/amdkfd: Fix memory leakage\n\nThis patch fixes potential memory leakage and seg fault\nin  _gpuvm_import_dmabuf() function"}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"d4ec4bdc0bd5ad352854473ba4dcbdb39fd5bfdd","status":"affected","lessThan":"8876793e56ec69b3be2a883b4bc440df3dbb1865","versionType":"git"},{"version":"d4ec4bdc0bd5ad352854473ba4dcbdb39fd5bfdd","status":"affected","lessThan":"7356d8e367d0e025a568e369c4cf575722cac60f","versionType":"git"},{"version":"d4ec4bdc0bd5ad352854473ba4dcbdb39fd5bfdd","status":"affected","lessThan":"c65564790048fa416ccd26a8945c7ec0cf9ef0b7","versionType":"git"},{"version":"d4ec4bdc0bd5ad352854473ba4dcbdb39fd5bfdd","status":"affected","lessThan":"75818afff631e1ea785a82c3e8bb82eb0dee539c","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.14","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.14","versionType":"semver"},{"version":"5.15.86","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.0.16","status":"unaffected","lessThanOrEqual":"6.0.*","versionType":"semver"},{"version":"6.1.2","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.2","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/8876793e56ec69b3be2a883b4bc440df3dbb1865"},{"url":"https://git.kernel.org/stable/c/7356d8e367d0e025a568e369c4cf575722cac60f"},{"url":"https://git.kernel.org/stable/c/c65564790048fa416ccd26a8945c7ec0cf9ef0b7"},{"url":"https://git.kernel.org/stable/c/75818afff631e1ea785a82c3e8bb82eb0dee539c"}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:L - The bug is reached only through the local AMDKFD_IOC_IMPORT_DMABUF ioctl on /dev/kfd (kfd_ioctl → kfd_ioctl_import_dmabuf → amdgpu_amdkfd_gpuvm_import_dmabuf), not via network or adjacent-link protocols.\nAC:L - A local attacker who can open /dev/kfd can prepare a valid amdgpu dmabuf, call import, and induce memory pressure so the post-kzalloc drm_vma_node_allow kmalloc fails; that OOM condition is attacker-influenced, not a victim-only race or layout.\nPR:L - /dev/kfd is udev MODE 0660 GROUP render with seat uaccess, and IMPORT_DMABUF has no capability flag; any unprivileged render/seat user can open the device and issue the ioctl.\nUI:N - The attacker opens /dev/kfd, acquires a VM, and issues IMPORT_DMABUF themselves; no separate victim action is required.\nS:U - Impact is host-kernel memory corruption/DoS within the same OS security authority; the path does not cross a VM, IOMMU, or other boundary.\nC:H - kfree(mem) frees a stack address, so free_large_kmalloc/__free_pages releases the wrong page (or a miscomputed page under VMAP_STACK), enabling allocator/page reuse and kernel memory disclosure primitives.\nI:H - The same invalid free returns a live kernel page to the allocator while it may still be in use, yielding memory corruption and write/control-flow hijack primitives beyond a pure crash.\nA:H - The fix commit documents a segfault on this path, and freeing the wrong page predictably causes kernel oops/panic or hang, which is Availability High."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-08-05T08:59:04.060Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.14","versionEndExcluding":"5.15.86"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.14","versionEndExcluding":"6.0.16"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.14","versionEndExcluding":"6.1.2"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.14","versionEndExcluding":"6.2"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"id":"CVE-2022-50528","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"total"}],"version":"2.0.3","timestamp":"2026-10-15T21:31:40.161518Z"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-10-15T21:41:21.858Z"}}]}}}