CVE-2026-53402
fbdev: fbcon: fix out-of-bounds read in err_out of fbcon_do_set_font()
Reported by linux · Published July 19, 2026
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| bpftool6.18 | Amazon Linux | 1:6.18.39-79.141.amzn2023 |
| kernel-modules-extra-common | Amazon Linux | 1:6.1.180-225.360.amzn2023 |
| kernel6.18-headers | Amazon Linux | 1:6.18.39-79.141.amzn2023 |
| kernel-livepatch-6.1.180-225.360 | Amazon Linux | 1:1.0-0.amzn2023 |
| linux_kernel | linux | 7.1.3, 6.18.39, 6.12.96, 6.6.145, 6.1.178, 6.0, 5.15.212, 5.10.261 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 868749a7456dc48e93887a8474194e2ee6d6c21f, ebd6f886aa2447fcfcdce5450c9e1028e1d681bb, a5a923038d70d2d4a86cb4e3f32625a5ee6e7e24 |
| Linux | Linux | 6.0, 0, 5.10.261 |
| amazon:2023 | bpftool6.18 | 0 |
| amazon:2023 | kernel-modules-extra-common | 0 |
| amazon:2023 | kernel6.18-headers | 0 |
| amazon:2023 | kernel-livepatch-6.1.180-225.360 | 0 |
| linux | linux_kernel | 5.15.64, 5.10.249, 6.0 |
| chainguard | linux-vmware-6.18 | 0 |
| amazon:2023 | kernel-tools-devel | 0 |
| Linux | Linux | 7.2, *, * |
| amazon:2023 | python3-perf | 0 |
| chainguard | linux-aws-6.18 | 0 |
| amazon:2023 | kernel-headers | 0 |
| amazon:2023 | kernel6.18-tools | 0 |
| amazon:2023 | perf | 0 |
| amazon:2023 | python3-perf6.18 | 0 |
| chainguard | linux-gcp-6.18 | 0 |
| amazon:2023 | kernel6.12-modules-extra-common | 0 |
| amazon:2023 | kernel6.12 | 0 |
| amazon:2023 | kernel6.18-tools-devel | 0 |
…and 26 more
Timeline
- Jul 19, 2026 Coalition ESS Score
- Jul 19, 2026 CVE Published
- Jul 20, 2026 Security Advisory (31 in total, the first dated here)
- Aug 7, 2026 EPSS Score (8 in total, the first dated here)
- Aug 12, 2026 Distribution Patch (30 in total, the first dated here)
- Sep 16, 2026 CVE Updated
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2026-53402
vulnetix vdb fixes CVE-2026-53402
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-53402/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart