{"id":"CVE-2026-53402","aliases":["CVE-2026-53402"],"related":[],"kind":"vulnerability","state":"published","title":"fbdev: fbcon: fix out-of-bounds read in err_out of fbcon_do_set_font()","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nfbdev: fbcon: fix out-of-bounds read in err_out of fbcon_do_set_font()\n\nWhen fbcon_do_set_font() fails (e.g., due to a memory allocation failure\ninside vc_resize() under heavy memory pressure), it jumps to the `err_out`\nlabel to roll back the console state. However, the current rollback logic\nforgets to restore the `hi_font` state, leading to a severe state machine\ncorruption.\n\nEarlier in the function, `set_vc_hi_font()` might be called to change\n`vc->vc_hi_font_mask` and mutate the screen buffer. If `vc_resize()`\nsubsequently fails, the `err_out` path restores `vc_font.charcount`\nbut entirely skips rolling back the `vc_hi_font_mask` and the screen\nbuffer.\n\nThis mismatch leaves the terminal in a desynchronized state. Because\n`vc_hi_font_mask` remains set, the VT subsystem will still accept\ncharacter indices greater than 255 from userspace and write them to the\nscreen buffer. Subsequent rendering calls (e.g., `fbcon_putcs()`) will\nthen use these inflated indices to access the reverted, 256-character\nfont array, leading to a deterministic out-of-bounds read and potential\nkernel memory disclosure.\n\nFix this by adding the missing rollback logic for the `hi_font` mask\nand screen buffer in the error path.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nfbdev: fbcon: fix out-of-bounds read in err_out of fbcon_do_set_font()\n\nWhen fbcon_do_set_font() fails (e.g., due to a memory allocation failure\ninside vc_resize() under heavy memory pressure), it jumps to the `err_out`\nlabel to roll back the console state. However, the current rollback logic\nforgets to restore the `hi_font` state, leading to a severe state machine\ncorruption.\n\nEarlier in the function, `set_vc_hi_font()` might be called to change\n`vc->vc_hi_font_mask` and mutate the screen buffer. If `vc_resize()`\nsubsequently fails, the `err_out` path restores `vc_font.charcount`\nbut entirely skips rolling back the `vc_hi_font_mask` and the screen\nbuffer.\n\nThis mismatch leaves the terminal in a desynchronized state. Because\n`vc_hi_font_mask` remains set, the VT subsystem will still accept\ncharacter indices greater than 255 from userspace and write them to the\nscreen buffer. Subsequent rendering calls (e.g., `fbcon_putcs()`) will\nthen use these inflated indices to access the reverted, 256-character\nfont array, leading to a deterministic out-of-bounds read and potential\nkernel memory disclosure.\n\nFix this by adding the missing rollback logic for the `hi_font` mask\nand screen buffer in the error path.","source":"cvelist"}],"published":"2026-07-19T12:02:01.795Z","modified":"2026-10-19T20:19:19.077Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H","score":7.1,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H","score":7.1,"rating":"HIGH"}],"cwes":["CWE-125"],"affected":[{"ranges":[{"type":"git","introduced":"868749a7456dc48e93887a8474194e2ee6d6c21f","fixed":"cb016bcb40c81e7b19c4ae6143babb366dae8e20","status":"affected"},{"type":"git","introduced":"ebd6f886aa2447fcfcdce5450c9e1028e1d681bb","fixed":"ac562193c36696513ae196171892e9338475c4bc","status":"affected"},{"type":"git","introduced":"a5a923038d70d2d4a86cb4e3f32625a5ee6e7e24","fixed":"3618a4c5b2591cfa83efe74f5b18c2d02b35c3f5","status":"affected"},{"type":"git","introduced":"a5a923038d70d2d4a86cb4e3f32625a5ee6e7e24","fixed":"a7a526fbc847f07ad3a503c7382189be5ab68574","status":"affected"},{"type":"git","introduced":"a5a923038d70d2d4a86cb4e3f32625a5ee6e7e24","fixed":"b5bb2c696e140c399cb874def2feedf61dee27d6","status":"affected"},{"type":"git","introduced":"a5a923038d70d2d4a86cb4e3f32625a5ee6e7e24","fixed":"076b1aa65f77a49bce5a48a4a55a397cfcafa2b8","status":"affected"},{"type":"git","introduced":"a5a923038d70d2d4a86cb4e3f32625a5ee6e7e24","fixed":"39815715cbcfabb16fc8c5f4a23deeda20f5df62","status":"affected"},{"type":"git","introduced":"a5a923038d70d2d4a86cb4e3f32625a5ee6e7e24","fixed":"8fdc8c2057eea08d40ce2c8eed41ff9e451c65c2","status":"affected"},{"type":"git","version":"f08ccb792d3eaf1dc62d8cbf6a30d6522329f660","status":"affected"},{"type":"semver","introduced":"5.10.249","fixed":"5.10.261","status":"affected"},{"type":"semver","introduced":"5.15.64","fixed":"5.15.212","status":"affected"},{"type":"semver","introduced":"5.19.6","fixed":"5.20","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.0","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.0","status":"unaffected"},{"type":"semver","introduced":"5.10.261","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.212","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.178","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.145","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.96","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.39","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.1.3","lastAffected":"7.1.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.2","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"5.10.249","fixed":"5.10.261"},{"status":"affected","introduced":"5.15.64","fixed":"5.15.212"},{"status":"affected","introduced":"5.19.6","fixed":"6.0"},{"status":"affected","introduced":"6.0.1","fixed":"6.1.178"},{"status":"affected","introduced":"6.2","fixed":"6.6.145"},{"status":"affected","introduced":"6.7","fixed":"6.12.96"},{"status":"affected","introduced":"6.13","fixed":"6.18.39"},{"status":"affected","introduced":"6.19","fixed":"7.1.3"},{"status":"affected","version":"6.0"},{"status":"affected","version":"6.0"},{"status":"affected","version":"6.0"},{"status":"affected","version":"6.0"},{"status":"affected","version":"6.0"},{"status":"affected","version":"6.0"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/cb016bcb40c81e7b19c4ae6143babb366dae8e20","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ac562193c36696513ae196171892e9338475c4bc","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/3618a4c5b2591cfa83efe74f5b18c2d02b35c3f5","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a7a526fbc847f07ad3a503c7382189be5ab68574","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b5bb2c696e140c399cb874def2feedf61dee27d6","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/076b1aa65f77a49bce5a48a4a55a397cfcafa2b8","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/39815715cbcfabb16fc8c5f4a23deeda20f5df62","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/8fdc8c2057eea08d40ce2c8eed41ff9e451c65c2","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-10-16T15:30:33.058Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-53402","url":"https://www.cve.org/CVERecord?id=CVE-2026-53402","licence":"CVE Terms of Use","modified":"2026-10-19T20:07:47.003Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-53402","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-53402","licence":"Public domain","modified":"2026-10-19T20:19:19.077Z"}],"updatedAt":"2026-11-25T22:59:28.705Z","epss":{"score":0.00171,"percentile":0.06814,"date":"2026-12-01T12:00:22.000Z"}}