VDB

CVE-2026-53402

CVE-2026-53402 PUBLISHED CVSS 7.1 HIGH

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.

PackageEcosystemFixed in
bpftool6.18Amazon Linux1:6.18.39-79.141.amzn2023
kernel-modules-extra-commonAmazon Linux1:6.1.180-225.360.amzn2023
kernel6.18-headersAmazon Linux1:6.18.39-79.141.amzn2023
kernel-livepatch-6.1.180-225.360Amazon Linux1:1.0-0.amzn2023
linux_kernellinux7.1.3, 6.18.39, 6.12.96, 6.6.145, 6.1.178, 6.0, 5.15.212, 5.10.261

Risk scores

CVSS 3.1
7.1
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H

Affected products

VendorProductVersions
LinuxLinux868749a7456dc48e93887a8474194e2ee6d6c21f, ebd6f886aa2447fcfcdce5450c9e1028e1d681bb, a5a923038d70d2d4a86cb4e3f32625a5ee6e7e24
LinuxLinux6.0, 0, 5.10.261
amazon:2023bpftool6.180
amazon:2023kernel-modules-extra-common0
amazon:2023kernel6.18-headers0
amazon:2023kernel-livepatch-6.1.180-225.3600
linuxlinux_kernel5.15.64, 5.10.249, 6.0
chainguardlinux-vmware-6.180
amazon:2023kernel-tools-devel0
LinuxLinux7.2, *, *
amazon:2023python3-perf0
chainguardlinux-aws-6.180
amazon:2023kernel-headers0
amazon:2023kernel6.18-tools0
amazon:2023perf0
amazon:2023python3-perf6.180
chainguardlinux-gcp-6.180
amazon:2023kernel6.12-modules-extra-common0
amazon:2023kernel6.120
amazon:2023kernel6.18-tools-devel0

…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

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›