]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/amdgpu: avoid buffer overflow attach in smu_sys_set_pp_table()
authorJiang Liu <gerry@linux.alibaba.com>
Fri, 7 Feb 2025 06:44:14 +0000 (14:44 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 21 Feb 2025 12:50:01 +0000 (13:50 +0100)
commit3484ea33157bc7334f57e64826ec5a4bf992151a
treeec2b3bbbaaab774c4e40448b9e76b5003aee3807
parent781a06fd265a8151f7601122d9c2e985663828ff
drm/amdgpu: avoid buffer overflow attach in smu_sys_set_pp_table()

commit 1abb2648698bf10783d2236a6b4a7ca5e8021699 upstream.

It malicious user provides a small pptable through sysfs and then
a bigger pptable, it may cause buffer overflow attack in function
smu_sys_set_pp_table().

Reviewed-by: Lijo Lazar <lijo.lazar@amd.com>
Signed-off-by: Jiang Liu <gerry@linux.alibaba.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c