Skip to main content

Linux Kernel EUVDEUVD-2026-26555

| CVE-2026-31742 HIGH
Out-of-bounds Read (CWE-125)
2026-05-01 Linux
7.8
CVSS 3.1 · Vendor: Linux
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Open local terminal session
  2. Delivery
    Enter alternate screen mode (ESC sequences)
  3. Exploit
    Resize console to different dimensions
  4. Install
    Exit alternate screen mode
  5. C2
    Send screen-clearing CSI J sequence
  6. Execute
    Trigger out-of-bounds memory access
  7. Impact
    Kernel oops/crash or privilege escalation

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Bounds checking, read limits
MITRE ATT&CK

1 technique across 1 tactic: Collection

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Requires local authenticated access with low-privilege user account capable of opening a virtual terminal (vt) device. The attacker must be able to execute programs that control terminal state, specifically: switching to alternate screen mode via ANSI escape sequences (ESC[?1049h or similar, commonly used by full-screen terminal applications), triggering console resize operations (via ioctl TIOCSWINSZ/VT_RESIZE or window manager signals), and sending terminal control sequences (CSI J for screen clearing). The vulnerability specifically requires this sequence: enter alternate screen → resize console to different dimensions → exit alternate screen → perform screen-clearing operation. This is not a default configuration issue but requires active triggering through terminal manipulation. The virtual terminal driver (CONFIG_VT) must be enabled in the kernel, which is standard for most desktop and server distributions but may be disabled in minimal/embedded builds. Does not require root privileges, does not require physical console access (can be triggered via SSH/remote terminal sessions), and does not require specific application vulnerabilities beyond normal terminal control capabilities.

Impact

Real-world risk is moderate despite the 7.8 CVSS base score. The CVSS vector (AV:L/AC:L/PR:L/UI:N) indicates local access with low-privileged authentication required - not remotely exploitable. The EPSS score of 0.02% (4th percentile) suggests extremely low probability of mass exploitation. No CISA KEV listing confirms this remains a theoretical risk rather than observed active exploitation. The vulnerability requires specific triggering conditions: entering alternate screen mode, resizing the console, then exiting alternate screen and performing screen-clearing operations. This sequence is uncommon in typical server environments but could occur in desktop Linux systems or container/VM management scenarios involving terminal emulators. The primary impact is denial of service (kernel oops/crash), though the memory corruption nature theoretically enables privilege escalation if exploited with precision. Patches are available across multiple stable kernel branches (commits 891d790fdb5c, 428fdf55301e, 40014493cece for versions 6.18.20→6.18.22, 6.19.10→6.19.12, and mainline), indicating vendor responsiveness. Priority should be medium for systems with interactive console access; lower for headless servers with restricted local access.

Exploit ScenarioDerived

A low-privileged local attacker with console access executes a program that switches the terminal to alternate screen mode (commonly done by terminal applications like vim, less, or tmux), then programmatically resizes the console dimensions using ioctl VT_RESIZE or terminal escape sequences. The attacker then exits alternate screen mode and sends CSI J (clear screen) or similar control sequences that trigger iteration over the Unicode buffer. This causes the kernel to access memory out of bounds using current dimensions against the stale saved buffer, resulting in a kernel oops and system crash. With precise control over memory layout and buffer contents, an attacker could potentially manipulate the out-of-bounds read/write to achieve privilege escalation, though this requires significant exploitation sophistication beyond simple crash scenarios.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – May 03, 2026

Memory corruption in the Linux kernel virtual terminal (vt) subsystem allows local authenticated users to trigger kernel crashes and potentially escalate privileges. When a console switches to an alternate screen and then gets resized, the saved Unicode buffer retains stale dimensions. Upon returning to the primary screen, operations like screen clearing (csi_J) access memory out of bounds using current dimensions against the old buffer, causing kernel oops. EPSS exploitation probability is low (0.02%, 4th percentile), no active exploitation confirmed, but vendor patches are available across multiple stable kernel branches (5.x, 6.18.x, 6.19.x).

RemediationAI

Upgrade to patched Linux kernel versions: 6.18.22 or later for the 6.18 stable series, 6.19.12 or later for the 6.19 stable series, or apply upstream commits 891d790fdb5c96c6e1d2841e06ee6c360f2d1288 (mainline), 428fdf55301e6c8fa5a36b426240797b1cf86570, or 40014493cece72a0be5672cd86763e53fb3ec613 depending on your kernel branch. Distribution-specific packages should be obtained from your vendor's security advisory channels. Patch URLs: https://git.kernel.org/stable/c/891d790fdb5c96c6e1d2841e06ee6c360f2d1288 (mainline fix), https://git.kernel.org/stable/c/428fdf55301e6c8fa5a36b426240797b1cf86570, and https://git.kernel.org/stable/c/40014493cece72a0be5672cd86763e53fb3ec613. If immediate patching is not feasible, consider compensating controls: restrict local console access to trusted administrators only via PAM configuration or SELinux/AppArmor policies, disable virtual terminal allocation for untrusted users (via systemd LoginConfiguration or pam_systemd settings), and monitor kernel logs for oops messages indicating exploitation attempts. Note that disabling vt functionality may impact systems requiring console access for recovery or maintenance, requiring serial console alternatives. These mitigations reduce attack surface but do not eliminate the vulnerability - prioritize patching.

Affected VersionsENISA

Linux c4efef65a46f610418a3f69149c51492d31c8591 <891d790fdb5c96c6e1d2841e06ee6c360f2d1288
Linux 1cf66bd9127447c57295f5199029e8d8b47c6c67 <428fdf55301e6c8fa5a36b426240797b1cf86570
Linux 6.18.20 <6.18.22
Linux 6.19.10 <6.19.12
Linux 5eb608319bb56464674a71b4a66ea65c6c435d64 <40014493cece72a0be5672cd86763e53fb3ec613

Affected Packages

euvd linux fix: 6.18.22, 6.19.12

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

This vulnerability affects the Linux kernel's virtual terminal (vt) subsystem, specifically the Unicode screen buffer management during alternate screen operations. The vt driver maintains vc_uni_lines for the Unicode representation of console content. When enter_alt_screen() is called, it saves vc_uni_lines to vc_saved_uni_lines and nullifies vc_uni_lines. If vc_do_resize() executes while in alternate screen mode, it skips reallocating the Unicode buffer because vc_uni_lines is NULL, leaving vc_saved_uni_lines pointing to a buffer sized for the original console dimensions. When leave_alt_screen() restores vc_saved_uni_lines, the buffer dimensions become mismatched with current vc_rows/vc_cols values. Subsequent console operations that iterate using current dimensions (like CSI J control sequences for screen clearing) perform out-of-bounds memory access. The crash signature shows a faulting address of 0x0000002000000020 - two consecutive u32 space characters (0x20) misinterpreted as a pointer, indicating the code read beyond a 25-entry pointer array in an 80x25 buffer when accessing with 240x67 dimensions. This is a classic use-after-free/buffer dimension mismatch bug in kernel memory management.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (Linux) PRIMARY 7.8 HIGH
AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
SUSE HIGH
Red Hat 5.5 MEDIUM

Primary rating from Vendor (Linux).

CVSS VectorVendor: Linux

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

4
CVSS changed
May 03, 2026 - 07:22 NVD
7.8 (HIGH)
Patch released
May 03, 2026 - 07:16 nvd
Patch available
Patch available
May 01, 2026 - 16:02 EUVD
CVE Published
May 01, 2026 - 14:14 nvd
HIGH 7.8

DescriptionCVE.org

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.

Executive ViewAI

Why It Matters

CVE-2026-31742 is a memory corruption vulnerability in the Linux kernel's virtual terminal subsystem that allows authenticated local users to crash systems and potentially gain elevated privileges. Organizations running affected Linux kernels should prioritize patching to prevent service disruptions and unauthorized privilege escalation by malicious insiders or compromised accounts with local access.

Business Impact: High
Compensating Controls

Apply vendor patch. Interim mitigations pending patch deployment: restrict local console/TTY access to trusted administrators only, disable unnecessary local user accounts, and monitor kernel logs for vt subsystem errors or unexpected oops messages.

Threat Intelligence Overview

EPSS Score
0.0%
Top 96% exploitable
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact
High

Priority Score

39
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +39
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

Vendor StatusVendor

SUSE

Severity: High
Product Status
SUSE Linux Enterprise Desktop 15 SP7 Fixed
SUSE Linux Enterprise Desktop 15 SP7 Fixed
SUSE Linux Enterprise High Availability Extension 15 SP7 Fixed
SUSE Linux Enterprise High Availability Extension 15 SP7 Fixed
SUSE Linux Enterprise High Performance Computing 15 SP7 Fixed

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy