]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/amdgpu/vcn4: Avoid overflow on msg bound check
authorBenjamin Cheng <benjamin.cheng@amd.com>
Mon, 13 Apr 2026 13:22:15 +0000 (09:22 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 28 Apr 2026 19:51:18 +0000 (15:51 -0400)
commit65bce27ea6192320448c30267ffc17ffa094e713
treebdc8003025e0cf44b135009c81bf2937b6f8cb11
parente6e9faba8100628990cccd13f0f044a648c303cf
drm/amdgpu/vcn4: Avoid overflow on msg bound check

As pointed out by SDL, the previous condition may be vulnerable to
overflow.

Fixes: 0a78f2bac142 ("drm/amdgpu/vcn4: Prevent OOB reads when parsing dec msg")
Cc: SDL <sdl@nppct.ru>
Signed-off-by: Benjamin Cheng <benjamin.cheng@amd.com>
Reviewed-by: Ruijing Dong <ruijing.dong@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
(cherry picked from commit 3c5367d950140d4ec7af830b2268a5a6fdaa3885)
drivers/gpu/drm/amd/amdgpu/vcn_v4_0.c