diff options
| author | Thomas Zimmermann <[email protected]> | 2025-09-22 13:45:54 +0000 |
|---|---|---|
| committer | Thomas Zimmermann <[email protected]> | 2025-09-23 09:36:14 +0000 |
| commit | 9b2f5ef00e852f8e8902a4d4f73aeedc60220c12 (patch) | |
| tree | e69772ca0f839d22d1abcf81e94ae4de6add4bff /scripts/kernel-doc.py | |
| parent | fbcon: fix integer overflow in fbcon_do_set_font (diff) | |
| download | kernel-9b2f5ef00e852f8e8902a4d4f73aeedc60220c12.tar.gz kernel-9b2f5ef00e852f8e8902a4d4f73aeedc60220c12.zip | |
fbcon: Fix OOB access in font allocation
Commit 1a194e6c8e1e ("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: 1a194e6c8e1e ("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]
Diffstat (limited to 'scripts/kernel-doc.py')
0 files changed, 0 insertions, 0 deletions
