A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
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-31559

CVE-2026-31559: Linux Kernel Memory Allocation Vulnerability

CVE-2026-31559 is a memory allocation flaw in Linux Kernel affecting LoongArch architecture that could cause kernel crashes during boot. This article covers the technical details, affected versions, and mitigation strategies.

Published: April 30, 2026

CVE-2026-31559 Overview

CVE-2026-31559 is a Null Pointer Dereference vulnerability in the Linux kernel affecting the LoongArch architecture. The vulnerability exists due to missing NULL checks for kstrdup() function calls during early boot when parsing CPU model information from the device tree. When memory allocation fails during this critical initialization phase, the kernel may encounter a NULL pointer dereference, leading to a kernel oops (crash).

The fix addresses two related issues: replacing of_find_node_by_path("/") with of_root to avoid multiple calls to of_node_put(), and adding proper NULL checks to prevent kernel crashes when memory allocation fails during device tree parsing.

Critical Impact

A local attacker with low privileges could potentially trigger a denial of service condition by causing memory allocation failures during early boot, resulting in system instability or crashes on LoongArch-based Linux systems.

Affected Products

  • Linux Kernel versions prior to the security fix
  • Linux Kernel 6.17
  • Linux Kernel 7.0-rc1 through 7.0-rc7

Discovery Timeline

  • April 24, 2026 - CVE-2026-31559 published to NVD
  • April 27, 2026 - Last updated in NVD database

Technical Details for CVE-2026-31559

Vulnerability Analysis

This vulnerability affects the LoongArch architecture-specific code within the Linux kernel. The root issue stems from inadequate error handling when the kstrdup() function is called to duplicate strings during CPU model parsing from the device tree. The kstrdup() function allocates memory and copies a string, but it can return NULL if memory allocation fails.

During early boot on LoongArch systems, the kernel parses device tree information to identify CPU models and system configuration. If memory is constrained or fragmented during this early initialization phase, kstrdup() may fail to allocate the required memory. Without proper NULL checks, the kernel proceeds to use the NULL pointer, triggering a kernel oops.

Additionally, the original code used of_find_node_by_path("/") which requires subsequent calls to of_node_put() to manage reference counting. This approach was problematic and has been replaced with direct use of of_root, simplifying the code path and eliminating potential reference counting issues.

Root Cause

The vulnerability originates from CWE-476 (NULL Pointer Dereference). The LoongArch architecture code failed to validate the return value of kstrdup() before using the allocated string. When kstrdup() returns NULL due to memory allocation failure, subsequent code that attempts to access or dereference this NULL pointer causes a kernel crash.

The proper fix involves adding explicit NULL checks after each kstrdup() call and handling the error condition gracefully, preventing the kernel from dereferencing invalid memory addresses.

Attack Vector

Exploitation of this vulnerability requires local access to the affected system. An attacker would need to create conditions where memory allocation fails during early boot on a LoongArch-based Linux system. This could potentially be achieved through:

  • Manipulating system memory resources before or during boot
  • Exploiting other memory-related vulnerabilities to fragment kernel memory
  • Targeting systems with limited memory configurations

The attack results in a denial of service condition through kernel crash rather than code execution or privilege escalation. The vulnerability does not impact confidentiality or integrity, only system availability.

Detection Methods for CVE-2026-31559

Indicators of Compromise

  • Unexpected kernel oops or crashes during early boot on LoongArch systems
  • Kernel panic messages referencing NULL pointer dereference in LoongArch device tree parsing code
  • System boot failures on memory-constrained LoongArch platforms

Detection Strategies

  • Monitor kernel logs for NULL pointer dereference errors in LoongArch-specific code paths
  • Implement kernel crash dump analysis to identify the specific code location triggering the crash
  • Deploy boot monitoring to detect abnormal boot failures or kernel panics on affected systems
  • Review dmesg output for warnings or errors related to device tree parsing and memory allocation

Monitoring Recommendations

  • Enable kernel crash dump collection (kdump) to capture diagnostic information when crashes occur
  • Monitor system availability metrics on LoongArch-based infrastructure
  • Set up alerts for repeated boot failures or kernel panics on affected systems

How to Mitigate CVE-2026-31559

Immediate Actions Required

  • Update the Linux kernel to a version containing the security fix
  • Prioritize patching LoongArch-based systems in production environments
  • Ensure adequate system memory is available to reduce the likelihood of allocation failures during boot
  • Review and apply patches from the official kernel git repository

Patch Information

The Linux kernel maintainers have released patches to address this vulnerability. The fix adds proper NULL checks for kstrdup() return values and replaces of_find_node_by_path("/") with of_root to simplify reference counting.

Official patches are available through the kernel git repository:

  • Kernel Git Commit 3a28daa9b7d7
  • Kernel Git Commit 5e7fde2c551f
  • Kernel Git Commit a1da957c25cf
  • Kernel Git Commit b61a30974332

Workarounds

  • Ensure LoongArch systems have sufficient memory available during boot to minimize allocation failure risk
  • Consider temporarily using non-LoongArch systems for critical workloads until patches are applied
  • Monitor affected systems closely for any signs of instability or unexpected crashes
bash
# Check current kernel version
uname -r

# Update kernel on systems using package managers
# For Debian/Ubuntu-based distributions:
sudo apt update && sudo apt upgrade linux-image-*

# Verify the patch is applied by checking kernel version after update
uname -r

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

  • Vulnerability Details
  • TypeOther

  • Vendor/TechLinux Kernel

  • SeverityMEDIUM

  • CVSS Score5.5

  • EPSS Probability0.01%

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

  • Kernel Git Commit Changes

  • Kernel Git Commit Changes

  • Kernel Git Commit Changes
  • Related CVEs
  • CVE-2026-46239: Linux Kernel OV5647 PM Refcount Leak

  • CVE-2026-46235: Linux Kernel saa7164 Memory Vulnerability

  • CVE-2026-46230: Linux Kernel AMDGPU VCN3 OOB Vulnerability

  • CVE-2026-46224: Linux Kernel DRM/XE Memory Leak Bug
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today 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