{"id":"CVE-2026-99974","aliases":["CVE-2026-99974"],"related":[],"kind":"vulnerability","state":"published","title":"fbcon: Rebuild rotated font buffer on font change","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nfbcon: Rebuild rotated font buffer on font change\n\nfbcon_rotate_font() caches a rotated copy of the console font in\npar->rotated.buf. The buffer is sized from the font's width, height\nand charcount, and is rebuilt in fbcon_init(), fbcon_switch() and\nfbcon_modechanged(), but not in fbcon_do_set_font().\n\nWhen the font is changed through KDFONTOP, the new geometry is\ninstalled and vc_resize() redraws before the buffer is rebuilt. The\nrotated putcs/cursor ops then index the old buffer with the new cell\nsize; KASAN reports a slab-out-of-bounds read in soft_cursor().\n\nRebuild the buffer for the visible console before the redraw, as the\nother callers do: select the console's blitting state with\nset_blitting_type() (which also uploads the new font's map on\ntile-blitting hardware), then rebuild. Background consoles keep\ntheir rebuild at fbcon_switch() time, as the buffer is shared per\nframebuffer and must not be updated for a console that is not being\ndisplayed.\n\nTo ensure a correct rollback when the rebuild or the following\nvc_resize() fails, save the rotated font state, clear it before\nrebuilding, and restore it in the error path of\nfbcon_do_set_font().","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nfbcon: Rebuild rotated font buffer on font change\n\nfbcon_rotate_font() caches a rotated copy of the console font in\npar->rotated.buf. The buffer is sized from the font's width, height\nand charcount, and is rebuilt in fbcon_init(), fbcon_switch() and\nfbcon_modechanged(), but not in fbcon_do_set_font().\n\nWhen the font is changed through KDFONTOP, the new geometry is\ninstalled and vc_resize() redraws before the buffer is rebuilt. The\nrotated putcs/cursor ops then index the old buffer with the new cell\nsize; KASAN reports a slab-out-of-bounds read in soft_cursor().\n\nRebuild the buffer for the visible console before the redraw, as the\nother callers do: select the console's blitting state with\nset_blitting_type() (which also uploads the new font's map on\ntile-blitting hardware), then rebuild. Background consoles keep\ntheir rebuild at fbcon_switch() time, as the buffer is shared per\nframebuffer and must not be updated for a console that is not being\ndisplayed.\n\nTo ensure a correct rollback when the rebuild or the following\nvc_resize() fails, save the rotated font state, clear it before\nrebuilding, and restore it in the error path of\nfbcon_do_set_font().","source":"cvelist"}],"published":"2026-11-30T13:18:47.436Z","modified":"2026-11-30T14:20:39.833Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"6cc50e1c5b57180fd37a31282000f43859b0fe73","fixed":"e9a180120e17b0a4e1df0fc2eee993cb4366e9f7","status":"affected"},{"type":"git","introduced":"6cc50e1c5b57180fd37a31282000f43859b0fe73","fixed":"5c009eb82016cf1bd0994de4cede312ba947aea1","status":"affected"},{"type":"git","introduced":"6cc50e1c5b57180fd37a31282000f43859b0fe73","fixed":"b3a266d262a34df1954fb8b96ae372da2a4f6245","status":"affected"},{"type":"git","introduced":"6cc50e1c5b57180fd37a31282000f43859b0fe73","fixed":"adec7583abe290f8b513863cf44b9d3569962ef1","status":"affected"},{"type":"git","introduced":"6cc50e1c5b57180fd37a31282000f43859b0fe73","fixed":"2877dfcc6e7aea7e9a503931931b6791c6a74b95","status":"affected"},{"type":"git","introduced":"6cc50e1c5b57180fd37a31282000f43859b0fe73","fixed":"18b00e211a0aab7219f024927789b515bfc3ea00","status":"affected"},{"type":"git","introduced":"6cc50e1c5b57180fd37a31282000f43859b0fe73","fixed":"e1f7e1f9e7399c2d3d6fe8ba57608e0c157dbe69","status":"affected"},{"type":"git","introduced":"6cc50e1c5b57180fd37a31282000f43859b0fe73","fixed":"e4b6b865d45d8dafb6c6f28c8a993a5b4431d25a","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"2.6.15","status":"affected"},{"type":"semver","introduced":"0","fixed":"2.6.15","status":"unaffected"},{"type":"semver","introduced":"5.10.275","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.226","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.193","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.163","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.119","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.65","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.3.4","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/e9a180120e17b0a4e1df0fc2eee993cb4366e9f7","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/5c009eb82016cf1bd0994de4cede312ba947aea1","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b3a266d262a34df1954fb8b96ae372da2a4f6245","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/adec7583abe290f8b513863cf44b9d3569962ef1","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2877dfcc6e7aea7e9a503931931b6791c6a74b95","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/18b00e211a0aab7219f024927789b515bfc3ea00","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e1f7e1f9e7399c2d3d6fe8ba57608e0c157dbe69","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e4b6b865d45d8dafb6c6f28c8a993a5b4431d25a","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-99974","url":"https://www.cve.org/CVERecord?id=CVE-2026-99974","licence":"CVE Terms of Use","modified":"2026-11-30T13:18:47.436Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-99974","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99974","licence":"Public domain","modified":"2026-11-30T14:20:39.833Z"}],"updatedAt":"2026-11-30T14:33:20.698Z","epss":{"score":0.00325,"percentile":0.27621,"date":"2026-12-01T12:00:22.000Z"}}