]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/amdgpu/vcn4: Prevent OOB reads when parsing dec msg
authorBenjamin Cheng <benjamin.cheng@amd.com>
Wed, 25 Mar 2026 13:09:27 +0000 (09:09 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 3 Apr 2026 17:48:50 +0000 (13:48 -0400)
commit0a78f2bac1424deb7c9d5e09c6b8e849d8e8b648
tree5225b26c1c6469902d1bc8696ecdeac93818f060
parentb193019860d61e92da395eae2011f2f6716b182f
drm/amdgpu/vcn4: Prevent OOB reads when parsing dec msg

Check bounds against the end of the BO whenever we access the msg.

Signed-off-by: Benjamin Cheng <benjamin.cheng@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Ruijing Dong <ruijing.dong@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/amdgpu/vcn_v4_0.c