CVE Catalog

CVE-2026-31742

High
Published: Translated: NVD NIST

Summary

A vulnerability has been identified in the Linux kernel that occurs when switching to an alternate screen after resizing. The issue is that the old Unicode buffer is not properly discarded, leading to memory errors when restoring the screen state.

Risk Assessment

An attacker could exploit this vulnerability to trigger a kernel oops, potentially leading to system crashes or unauthorized memory access. This could affect the stability and security of the system.

Recommendation

It is recommended to update the Linux kernel to the latest version where this vulnerability has been fixed. Additionally, monitor systems for unauthorized activities.

Other vulnerabilities in Linux kernel

See all
Original NVD description (English source)

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 po

Vulnerability data from NVD (NIST) · CISA KEV · EPSS