]> 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 18:47:44 +0000 (14:47 -0400)
commit3c5367d950140d4ec7af830b2268a5a6fdaa3885
tree67844792d89ab283bbefb77a35141aaca157d887
parentd4871d837bbf70173f63426a84fa80b39e408b9e
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>
drivers/gpu/drm/amd/amdgpu/vcn_v4_0.c