]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/amdgpu/vcn3: 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)
commite6e9faba8100628990cccd13f0f044a648c303cf
tree0b982a83323bff683ff81912e966ec62aec883dc
parent47a5dfc8add4e60ff1ddc312f79998e70cbb0c09
drm/amdgpu/vcn3: Avoid overflow on msg bound check

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

Fixes: b193019860d6 ("drm/amdgpu/vcn3: 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 db00257ac9e4a51eb2515aaea161a019f7125e10)
drivers/gpu/drm/amd/amdgpu/vcn_v3_0.c