# CVE-2026-99974: fbcon: Rebuild rotated font buffer on font change

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.33%, higher than 27% of CVEs (2026-12-01)
- Published: 2026-11-30T13:18:47.436Z
- Modified: 2026-11-30T14:20:39.833Z
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

fbcon: Rebuild rotated font buffer on font change

fbcon_rotate_font() caches a rotated copy of the console font in
par->rotated.buf. The buffer is sized from the font's width, height
and charcount, and is rebuilt in fbcon_init(), fbcon_switch() and
fbcon_modechanged(), but not in fbcon_do_set_font().

When the font is changed through KDFONTOP, the new geometry is
installed and vc_resize() redraws before the buffer is rebuilt. The
rotated putcs/cursor ops then index the old buffer with the new cell
size; KASAN reports a slab-out-of-bounds read in soft_cursor().

Rebuild the buffer for the visible console before the redraw, as the
other callers do: select the console's blitting state with
set_blitting_type() (which also uploads the new font's map on
tile-blitting hardware), then rebuild. Background consoles keep
their rebuild at fbcon_switch() time, as the buffer is shared per
framebuffer and must not be updated for a console that is not being
displayed.

To ensure a correct rollback when the rebuild or the following
vc_resize() fails, save the rotated font state, clear it before
rebuilding, and restore it in the error path of
fbcon_do_set_font().

(As written by CVE List.)

## Affected

- Linux Linux: from 6cc50e1c5b57180fd37a31282000f43859b0fe73 before e9a180120e17b0a4e1df0fc2eee993cb4366e9f7; from 6cc50e1c5b57180fd37a31282000f43859b0fe73 before 5c009eb82016cf1bd0994de4cede312ba947aea1; from 6cc50e1c5b57180fd37a31282000f43859b0fe73 before b3a266d262a34df1954fb8b96ae372da2a4f6245; from 6cc50e1c5b57180fd37a31282000f43859b0fe73 before adec7583abe290f8b513863cf44b9d3569962ef1; from 6cc50e1c5b57180fd37a31282000f43859b0fe73 before 2877dfcc6e7aea7e9a503931931b6791c6a74b95; from 6cc50e1c5b57180fd37a31282000f43859b0fe73 before 18b00e211a0aab7219f024927789b515bfc3ea00; from 6cc50e1c5b57180fd37a31282000f43859b0fe73 before e1f7e1f9e7399c2d3d6fe8ba57608e0c157dbe69; from 6cc50e1c5b57180fd37a31282000f43859b0fe73 before e4b6b865d45d8dafb6c6f28c8a993a5b4431d25a; 2.6.15 (not affected: before 2.6.15; from 5.10.275 up to 5.10.*; from 5.15.226 up to 5.15.*; from 6.1.193 up to 6.1.*; from 6.6.163 up to 6.6.*; from 6.12.119 up to 6.12.*; from 6.18.65 up to 6.18.*; from 7.3.4 up to 7.3.*; from 7.4-rc1 up to *)

## References

- <https://git.kernel.org/stable/c/e9a180120e17b0a4e1df0fc2eee993cb4366e9f7>
- <https://git.kernel.org/stable/c/5c009eb82016cf1bd0994de4cede312ba947aea1>
- <https://git.kernel.org/stable/c/b3a266d262a34df1954fb8b96ae372da2a4f6245>
- <https://git.kernel.org/stable/c/adec7583abe290f8b513863cf44b9d3569962ef1>
- <https://git.kernel.org/stable/c/2877dfcc6e7aea7e9a503931931b6791c6a74b95>
- <https://git.kernel.org/stable/c/18b00e211a0aab7219f024927789b515bfc3ea00>
- <https://git.kernel.org/stable/c/e1f7e1f9e7399c2d3d6fe8ba57608e0c157dbe69>
- <https://git.kernel.org/stable/c/e4b6b865d45d8dafb6c6f28c8a993a5b4431d25a>

## Sources

- CVE List: [CVE-2026-99974](https://www.cve.org/CVERecord?id=CVE-2026-99974), CVE Terms of Use, modified 2026-11-30
- NVD: [CVE-2026-99974](https://nvd.nist.gov/vuln/detail/CVE-2026-99974), Public domain, modified 2026-11-30

---

Page: https://cve.day/CVE-2026-99974 · Whole record: https://cve.day/CVE-2026-99974.json · Rebuilt by cve.day 2026-11-30T14:33:20.698Z
