In the Linux kernel, the following vulnerability has been resolved: fbdev: fbcon: fix out-of-bounds read in err_out of fbcon_do_set_font() When… (CVE-2026-53402)
In the Linux kernel, the following vulnerability has been resolved: fbdev: fbcon: fix out-of-bounds read in err_out of fbcon_do_set_font() When fbcon_do_set_font() fails (e.g., due to a memory allocation failure inside vc_resize() under heavy memory pressure), it jumps to the `err_out` label to roll back the console state. However, the current rollback logic forgets to restore the `hi_font` state, leading to a severe state machine corruption. Earlier in the function, `set_vc_hi_font()` might be called to change `vc->vc_hi_font_mask` and mutate the screen buffer. If `vc_resize()` subsequently fails, the `err_out` path restores `vc_font.charcount` but entirely skips rolling back the `vc_hi_font_mask` and the screen buffer. This mismatch leaves the terminal in a desynchronized state. Because `vc_hi_font_mask` remains set, the VT subsystem will still accept character indices greater than 255 from userspace and write them to the screen buffer. Subsequent rendering calls (e.g., `fbcon_putcs()`) will then use these inflated indices to access the reverted, 256-character font array, leading to a deterministic out-of-bounds read and potential kernel memory disclosure. Fix this by adding the missing rollback logic for the `hi_font` mask and screen buffer in the error path.
AI Analysis
Technical Summary
The Linux kernel fbcon subsystem had a vulnerability where the error path in fbcon_do_set_font() failed to restore the hi_font mask and screen buffer after a failure in vc_resize(), causing a state machine corruption. Because the hi_font mask remained set, the VT subsystem accepted character indices beyond 255 and wrote them to the screen buffer. Subsequent rendering used these indices to access a reverted 256-character font array, resulting in a deterministic out-of-bounds read and potential kernel memory disclosure. The fix adds the missing rollback logic to the error path to prevent this desynchronization.
Potential Impact
This vulnerability can lead to a deterministic out-of-bounds read in kernel memory, potentially disclosing sensitive kernel memory contents. It affects the framebuffer console subsystem, which could be exploited by local userspace processes interacting with the VT subsystem. There is no indication of remote exploitation or privilege escalation in the provided data.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. The fix involves adding rollback logic for the hi_font mask and screen buffer in the error path of fbcon_do_set_font(). Until an official patch is confirmed, avoid triggering font changes under heavy memory pressure or restrict untrusted userspace access to the VT subsystem.
In the Linux kernel, the following vulnerability has been resolved: fbdev: fbcon: fix out-of-bounds read in err_out of fbcon_do_set_font() When… (CVE-2026-53402)
Description
In the Linux kernel, the following vulnerability has been resolved: fbdev: fbcon: fix out-of-bounds read in err_out of fbcon_do_set_font() When fbcon_do_set_font() fails (e.g., due to a memory allocation failure inside vc_resize() under heavy memory pressure), it jumps to the `err_out` label to roll back the console state. However, the current rollback logic forgets to restore the `hi_font` state, leading to a severe state machine corruption. Earlier in the function, `set_vc_hi_font()` might be called to change `vc->vc_hi_font_mask` and mutate the screen buffer. If `vc_resize()` subsequently fails, the `err_out` path restores `vc_font.charcount` but entirely skips rolling back the `vc_hi_font_mask` and the screen buffer. This mismatch leaves the terminal in a desynchronized state. Because `vc_hi_font_mask` remains set, the VT subsystem will still accept character indices greater than 255 from userspace and write them to the screen buffer. Subsequent rendering calls (e.g., `fbcon_putcs()`) will then use these inflated indices to access the reverted, 256-character font array, leading to a deterministic out-of-bounds read and potential kernel memory disclosure. Fix this by adding the missing rollback logic for the `hi_font` mask and screen buffer in the error path.
CVSS v3.1
Score 7.1high
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The Linux kernel fbcon subsystem had a vulnerability where the error path in fbcon_do_set_font() failed to restore the hi_font mask and screen buffer after a failure in vc_resize(), causing a state machine corruption. Because the hi_font mask remained set, the VT subsystem accepted character indices beyond 255 and wrote them to the screen buffer. Subsequent rendering used these indices to access a reverted 256-character font array, resulting in a deterministic out-of-bounds read and potential kernel memory disclosure. The fix adds the missing rollback logic to the error path to prevent this desynchronization.
Potential Impact
This vulnerability can lead to a deterministic out-of-bounds read in kernel memory, potentially disclosing sensitive kernel memory contents. It affects the framebuffer console subsystem, which could be exploited by local userspace processes interacting with the VT subsystem. There is no indication of remote exploitation or privilege escalation in the provided data.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. The fix involves adding rollback logic for the hi_font mask and screen buffer in the error path of fbcon_do_set_font(). Until an official patch is confirmed, avoid triggering font changes under heavy memory pressure or restrict untrusted userspace access to the VT subsystem.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-jxr7-x2hm-5g42
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-53402"]
- Ecosystems
- []
- Database Specific Severity
- null
- Cvss Version
- 3.1
Threat ID: 6a5d27ad2a4a8d59891318d5
Added to database: 07/19/2026, 19:38:21 UTC
Last enriched: 07/19/2026, 20:20:19 UTC
Last updated: 09/03/2026, 22:52:12 UTC
Views: 64
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.