CVE-2026-99975: fbcon: Include font geometry in the rotated font cache
In the Linux kernel, the following vulnerability has been resolved:
fbcon: Include font geometry in the rotated font cache
fbconrotatefont() caches a rotated copy of the console font and skips the rebuild when the fontdata pointer and the rotation match. Raw font data carries no geometry, though: width, height and charcount live in vc->vcfont. fbconsetfont() deduplicates uploads by byte equality, so the same bytes re-uploaded with different dimensions keep the fontdata pointer while the geometry changes, and the early-out skips the rebuild.
The rotated cell size depends on the geometry (rotation swaps width and height), so the stale buffer is indexed with the new cell size. Re-uploading a 4x16 font as 16x8 on a CW-rotated console, for example, doubles the rotated cell size and reads past the end of the old buffer.
Record the geometry the buffer was built from and compare it in the early-out. The pointer-only key used to be backed by an explicit width check in the deduplication, which commit 1e3c49aa03fb ("lib/fonts: Compare font data for equality with fontdataisequal()") dropped.
Affected Software
Event History
Frequently Asked Questions
What conditions are required to trigger the out-of-bounds read?
The console must use a rotated font, and the same raw font bytes must be re-uploaded with different font geometry. This can cause fbcon to retain an old rotated-font buffer while indexing it using the new cell dimensions.
Which rotations are relevant?
The issue affects rotated console fonts because the rotated-font cache is used there. The described example uses clockwise rotation, where changing a font from 4x16 to 16x8 doubles the rotated cell size.
How can I determine whether a system has the fix?
Check whether the kernel includes the change that records the font geometry used to build the rotated-font cache and compares that geometry before reusing the cache. The provided stable references identify fixed commits e19f246141af0c3f4d6f0b267793f39723413199 and 10463bcd43495fb88ff667b2c5348200860f6bdc.