Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
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-31399

CVE-2026-31399: Linux Kernel Use-After-Free Vulnerability

CVE-2026-31399 is a use-after-free flaw in the Linux kernel nvdimm/bus component that occurs during asynchronous device initialization. This post covers the technical details, affected versions, impact, and mitigation.

Published: April 10, 2026

CVE-2026-31399 Overview

CVE-2026-31399 is a Use After Free vulnerability discovered in the Linux kernel's nvdimm/bus subsystem. The vulnerability exists in the asynchronous device initialization path within the nd_async_device_register() function. When device_add() fails due to an allocation failure, the device reference count drops to zero before the parent pointer is accessed, resulting in a use after free condition.

This vulnerability was identified using KASAN (Kernel Address Sanitizer) and affects systems utilizing NVDIMM (Non-Volatile Dual In-line Memory Module) functionality. The flaw originates from an incomplete fix in commit b6eae0f61db2 ("libnvdimm: Hold reference on parent while scheduling async init"), which correctly added a reference on the parent device but failed to account for allocation failure scenarios.

Critical Impact

Local attackers with the ability to trigger NVDIMM device initialization failures could potentially exploit this use after free condition to cause system crashes or potentially achieve privilege escalation on affected Linux kernel versions.

Affected Products

  • Linux Kernel with NVDIMM subsystem enabled
  • Systems utilizing libnvdimm for persistent memory operations
  • Kernel versions containing commit b6eae0f61db2 but lacking the fix patches

Discovery Timeline

  • 2026-04-03 - CVE-2026-31399 published to NVD
  • 2026-04-07 - Last updated in NVD database

Technical Details for CVE-2026-31399

Vulnerability Analysis

The vulnerability resides in the nd_async_device_register() function within the nvdimm bus driver. During asynchronous device initialization, a reference is held on the parent device to ensure it remains valid throughout the initialization process. However, when device_add() encounters an allocation failure, the device's reference count is decremented to zero, triggering cleanup operations that access the parent pointer after it has potentially been freed.

The race condition occurs because the code assumes the parent pointer will remain valid until the parent reference is explicitly dropped. In the failure path, the device structure containing the parent pointer may be freed before the code attempts to access this pointer to release the parent reference.

Root Cause

The root cause is improper reference management in the error handling path of nd_async_device_register(). The original fix (commit b6eae0f61db2) correctly identified the need to hold a reference on the parent device during asynchronous initialization. However, it failed to save a separate copy of the parent pointer before calling device_add(). When device allocation fails and the device structure is freed, the subsequent attempt to access the parent pointer through the freed device structure results in a use after free condition.

The fix involves saving a reference to the parent pointer in a local variable before calling device_add(), ensuring that the parent reference can be properly released regardless of whether device_add() succeeds or fails.

Attack Vector

Exploitation requires local access to a system with NVDIMM hardware support enabled in the kernel. An attacker would need to trigger conditions that cause device_add() to fail during NVDIMM device initialization, such as memory pressure situations leading to allocation failures.

The vulnerability could be triggered through:

  1. Manipulating system memory to cause allocation failures during NVDIMM device registration
  2. Rapidly adding and removing NVDIMM devices to create race conditions
  3. Exploiting kernel memory exhaustion scenarios during device initialization

While direct exploitation for arbitrary code execution may be complex, the use after free could potentially be leveraged for information disclosure or system destabilization.

Detection Methods for CVE-2026-31399

Indicators of Compromise

  • KASAN reports indicating use after free in nd_async_device_register() or related nvdimm functions
  • Kernel panic or oops messages referencing nvdimm/bus or libnvdimm subsystems
  • Unexpected system crashes during NVDIMM device initialization or hotplug events
  • Kernel log messages showing device_add failures followed by memory access violations

Detection Strategies

  • Enable KASAN (Kernel Address Sanitizer) in kernel builds to detect use after free conditions at runtime
  • Monitor kernel logs for errors related to nvdimm device registration failures
  • Deploy kernel integrity monitoring solutions that can detect anomalous memory access patterns
  • Utilize SentinelOne Singularity platform for real-time kernel-level threat detection

Monitoring Recommendations

  • Configure kernel logging to capture detailed nvdimm subsystem messages at debug level
  • Implement alerting on KASAN reports or kernel oops events in production environments
  • Monitor system stability metrics on servers utilizing NVDIMM/persistent memory technology
  • Review kernel logs after any NVDIMM-related configuration changes or hardware events

How to Mitigate CVE-2026-31399

Immediate Actions Required

  • Update to a patched Linux kernel version containing the fix commits
  • Review and apply available kernel patches from the stable kernel tree
  • Consider disabling NVDIMM functionality if not actively required until patches can be applied
  • Monitor systems with NVDIMM hardware for signs of exploitation attempts

Patch Information

Multiple patch commits have been released to address this vulnerability across different kernel branches:

  • Kernel Patch 2c638259
  • Kernel Patch 84af1985
  • Kernel Patch 9a0fb16b
  • Kernel Patch a226e5b4
  • Kernel Patch a8aec142
  • Kernel Patch e48bf8f1

The fix saves a reference to the parent pointer before calling device_add(), ensuring the parent reference can be properly released regardless of the outcome of device registration.

Workarounds

  • Disable the nvdimm kernel module if NVDIMM functionality is not required: blacklist nvdimm_bus in /etc/modprobe.d/
  • Limit physical access to servers with NVDIMM hardware to prevent unauthorized device manipulation
  • Enable kernel lockdown mode to restrict kernel module loading and reduce attack surface
  • Apply kernel hardening options such as CONFIG_HARDENED_USERCOPY and stack protector to mitigate exploitation
bash
# Temporary workaround: Blacklist nvdimm modules until patched kernel is deployed
echo "blacklist nd_pmem" >> /etc/modprobe.d/nvdimm-blacklist.conf
echo "blacklist nd_blk" >> /etc/modprobe.d/nvdimm-blacklist.conf
echo "blacklist nd_btt" >> /etc/modprobe.d/nvdimm-blacklist.conf
echo "blacklist libnvdimm" >> /etc/modprobe.d/nvdimm-blacklist.conf
update-initramfs -u

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

  • Vulnerability Details
  • TypeUse After Free

  • Vendor/TechLinux Kernel

  • SeverityNONE

  • CVSS ScoreN/A

  • EPSS Probability0.03%

  • Known ExploitedNo
  • Impact Assessment
  • ConfidentialityNone
  • IntegrityNone
  • AvailabilityNone
  • Technical References
  • Kernel Git Commit Change

  • Kernel Git Commit Change

  • Kernel Git Commit Change

  • Kernel Git Commit Change

  • Kernel Git Commit Change

  • Kernel Git Commit Change
  • Related CVEs
  • CVE-2026-31475: Linux Kernel Use-After-Free Vulnerability

  • CVE-2026-31469: Linux Kernel Use-After-Free Vulnerability

  • CVE-2026-31457: Linux Kernel Use-After-Free Vulnerability

  • CVE-2026-31444: Linux Kernel Use-After-Free 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