summaryrefslogtreecommitdiff
path: root/rust/zerocopy/src/pointer/git@git.tavy.me:linux-stable.git
diff options
context:
space:
mode:
authorBoyuan Zhang <boyuan.zhang@amd.com>2026-05-25 11:34:27 -0400
committerAlex Deucher <alexander.deucher@amd.com>2026-07-01 12:58:30 -0400
commit186bfdc4e26d019b2e7570cb121964a1d89b2e5b (patch)
tree207dae22f2ad802a697edff6e0b6cb108dd20a45 /rust/zerocopy/src/pointer/git@git.tavy.me:linux-stable.git
parent3b4082fabc67c9780b06eb959e59dd92fa79c0f0 (diff)
drm/amdgpu/vce: fix integer overflow in image size
Fix a security vulnerability where malicious VCE command streams with oversized dimensions (e.g. 65536×65536) cause 32-bit integer overflow, wrapping the calculated buffer size to 0. This bypasses validation and allows GPU firmware to perform out-of-bound memory access. The fix uses 64-bit arithmetic to detect overflow and rejects invalid dimensions before they reach the hardware. V2: remove redundant check V3: modify max height value V4: remove size64 Signed-off-by: Boyuan Zhang <boyuan.zhang@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> (cherry picked from commit cbe408dba581755ad1279a487ec786d8927d778d) Cc: stable@vger.kernel.org
Diffstat (limited to 'rust/zerocopy/src/pointer/git@git.tavy.me:linux-stable.git')
0 files changed, 0 insertions, 0 deletions