The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-31742

CVE-2026-31742: Linux Kernel Buffer Overflow Vulnerability

CVE-2026-31742 is a buffer overflow vulnerability in the Linux kernel's virtual terminal code that triggers when resizing consoles in alternate screen mode. This article covers technical details, affected versions, and mitigation.

Published: May 7, 2026

CVE-2026-31742 Overview

CVE-2026-31742 is an out-of-bounds memory access vulnerability in the Linux kernel virtual terminal (vt) subsystem. The flaw resides in the alternate screen handling logic, where a stale unicode buffer can be restored after a console resize. When enter_alt_screen() saves vc_uni_lines into vc_saved_uni_lines and a subsequent vc_do_resize() runs while in the alternate screen, the saved buffer retains the original dimensions. After leave_alt_screen() restores the buffer, operations such as csi_J iterate using mismatched row and column counts, triggering a kernel oops.

Critical Impact

Local attackers can trigger an out-of-bounds read in the kernel (csi_J+0x133/0x2d0), causing system crashes and potential memory disclosure on affected Linux systems.

Affected Products

  • Linux Kernel (multiple stable branches)
  • Linux Kernel 7.0-rc5
  • Linux Kernel 7.0-rc6

Discovery Timeline

  • 2026-05-01 - CVE CVE-2026-31742 published to NVD
  • 2026-05-07 - Last updated in NVD database

Technical Details for CVE-2026-31742

Vulnerability Analysis

The vulnerability is classified as an out-of-bounds read [CWE-125] in the Linux kernel virtual terminal driver. The vt subsystem maintains two unicode line buffers: vc_uni_lines for the active screen and vc_saved_uni_lines for state preserved while the alternate screen is in use. The bug stems from inconsistent state synchronization between these buffers when a terminal resize occurs during alternate screen mode.

When enter_alt_screen() executes, it transfers vc_uni_lines into vc_saved_uni_lines and nulls the active pointer. If userspace then resizes the console, vc_do_resize() checks vc_uni_lines and skips reallocation because the pointer is NULL. The saved buffer keeps its original geometry, for example 80x25, while vc_rows and vc_cols are updated to new dimensions such as 240x67.

Root Cause

The root cause is missing dimension validation when restoring the saved unicode buffer. leave_alt_screen() restores vc_saved_uni_lines to vc_uni_lines without verifying that the saved buffer's geometry matches the current vc_rows and vc_cols. The fix discards the stale saved buffer when console dimensions changed during alternate screen mode, allowing vc_uniscr_check() to lazily rebuild the unicode screen with correct dimensions.

Attack Vector

A local user with access to a virtual terminal can trigger the condition by entering the alternate screen, resizing the terminal, and exiting back to the primary screen. Subsequent screen-clearing operations such as csi_J iterate the unicode buffer using current dimensions while the underlying memory was allocated for the original dimensions. The faulting address 0x0000002000000020 corresponds to two adjacent u32 space characters interpreted as a pointer, demonstrating that out-of-bounds row pointer dereferences occur past the end of the original 25-entry pointer array.

The vulnerability mechanism is documented in the upstream commits. See the kernel patch commit 891d790fdb5c for the authoritative fix.

Detection Methods for CVE-2026-31742

Indicators of Compromise

  • Kernel oops messages referencing csi_J+0x133/0x2d0 in dmesg or /var/log/kern.log.
  • Page fault entries with addresses resembling repeated ASCII patterns such as 0x0000002000000020.
  • Unexpected virtual terminal crashes following terminal resize operations within tmux, screen, or full-screen TUI applications.

Detection Strategies

  • Monitor kernel logs for BUG: unable to handle page fault messages originating from the vt subsystem.
  • Audit running kernel versions against the patched commits 40014493cece, 428fdf55301e, and 891d790fdb5c.
  • Correlate local user sessions with kernel crash events involving virtual console drivers.

Monitoring Recommendations

  • Forward kernel.* syslog facility entries to a centralized log platform for crash pattern analysis.
  • Enable kdump to capture crash dumps for forensic review when the vt subsystem faults.
  • Track unprivileged process activity on systems exposing physical or serial consoles.

How to Mitigate CVE-2026-31742

Immediate Actions Required

  • Apply the upstream Linux kernel patches referenced in the stable tree commits as soon as distribution packages become available.
  • Inventory all Linux hosts running kernel 7.0-rc5, 7.0-rc6, and affected stable branches.
  • Restrict local console access to trusted users on multi-user systems until patching completes.

Patch Information

The fix has been merged into the stable Linux kernel tree across three commits: 40014493cece, 428fdf55301e, and 891d790fdb5c. The patch modifies leave_alt_screen() to free the stale saved unicode buffer when console dimensions changed during alternate screen mode, allowing vc_uniscr_check() to rebuild the buffer with correct geometry on next use.

Workarounds

  • Disable use of the kernel virtual terminal where feasible by booting with vga=normal or relying on serial consoles.
  • Limit shell access on affected systems to reduce local attack surface until kernel updates are deployed.
  • Avoid running interactive workloads that combine alternate screen applications with console resizing on unpatched kernels.
bash
# Verify running kernel version and check for the fix
uname -r

# After updating, confirm the patched commit is included (distribution-specific)
rpm -q --changelog kernel | grep -i "vt: discard stale unicode buffer"
# or on Debian/Ubuntu
apt changelog linux-image-$(uname -r) | grep -i "vt: discard stale unicode buffer"

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeBuffer Overflow

  • Vendor/TechLinux Kernel

  • SeverityHIGH

  • CVSS Score7.8

  • EPSS Probability0.01%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-125
  • Vendor Resources
  • Kernel Update Commit

  • Kernel Update Commit

  • Kernel Update Commit
  • Related CVEs
  • CVE-2026-31743: Linux Kernel Buffer Overflow Vulnerability

  • CVE-2026-43051: Linux Kernel Buffer Overflow Vulnerability

  • CVE-2026-31774: Linux Kernel Buffer Overflow Vulnerability

  • CVE-2026-31776: Linux Kernel Buffer Overflow Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English