Files
linux/drivers/video/fbdev/core
Thomas Zimmermann 9b2f5ef00e fbcon: Fix OOB access in font allocation
Commit 1a194e6c8e ("fbcon: fix integer overflow in fbcon_do_set_font")
introduced an out-of-bounds access by storing data and allocation sizes
in the same variable. Restore the old size calculation and use the new
variable 'alloc_size' for the allocation.

Signed-off-by: Thomas Zimmermann <[email protected]>
Fixes: 1a194e6c8e ("fbcon: fix integer overflow in fbcon_do_set_font")
Reported-by: Jani Nikula <[email protected]>
Closes: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/15020
Closes: https://gitlab.freedesktop.org/drm/xe/kernel/-/issues/6201
Cc: Samasth Norway Ananda <[email protected]>
Cc: Thomas Zimmermann <[email protected]>
Cc: George Kennedy <[email protected]>
Cc: Greg Kroah-Hartman <[email protected]>
Cc: Simona Vetter <[email protected]>
Cc: Helge Deller <[email protected]>
Cc: "Ville Syrjälä" <[email protected]>
Cc: Sam Ravnborg <[email protected]>
Cc: Qianqiang Liu <[email protected]>
Cc: Shixiong Ou <[email protected]>
Cc: Kees Cook <[email protected]>
Cc: <[email protected]> # v5.9+
Cc: Zsolt Kajtar <[email protected]>
Reviewed-by: Lucas De Marchi <[email protected]>
Reviewed-by: Qianqiang Liu <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
2025-09-23 11:36:14 +02:00
..
2025-06-16 09:06:19 +02:00
2025-06-16 09:06:19 +02:00
2025-06-16 09:06:19 +02:00
2025-06-16 09:06:19 +02:00
2025-06-16 09:06:19 +02:00
2025-04-10 10:38:57 +01:00
2025-06-16 09:06:19 +02:00
…
2025-06-16 09:06:19 +02:00
2025-06-16 09:06:19 +02:00
2025-04-10 10:38:57 +01:00
…
2025-06-16 09:06:19 +02:00
2025-06-16 09:06:19 +02:00
2025-06-16 09:06:19 +02:00
2025-06-16 09:06:19 +02:00