CVE-2026-31742·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: vt: discard stale unicode buffer on alt screen exit after resize When enter_alt_screen() saves vc_uni_lines into vc_saved_uni_lines and sets vc_uni_lines to NULL, a subsequent console resize via vc_do_resize() skips reallocating the unicode buffer because vc_uni_lines is NULL. However, vc_saved_uni_lines still points to the old buffer allocated for the original dimensions. When leave_alt_screen() later restores vc_saved_uni_lines, the buffer dimensions no longer match vc_rows/vc_cols. Any operation that iterates over the unicode buffer using the current dimensions (e.g. csi_J clearing the screen) will access memory out of bounds, causing a kernel oops: BUG: unable to handle page fault for address: 0x0000002000000020 RIP: 0010:csi_J+0x133/0x2d0 The faulting address 0x0000002000000020 is two adjacent u32 space characters (0x20) interpreted as a pointer, read from the row data area past the end of the 25-entry pointer array in a buffer allocated for 80x25 but accessed with 240x67 dimensions. Fix this by checking whether the console dimensions changed while in the alternate screen. If they did, free the stale saved buffer instead of restoring it. The unicode screen will be lazily rebuilt via vc_uniscr_check() when next needed.
- Severity
- high
- Software
- Kernel
- Fixed in
- 6.19.12
- Published
How likely is exploitation
FIRST's Exploit Prediction Scoring System puts the probability of this CVE being exploited in the next 30 days at 0.13% — higher than 2% of all published CVEs. EPSS is an independent forecast of exploitation, not a severity rating: it says nothing about how much damage a successful attack does, which is what a CVSS score measures.
Read the two together. CVE-2026-31742 scores 7.8 on CVSS, so a successful attack would be serious — but at 0.13%, almost nobody is currently attempting it. That is a different situation from a flaw under mass exploitation, and it is usually the difference between patching on your next maintenance window and patching tonight.
Affected versions
From: 6.19.10
Until: 6.19.12
Fixed in: 6.19.12
How to fix this CVE
Update your Linux kernel to version 6.19.12 or later to resolve this memory safety issue affecting the virtual terminal unicode buffer management. This vulnerability causes kernel panics when resizing the console while in alternate screen mode, and can be fixed by applying the latest stable kernel patch available for your distribution.
sudo dnf update kernel kernel-headersDefensia detects this vulnerability
How to check if you are affected
- Check installed kernel version: uname -r (compare against 6.19.10-6.19.12 range)
- Verify if VT (virtual terminal) subsystem is in use: grep -i vt /var/log/dmesg | head -20
- Search system logs for memory faults related to csi_J: grep -i 'csi_J\|page fault' /var/log/kern.log or journalctl -k | grep -i 'csi_J\|page fault'
- Confirm patch applied by verifying kernel version is 6.19.12 or newer after reboot: uname -r
FAQ
What is CVE-2026-31742?
CVE-2026-31742 is a kernel memory safety vulnerability in the Linux virtual terminal (VT) subsystem where resizing the console while using alternate screen mode causes the unicode buffer to become misaligned with actual screen dimensions, leading to out-of-bounds memory access and kernel panics.
Is CVE-2026-31742 being actively exploited?
No, this vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog and no public exploits are available. However, the high CVSS score (7.8) reflects the severity of potential denial-of-service impact.
What versions of Kernel are affected by CVE-2026-31742?
Linux kernel versions 6.19.10 through 6.19.12 are affected. The vulnerability was resolved in kernel 6.19.12 and later stable releases.
How do I check if my server is vulnerable to CVE-2026-31742?
Run `uname -r` and check if your kernel version falls within 6.19.10-6.19.12. If it does, your system is vulnerable until you apply the patch.
Does Defensia detect CVE-2026-31742?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If Kernel is installed on a monitored server, CVE-2026-31742 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2026-31742. Free for 1 server.
Get started free