summaryrefslogtreecommitdiff
path: root/kernel/livepatch
diff options
context:
space:
mode:
authorAlexander Konyukhov <Alexander.Konyukhov@kaspersky.com>2026-02-03 16:48:46 +0300
committerLiviu Dudau <liviu.dudau@arm.com>2026-02-05 14:10:42 +0000
commit779ec12c85c9e4547519e3903a371a3b26a289de (patch)
tree131e7398c2455a69b1e25566ab07d19c6ed2159b /kernel/livepatch
parent2bcbc706dfa02ae50118173a6f6d8a12e735480c (diff)
drm/komeda: fix integer overflow in AFBC framebuffer size check
The AFBC framebuffer size validation calculates the minimum required buffer size by adding the AFBC payload size to the framebuffer offset. This addition is performed without checking for integer overflow. If the addition oveflows, the size check may incorrectly succed and allow userspace to provide an undersized drm_gem_object, potentially leading to out-of-bounds memory access. Add usage of check_add_overflow() to safely compute the minimum required size and reject the framebuffer if an overflow is detected. This makes the AFBC size validation more robust against malformed. Found by Linux Verification Center (linuxtesting.org) with SVACE. Fixes: 65ad2392dd6d ("drm/komeda: Added AFBC support for komeda driver") Signed-off-by: Alexander Konyukhov <Alexander.Konyukhov@kaspersky.com> Acked-by: Liviu Dudau <liviu.dudau@arm.com> Signed-off-by: Liviu Dudau <liviu.dudau@arm.com> Link: https://lore.kernel.org/r/20260203134907.1587067-1-Alexander.Konyukhov@kaspersky.com
Diffstat (limited to 'kernel/livepatch')
0 files changed, 0 insertions, 0 deletions