Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2026-31742

published high CVSS 3.1 · 7.8

vt: discard stale unicode buffer on alt screen exit after resize

Published
01 May 2026, 14:14:37 UTC
Updated
19 Oct 2026, 19:06:07 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linuxc4efef65a46f610418a3f69149c51492d31c8591 to < 891d790fdb5c96c6e1d2841e06ee6c360f2d1288 · 1cf66bd9127447c57295f5199029e8d8b47c6c67 to < 428fdf55301e6c8fa5a36b426240797b1cf86570 · 5eb608319bb56464674a71b4a66ea65c6c435d64 to < 40014493cece72a0be5672cd86763e53fb3ec613 · Other versions: unaffected Affected Not stated Linux
Linux — Linux6.18.20 to < 6.18.22 · 6.19.10 to < 6.19.12 · Other versions: unaffected Affected Not stated Linux
Amazon Linux AL2 Release evaluation Not Affected Not required Amazon Linux assessment
Amazon Linux AL2023 Release evaluation Not Affected Not required Amazon Linux assessment
Amazon Linux AL2023 Release evaluationALAS2023-2026-1746 Fixed Not stated Amazon Linux assessment
Amazon Linux AL2023 kernel6.18aarch64 Listed in advisory Not stated ALAS2023-2026-1746
Amazon Linux AL2023 kernel6.18src Listed in advisory Not stated ALAS2023-2026-1746
Amazon Linux AL2023 kernel6.18x86_64 Listed in advisory Not stated ALAS2023-2026-1746

Description

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.

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

1

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
7.8 / 10
Severity
high
Provider
Linux · cna
Vector string
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Scenarios
en: AV:L - The vulnerable VT code is reached by local writes/ioctls to a Linux virtual console tty, not by network packets or adjacent protocols. AC:L - An attacker can deterministically create the stale unicode buffer by allocating it, entering alt screen, resizing with TIOCSWINSZ, leaving alt screen, and issuing a screen-clear/read operation. PR:L - The path is reachable by an unprivileged local user who owns or can write to a virtual console tty; TIOCSWINSZ has no capability check on this path. UI:N - No separate victim action is required once the attacker has local tty access; the attacker drives the escape sequences and resize directly. S:U - The impact is within the same kernel/host security authority and does not cross a VM, IOMMU, or sandbox boundary. C:H - The stale dimensions can make unicode-buffer users perform out-of-bounds reads from kernel memory, including via unicode screen-buffer access paths; per the required guidance, OOB reads are scored High unless strictly bounded. I:H - The stale row pointers/row lengths can drive out-of-bounds kernel writes during unicode screen clearing, so this is kernel memory corruption and is scored High under the required guidance. A:H - The demonstrated impact is a kernel oops/page fault in csi_J, and the local trigger can be repeated to crash the system.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux c4efef65a46f610418a3f69149c51492d31c8591 to < 891d790fdb5c96c6e1d2841e06ee6c360f2d1288 (affected · git)1cf66bd9127447c57295f5199029e8d8b47c6c67 to < 428fdf55301e6c8fa5a36b426240797b1cf86570 (affected · git)5eb608319bb56464674a71b4a66ea65c6c435d64 to < 40014493cece72a0be5672cd86763e53fb3ec613 (affected · git)Default: unaffected Linux · cna
Linux Linux 6.18.20 to < 6.18.22 (affected · semver)6.19.10 to < 6.19.12 (affected · semver)Default: unaffected Linux · cna

Weaknesses

1
  • CWE-125 CWE-125 Out-of-bounds Read (CISA-ADP · adp)

References

3

Provider assertions

2

Linux · cna

vt: discard stale unicode buffer on alt screen exit after resize

CISA-ADP · adp

CISA ADP Vulnrichment

Provenance

Schema
5.2
Searchable
yes
Content hash
984a9560f1457d166d14d05bfa76e704b230e10bcac752f8fab94e885d4a95e3
Ingested
19 Oct 2026, 19:18:18 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected