Skip to contentSkip to conversation

CVE-2022-50528: drm/amdkfd: Fix memory leakage

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Oct 7, 2025

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

In the Linux kernel, the following vulnerability has been resolved:

drm/amdkfd: Fix memory leakage

This patch fixes potential memory leakage and seg fault in _gpuvm_import_dmabuf() function

The Linux kernel CVE team has assigned CVE-2022-50528 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 5.14 with commit d4ec4bdc0bd5ad352854473ba4dcbdb39fd5bfdd and fixed in 5.15.86 with commit 8876793e56ec69b3be2a883b4bc440df3dbb1865
	Issue introduced in 5.14 with commit d4ec4bdc0bd5ad352854473ba4dcbdb39fd5bfdd and fixed in 6.0.16 with commit 7356d8e367d0e025a568e369c4cf575722cac60f
	Issue introduced in 5.14 with commit d4ec4bdc0bd5ad352854473ba4dcbdb39fd5bfdd and fixed in 6.1.2 with commit c65564790048fa416ccd26a8945c7ec0cf9ef0b7
	Issue introduced in 5.14 with commit d4ec4bdc0bd5ad352854473ba4dcbdb39fd5bfdd and fixed in 6.2 with commit 75818afff631e1ea785a82c3e8bb82eb0dee539c

Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at

	https://cve.org/CVERecord/?id=CVE-2022-50528

will be updated if fixes are backported, please check that for the most up to date information about this issue.

Affected files
==============

The file(s) affected by this issue are:
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c

Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:

	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