Skip to contentSkip to conversation

CVE-2026-97427: drm/amd/pm: bound pp_dpm_set_pp_table() memcpy

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Sep 24

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/amd/pm: bound pp_dpm_set_pp_table() memcpy

The powerplay path allocates hardcode_pp_table once with kmemdup(..., soft_pp_table_size). memcpy(..., size) used the sysfs store count (up to PAGE_SIZE) with no upper bound, causing heap overflow. Reject writes where size exceeds soft_pp_table_size.

The Linux kernel CVE team has assigned CVE-2026-97427 to this issue.

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

	Fixed in 6.12.111 with commit 43d2ab8408f9f468b232350c74160ae21e763020
	Fixed in 6.18.53 with commit 3334985f8b4c7c637a829744c81518ad9a671bcb
	Fixed in 7.2 with commit f193e71fa9fab2e68ef85201b106e8f580d3a25b

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-2026-97427

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/amd_powerplay.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/43d2ab8408f9f468b232350c74160ae21e763020
	https://git.kernel.org/stable/c/3334985f8b4c7c637a829744c81518ad9a671bcb
	https://git.kernel.org/stable/c/f193e71fa9fab2e68ef85201b106e8f580d3a25b