lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <2025120852-CVE-2022-50619-9b47@gregkh>
Date: Mon,  8 Dec 2025 10:16:56 +0900
From: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To: linux-cve-announce@...r.kernel.org
Cc: Greg Kroah-Hartman <gregkh@...nel.org>
Subject: CVE-2022-50619: drm/amdkfd: Fix memory leak in kfd_mem_dmamap_userptr()

From: Greg Kroah-Hartman <gregkh@...nel.org>

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.

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


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

	Issue introduced in 5.14 with commit 264fb4d332f5e76743818480e482464437837c52 and fixed in 5.15.77 with commit 304a10161696d86300ceab1cbe72b2d74b8cdd94
	Issue introduced in 5.14 with commit 264fb4d332f5e76743818480e482464437837c52 and fixed in 6.0.7 with commit c6dc4c9ba093829ebe1450d5fb101da6fb7a2a58
	Issue introduced in 5.14 with commit 264fb4d332f5e76743818480e482464437837c52 and fixed in 6.1 with commit 90bfee142af0f0e9d3bec80e7acd5f49b230acf7

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-50619
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/304a10161696d86300ceab1cbe72b2d74b8cdd94
	https://git.kernel.org/stable/c/c6dc4c9ba093829ebe1450d5fb101da6fb7a2a58
	https://git.kernel.org/stable/c/90bfee142af0f0e9d3bec80e7acd5f49b230acf7

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ