mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-11-10 20:48:12 +00:00
vt: hide cursor prior to font changes to avoid out-of-bound reads
KASAN reports slab-out-of-bounds errors: BUG: KASAN: slab-out-of-bounds in soft_cursor+0x3eb/0xb70 drivers/video/fbdev/core/softcursor.c:70 When changing the size of a sceen font, the amount of columns and rows on a screen may change and thus the current position of the cursor and the selection may suddenly lay outside of the current screen limits. Clear the selection and hide the cursor before any font changes to avoid such possible out of bounds accesses. Reported-by: Jaeyoung Chung <jjy600901@snu.ac.kr> Signed-off-by: Helge Deller <deller@gmx.de> Link: https://lore.kernel.org/all/20260819163440.3702924-1-jjy600901@snu.ac.kr/
This commit is contained in:
parent
2626025102
commit
3c0ebc4c07
1 changed files with 5 additions and 4 deletions
Loading…
Add table
Add a link
Reference in a new issue