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: <2025122401-CVE-2022-50781-3d18@gregkh>
Date: Wed, 24 Dec 2025 14:06:32 +0100
From: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To: linux-cve-announce@...r.kernel.org
Cc: Greg Kroah-Hartman <gregkh@...nel.org>
Subject: CVE-2022-50781: amdgpu/pm: prevent array underflow in vega20_odn_edit_dpm_table()

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

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

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

amdgpu/pm: prevent array underflow in vega20_odn_edit_dpm_table()

In the PP_OD_EDIT_VDDC_CURVE case the "input_index" variable is capped at
2 but not checked for negative values so it results in an out of bounds
read.  This value comes from the user via sysfs.

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


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

	Issue introduced in 4.20 with commit d5bf26539494d16dfabbbea0854a47d202ea15c0 and fixed in 5.4.229 with commit 4d3dc0de9c46d9f73be6bac026e40b893e37ea21
	Issue introduced in 4.20 with commit d5bf26539494d16dfabbbea0854a47d202ea15c0 and fixed in 5.10.163 with commit 85273b4a7076ed5328c8ace02234e4e7e10972d5
	Issue introduced in 4.20 with commit d5bf26539494d16dfabbbea0854a47d202ea15c0 and fixed in 5.15.86 with commit f289a38df0da4cfe4b50d04b1b9c3bc646fecd57
	Issue introduced in 4.20 with commit d5bf26539494d16dfabbbea0854a47d202ea15c0 and fixed in 6.0.16 with commit a03625ad11b50429930f4c491d6c97e70f2ba89a
	Issue introduced in 4.20 with commit d5bf26539494d16dfabbbea0854a47d202ea15c0 and fixed in 6.1.2 with commit 8084bd0a64e278314b733993f388d83a86aa1183
	Issue introduced in 4.20 with commit d5bf26539494d16dfabbbea0854a47d202ea15c0 and fixed in 6.2 with commit d27252b5706e51188aed7647126e44dcf9e940c1

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-50781
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/pm/powerplay/hwmgr/vega20_hwmgr.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/4d3dc0de9c46d9f73be6bac026e40b893e37ea21
	https://git.kernel.org/stable/c/85273b4a7076ed5328c8ace02234e4e7e10972d5
	https://git.kernel.org/stable/c/f289a38df0da4cfe4b50d04b1b9c3bc646fecd57
	https://git.kernel.org/stable/c/a03625ad11b50429930f4c491d6c97e70f2ba89a
	https://git.kernel.org/stable/c/8084bd0a64e278314b733993f388d83a86aa1183
	https://git.kernel.org/stable/c/d27252b5706e51188aed7647126e44dcf9e940c1

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ